ffmpeg frame error with 2.1 ppa builds that use libav11

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
mc2man
Posts: 6
Joined: Sun May 17, 2015 11:03 pm
Operating System: Please select

ffmpeg frame error with 2.1 ppa builds that use libav11

Post by mc2man » Sun May 17, 2015 11:17 pm

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

mc2man
Posts: 6
Joined: Sun May 17, 2015 11:03 pm
Operating System: Please select

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

Post by mc2man » Mon May 18, 2015 12:40 am

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,

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

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

Post by Gale Andrews » Mon May 18, 2015 12:22 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

mc2man
Posts: 6
Joined: Sun May 17, 2015 11:03 pm
Operating System: Please select

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

Post by mc2man » Mon May 18, 2015 1:24 pm

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...

ubuntuhandbook
Posts: 17
Joined: Tue May 19, 2015 3:54 am
Operating System: Please select

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

Post by ubuntuhandbook » Tue May 19, 2015 3:57 am

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

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

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

Post by Gale Andrews » Tue May 19, 2015 11:40 am

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply