Page 1 of 1

ffmpeg frame error with 2.1 ppa builds that use libav11

Posted: Sun May 17, 2015 11:17 pm
by mc2man
The 2.1 ppa builds from here fail on ffmpeg exports with a "FFmpeg:Error - Failed to write audio frame to file"
This occurs on both 14.10 & 15.04 which use libav11. The 14.04 which uses libav9 is ok.

https://launchpad.net/~ubuntuhandbook1/ ... u/audacity
2.0.x was patched to work with libav10/11 & ffmpeg 2.x but that patch isn't usable in 2.1.x

Re: ffmpeg frame error with 2.1 ppa builds that use libav11

Posted: Mon May 18, 2015 12:40 am
by mc2man
It appears to be just a libav11 issue. Rebuilding using ffmpeg shared (2.6.2 here) & the export works fine.
So the ppa could test switching to ffmpeg in 15.04 build, 14.10 is almost EOL so wouldn't bother with it, ie
libavcodec-ffmpeg-dev,
libavformat-ffmpeg-dev,
libavutil-ffmpeg-dev,

Re: ffmpeg frame error with 2.1 ppa builds that use libav11

Posted: Mon May 18, 2015 12:22 pm
by Gale Andrews
mc2man wrote:The 2.1 ppa builds from here fail on ffmpeg exports with a "FFmpeg:Error - Failed to write audio frame to file"
This occurs on both 14.10 & 15.04 which use libav11. The 14.04 which uses libav9 is ok.

https://launchpad.net/~ubuntuhandbook1/ ... u/audacity
Thanks for the information. I noticed the frame error on Ubuntu 15.04 too, but please note that 2.1.0 PPA is nothing to do with Audacity Team and we have no control over it.
mc2man wrote:2.0.x was patched to work with libav10/11 & ffmpeg 2.x but that patch isn't usable in 2.1.x
The Audacity source code officially supports FFmpeg 1.2 to 2.3.x (or libav 0.8 to 0.10.x). Does this frame error also occur with libav 0.10?

Any local patches that people make are nothing to do with Audacity Team. We hope eventually to move to GStreamer as a possible solution to chasing FFmpeg updates.
mc2man wrote:It appears to be just a libav11 issue. Rebuilding using ffmpeg shared (2.6.2 here) & the export works fine.
So the ppa could test switching to ffmpeg in 15.04 build, 14.10 is almost EOL so wouldn't bother with it, ie
libavcodec-ffmpeg-dev,
libavformat-ffmpeg-dev,
libavutil-ffmpeg-dev,
Or it could be built against a local FFmpeg 2.2.2.

I had already reported the frame error on http://ubuntuhandbook.org/index.php/201 ... -from-ppa/ and have added a comment as per your above, assuming the comment is approved. You could comment too.

But again, this is nothing to do with Audacity Team.


Gale

Re: ffmpeg frame error with 2.1 ppa builds that use libav11

Posted: Mon May 18, 2015 1:24 pm
by mc2man
I understand, only mentioned here as the ppa maintainer said to do so...
As far as libav10, no idea as it is security flawed & not really in use, at least in Ubuntu & probably Debian also.
I'll send the info to ppa maintainer via launchpad mail...

Re: ffmpeg frame error with 2.1 ppa builds that use libav11

Posted: Tue May 19, 2015 3:57 am
by ubuntuhandbook
Hi, I've re-uploaded the package to PPA, built with the default ffmpeg in 15.04 repository. And the ffmpeg export seems work for me

Re: ffmpeg frame error with 2.1 ppa builds that use libav11

Posted: Tue May 19, 2015 11:40 am
by Gale Andrews
ubuntuhandbook wrote:Hi, I've re-uploaded the package to PPA, built with the default ffmpeg in 15.04 repository. And the ffmpeg export seems work for me
Thank you, I can confirm FFmpeg export and import appears to work for the three formats included (AAC, AC3 and WMA).

I added a note about your PPA here: http://wiki.audacityteam.org/wiki/Incor ... ts_Version.


Gale