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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
10-17-2008, 03:14 PM
#1
Member
Registered: Sep 2008
Posts: 90
Rep:
ffmpeg - flv Unsupported audio codec
Hello all,
How do I add flv support? I would also be grateful for links to tutorials on how to do this.
Thanks all
10-17-2008, 03:23 PM
#2
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
This is my version of ffmpeg. It seems old, how can I update it with the latest. I have already updated yum?
ffmpeg -version
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on May 30 2007 15:17:57, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)
ffmpeg SVN-rUNKNOWN
libavutil 3212288
libavcodec 3352580
libavformat 3345409
10-17-2008, 03:34 PM
#3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
what does
ffmpeg -formats | grep flv
show?
10-17-2008, 03:42 PM
#4
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on May 30 2007 15:17:57, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)
DE flv flv format
DEVSD flv
Ok I must be using it wrong then, I use it like this:
Code:
ffmpeg -i vtester.flv -y -f mjpeg -ss 10.00 -vframes l -an test.jpg
10-17-2008, 03:50 PM
#5
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
And what happens then?
10-17-2008, 03:53 PM
#6
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
I get a segmentation fault:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on May 30 2007 15:17:57, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)
[flv @ 0xb7fbd114]Unsupported audio codec (6)
[flv @ 0xb7fbd114]Could not find codec parameters (Audio: 0x0006)
Segmentation fault
10-17-2008, 03:54 PM
#7
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
I think I need the latest ffmpeg because this codec is called "N....." (forgot the name!). They (ffmpeg) have only recently provided support for it.
10-17-2008, 04:01 PM
#8
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
That's it, it called Nellymoser audio codec.
10-17-2008, 04:21 PM
#9
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
Damn it - I installed lastest version and I get the following:
Code:
[root]# /usr/bin/ffmpeg/ffmpeg -i video1218815392.flv -y -f mjpeg -ss 10.00 -vframes l -an test.jpg
FFmpeg version SVN-r15630, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration:
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Oct 17 2008 14:11:43, gcc: 4.1.2 20070925 (Red Hat 4.1.2-27)
[flv @ 0x87c91f0]Could not find codec parameters (Audio: 0x0000, s16)
Input #0, flv, from 'video1218815392.flv':
Duration: 00:00:16.10, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 320x240, 1000.00 tb(r)
Stream #0.1: Audio: 0x0000, s16
Expected number for vframes but found: l
10-17-2008, 04:24 PM
#10
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
Why are you setting vframes to 1 (or trying to)?
10-17-2008, 04:32 PM
#11
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
I am trying to get a single frame from the flv so I can use it as a thumbnail. What should I change that 1 to?
10-17-2008, 04:45 PM
#12
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
Ok it works fine when i remove the -vframes l option. Sheesh!
10-17-2008, 04:47 PM
#13
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
Not sure how to extract a single frame - never done that one
10-17-2008, 04:50 PM
#14
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
10-17-2008, 05:09 PM
#15
Member
Registered: Sep 2008
Posts: 90
Original Poster
Rep:
The above I have works now with the removal of "-vframes l". Thanks for the tutorial and your help billymayday
All times are GMT -5. The time now is 12:00 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News