LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-17-2008, 03:14 PM   #1
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Rep: Reputation: 15
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
 
Old 10-17-2008, 03:23 PM   #2
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
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
 
Old 10-17-2008, 03:34 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
what does

ffmpeg -formats | grep flv

show?
 
Old 10-17-2008, 03:42 PM   #4
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
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
 
Old 10-17-2008, 03:50 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And what happens then?
 
Old 10-17-2008, 03:53 PM   #6
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
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
 
Old 10-17-2008, 03:54 PM   #7
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
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.
 
Old 10-17-2008, 04:01 PM   #8
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
That's it, it called Nellymoser audio codec.
 
Old 10-17-2008, 04:21 PM   #9
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
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
 
Old 10-17-2008, 04:24 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why are you setting vframes to 1 (or trying to)?
 
Old 10-17-2008, 04:32 PM   #11
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
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?
 
Old 10-17-2008, 04:45 PM   #12
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
Ok it works fine when i remove the -vframes l option. Sheesh!
 
Old 10-17-2008, 04:47 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not sure how to extract a single frame - never done that one
 
Old 10-17-2008, 04:50 PM   #14
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Maybe the example here will help

http://mediacoder.sourceforge.net/wi...p/FFMPEG_Usage
 
Old 10-17-2008, 05:09 PM   #15
JavaNinja
Member
 
Registered: Sep 2008
Posts: 90

Original Poster
Rep: Reputation: 15
The above I have works now with the removal of "-vframes l". Thanks for the tutorial and your help billymayday
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Converting flv to Mpg with Audio and ffmpeg btbx Linux - Software 7 06-12-2008 02:41 PM
ffmpeg - Unsupported codec for output stream #0.0 yitzle Linux - Software 4 01-30-2008 04:37 AM
LXer: Convert .flv (Google Videos) to .mpg using ffmpeg LXer Syndicated Linux News 0 07-25-2007 06:31 AM
AAC unsupported in my ffmpeg J_angel2000 Linux - Software 5 04-30-2007 12:19 PM
how do i convert wmv to flv using ffmpeg? farmerjoe Linux - Software 0 11-15-2005 02:20 PM

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

All times are GMT -5. The time now is 04:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration