[Ffmpeg-devel] Bug report

Stefan Fricke sfricke
Sat Sep 2 03:50:45 CEST 2006


I'm not sure if this has already been reported but there is no searchable bug 
list available.

ffmpeg -i inputfile.flv -ab 128 -ar 44100 -b 900 -f avi -vcodec mpeg4 -acodec 
mp3 -s 320x240 outputfile.avi

works fine for me if I'm converting videos from Youtube. But if I try to 
convert flash videos from vids.myspace.com it doesn't work. I'm getting 
output like this:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
  
configuration:  --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faac --enable-xvid --enable-a52 --enable-x264 --enable-pp --enable-gpl --enable-gprof --enable-amr_nb --enable-amr_wb
  libavutil version: 49.0.0
  libavcodec version: 51.11.0
  libavformat version: 50.5.0
  built on Aug 17 2006 01:54:05, gcc: 4.1.0 (SUSE Linux)
[flv @ 0xb7f14e68]Unsupported video codec (4)

[Repeated very often]

[flv @ 0xb7f14e68]Unsupported video codec (4)
[flv @ 0xb7f14e68]Could not find codec parameters (Video: 0x0004)

Seems that stream 0 comes from film source: 1000.00 (1000/1) -> 15.00 (15/1)
Input #0, flv, from 'inputfile.flv':
  Duration: 00:01:01.5, bitrate: N/A
  Stream #0.0: Video: 0x0004, 15.00 fps(r)
  Stream #0.1: Audio: mp3, 22050 Hz, stereo
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, avi, to 'outputfile.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 320x240, q=2-31, 900 kb/s, 15.00 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Unsupported codec (id=0) for input stream #0.0

If i run 'mplayer inputfile.flv' I can hear the sound but I don't get video. 
This happens really with all .flv from MySpave while all .flv from YouTube 
are playable without any trouble.

Here is the output of mplayer -identify inputfile.flv from a file from 
MySpace:

 MPlayer dev-SVN-rUNKNOWN-4.1.0 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 2000+ (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.


Failed to open /dev/rtc: Permission denied (it should be readable by the 
user.)
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.

Playing inputfile.flv.
libavformat file format detected.
[flv @ 0x87c3a28]Unsupported video codec (4)

(again the above line very often)

[flv @ 0x87c3a28]Unsupported video codec (4)
[flv @ 0x87c3a28]Could not find codec parameters (Video: 0x0004)
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO:  []  0x0  0bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=inputfile.flv
ID_DEMUXER=lavf
ID_VIDEO_FORMAT=0x00000004
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=0
ID_VIDEO_HEIGHT=0
ID_VIDEO_FPS=15.000
ID_VIDEO_ASPECT=nan
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=22050
ID_AUDIO_NCH=2
ID_LENGTH=61.57
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
mpg123: Can't rewind stream by 491 bits!
AUDIO: 22050 Hz, 2 ch, s16le, 80.0 kbit/11.34% (ratio: 10000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: : No such file or directory
AO: [oss] 22050Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...
[mpeg4 @ 0x88e3c58]header damaged
Error while decoding frame!
[mpeg4 @ 0x88e3c58]header damaged  0.000   1/  1 ??% ??% ??,?% 0 0
Error while decoding frame!

(This continues for every frame)

So there may be an unsupported video codec used for Flash Video.

Stefan
 




More information about the ffmpeg-devel mailing list