LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2007, 08:44 AM   #1
jroyce
Member
 
Registered: Nov 2007
Posts: 34

Rep: Reputation: 15
Angry ffmpeg not decoding AC3 audio


I am going crazy trying to get ffmpeg to convert an avi file to mpeg-2 format. Here is the command line I am using:

ffmpeg -target ntsc-dvd -i csi.807.hdtv-lol.[VTV].avi CSI_Season_8_Episode_7.mpg

and the output from ffmpeg:
ffmpeg -target ntsc-dvd -i csi.807.hdtv-lol.[VTV].avi CSI_Season_8_Episode_7.mpg
FFmpeg version SVN-r10937, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libtheora --enable-libfaad --enable-libfaac --enable-libxvid --enable-liba52 --enable-swscaler --enable-pp --enable-gpl --enable-vhook --enable-x11grab --enable-libgsm --enable-libx264 --enable-libamr-nb --enable-libamr-wb
libavutil version: 49.5.0
libavcodec version: 51.47.2
libavformat version: 51.17.1
built on Nov 7 2007 00:38:44, gcc: 4.2.1 (SUSE Linux)
Unknown decoder 'ac3'

This is so frustrating. I tried compiling ffmpeg from source as well, and this was no better. You can see in the ffmpeg output that the RPM installation was configured with the "-enable-liba52' option, which is supposed to enable AC3 audio.

If I type 'whereis liba52' I get:
liba52: /usr/lib/liba52.a /usr/lib/liba52.so /usr/lib/liba52.la

I've also tried to force the audio type using the -acodec ac3 option in ffmpeg but that doesn't work either.

The strangest part is that I suddenly get the same error on .avi files which I have previously converted to MPG.

This is on OpenSuse 10.3. To make it even a bit wierder, I get the same error if I use a binary version of ffmpeg in Windows.

I can play the file in Totem without any trouble. Both the sound and video are fine.
 
Old 11-23-2007, 02:16 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Would there be DRM on that file? Try another file, preferably one you haven't attempted to convert before.
 
Old 11-23-2007, 07:01 AM   #3
jroyce
Member
 
Registered: Nov 2007
Posts: 34

Original Poster
Rep: Reputation: 15
No DRM. I have other files that I've successfully converted with ffmpeg on my Ubuntu 7.04 installation and I get the same result.

I recently set up that Ubuntu system as a firewall+server, so last night I used ssh to login to that computer and I converted the same file on that PC using ffmpeg and it worked fine.

This is less-than-ideal since my new PC could do the conversion in minutes while the old firewall PC takes about 1/2 an hour.

So now I am wondering what is special about ffmpeg on Suse 10.3?
 
Old 11-23-2007, 09:32 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Possibly the difference is that you compiled it from source. I take it ffmpeg from YaST is no good? I'd go through that compile carefully - will openSUSE ffmpeg convert other formats?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Support for audio codecs in Linux encoding/decoding. smudge|lala Linux - Software 1 02-12-2007 06:36 AM
ffmpeg problems - no audio Veteq Linux - Software 2 08-14-2005 10:04 PM
mplex ac3 tcextracted audio problem... anus Linux - Software 1 06-26-2005 12:50 AM
error while decoding audio k3b linx win Linux - Software 6 06-10-2005 07:32 PM
Open Ac3 file as external audio Cagnulein Linux - Software 3 07-11-2004 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration