Latest FFMPEG strange behavior under Ubuntu Hardy

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
foobar789
Posts: 7
Joined: Mon Dec 08, 2008 11:18 pm
Operating System: Please select

Latest FFMPEG strange behavior under Ubuntu Hardy

Post by foobar789 » Mon Dec 08, 2008 11:31 pm

Hi,

I downloaded and compiled FFMPEG today from SVN. After some while I got it compiled and tried to load m4a file in Audacity (1.3.6). Crash! I got segmentation fault. Well I continued to fiddle with audacity - I loaded a WAV file and just for a whim of mind tried to load above mentioned m4a file and vóila! It loaded. So this is on my mind.

Does anyone have any clues how to get audacity to load m4a files right away without first loading some other file? I can provide "strace" logs if someone is interested.

foobar789
Posts: 7
Joined: Mon Dec 08, 2008 11:18 pm
Operating System: Please select

Re: Latest FFMPEG strange behavior under Ubuntu Hardy

Post by foobar789 » Tue Dec 09, 2008 6:20 am

NEWS! EXTRA EXTRA!

I compiled latest audacity from CVS. Previous behavior persists.

foobar789
Posts: 7
Joined: Mon Dec 08, 2008 11:18 pm
Operating System: Please select

Re: Latest FFMPEG strange behavior under Ubuntu Hardy

Post by foobar789 » Tue Dec 09, 2008 6:35 am

Phew...

So this is with latest CVS checkout: if I enable "debug" in "configure" (./configure --enable-debug) and create the binary, I can actually open AAC-file straight away without first having to open WAV file.

Any insights on this?

foobar789
Posts: 7
Joined: Mon Dec 08, 2008 11:18 pm
Operating System: Please select

Re: Latest FFMPEG strange behavior under Ubuntu Hardy

Post by foobar789 » Tue Dec 09, 2008 8:22 am

More info of the current situation; when trying to open AAC-file enough times, it eventually succeeds. Usually I get AAC-file open on fourth or fifth try.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Latest FFMPEG strange behavior under Ubuntu Hardy

Post by steve » Tue Dec 09, 2008 7:15 pm

It's not that I'm not interested, it's that I don't know the answer.
Good luck with getting it working, I'm watching this topic with interest (I'm another Ubuntu user).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

richardash1981
Posts: 426
Joined: Tue Jul 31, 2007 1:57 pm
Operating System: Please select

Re: Latest FFMPEG strange behavior under Ubuntu Hardy

Post by richardash1981 » Sat Jan 10, 2009 11:26 pm

Probably a bug in the AAC decoder within FFmpeg. Certainly, no reports other than from Ubuntu, suggesting that it's something up with Ubuntu's FFmpeg package rather than an audacity problem. If you can reproduce with a current FFmpeg SVN snapshot (say last month or so) then I'd be more interested because it might be a current issue with ffmpeg rather than a fixed one.

foobar789
Posts: 7
Joined: Mon Dec 08, 2008 11:18 pm
Operating System: Please select

Re: Latest FFMPEG strange behavior under Ubuntu Hardy

Post by foobar789 » Sun Jan 11, 2009 7:35 am

True that. It is FFMpeg problem. I managed to override it with help of following:
http://www.gossamer-threads.com/lists/m ... vnz/346732

But in short, problem is with FFMpeg libavcodec/i386/dsputil_mmx.c
c->float_to_int16_interleave = float_to_int16_interleave_sse2;

for some peculiar or strange reason sse2 crashes almost every time, after i changed this line to:
c->float_to_int16_interleave = float_to_int16_interleave_sse;

it started to work like a charm. So now I can open AAC files straight from Audacity.

rgrds, Hermesetas

Locked