LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ffmpeg - flv Unsupported audio codec (https://www.linuxquestions.org/questions/linux-software-2/ffmpeg-flv-unsupported-audio-codec-677186/)

JavaNinja 10-17-2008 03:14 PM

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

JavaNinja 10-17-2008 03:23 PM

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

billymayday 10-17-2008 03:34 PM

what does

ffmpeg -formats | grep flv

show?

JavaNinja 10-17-2008 03:42 PM

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

billymayday 10-17-2008 03:50 PM

And what happens then?

JavaNinja 10-17-2008 03:53 PM

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

JavaNinja 10-17-2008 03:54 PM

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.

JavaNinja 10-17-2008 04:01 PM

That's it, it called Nellymoser audio codec.

JavaNinja 10-17-2008 04:21 PM

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


billymayday 10-17-2008 04:24 PM

Why are you setting vframes to 1 (or trying to)?

JavaNinja 10-17-2008 04:32 PM

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?

JavaNinja 10-17-2008 04:45 PM

Ok it works fine when i remove the -vframes l option. Sheesh!

billymayday 10-17-2008 04:47 PM

Not sure how to extract a single frame - never done that one

billymayday 10-17-2008 04:50 PM

Maybe the example here will help

http://mediacoder.sourceforge.net/wi...p/FFMPEG_Usage

JavaNinja 10-17-2008 05:09 PM

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 06:25 AM.