[MEncoder-users] Video format conversion: ffvp6f -> ffflv (?).
R. Clayton
rvclayton at verizon.net
Tue Feb 7 19:39:27 CET 2012
I'm trying to get flv videos to work on a coby mp815 digital media player. I
have one file the coby can show
$ mplayer -identify -frames 0 good.flv 2>&1 | grep -i codec
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.54.100 (internal)
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
ID_VIDEO_CODEC=ffflv
Requested audio codec family [mpg123] (afm=mpg123) not available.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
ID_AUDIO_CODEC=ffmp3float
$
and another it can't (format error)
$ mplayer -identify -frames 0 bad.flv 2>&1 | grep -i codec
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.54.100 (internal)
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
ID_VIDEO_CODEC=ffvp6f
Requested audio codec family [mpg123] (afm=mpg123) not available.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
ID_AUDIO_CODEC=ffmp3float
$
I'm guessing wildly that the problem is ffvp6f vs ffflv, and I can't figure out
how to convert from the former to the latter, or even what codec to try
$ mencoder -ovc help
MPlayer SVN-r34531 (C) 2000-2010 MPlayer Team
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.
libdv - DV encoding with libdv v0.9.5
xvid - XviD encoding
x264 - H.264 encoding
$
What is the magic I need to invoke to go from ffvp6f to ffflv? Is this even
the right track?
This is on debian testing updated weekly, if that's important. Here are the
gory details for those really into it:
$ mplayer -identify -frames 0 good.flv
Failed to read /etc/mplayer/mplayer.conf.local: No such file or directory
Warning unknown option include at line 171
MPlayer SVN-r34531 (C) 2000-2010 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing good.flv.
libavformat version 53.29.100 (internal)
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (flv), -vid 0
ID_AUDIO_ID=0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO: [FLV1] 400x224 0bpp 29.917 fps 256.0 kbps (31.2 kbyte/s)
Clip info:
starttime: 0
ID_CLIP_INFO_NAME0=starttime
ID_CLIP_INFO_VALUE0=0
totalduration: 400
ID_CLIP_INFO_NAME1=totalduration
ID_CLIP_INFO_VALUE1=400
totaldatarate: 316
ID_CLIP_INFO_NAME2=totaldatarate
ID_CLIP_INFO_VALUE2=316
bytelength: 15808286
ID_CLIP_INFO_NAME3=bytelength
ID_CLIP_INFO_VALUE3=15808286
canseekontime: true
ID_CLIP_INFO_NAME4=canseekontime
ID_CLIP_INFO_VALUE4=true
sourcedata: BADC20742MM1328629100888801
ID_CLIP_INFO_NAME5=sourcedata
ID_CLIP_INFO_VALUE5=BADC20742MM1328629100888801
purl:
ID_CLIP_INFO_NAME6=purl
ID_CLIP_INFO_VALUE6=
pmsg:
ID_CLIP_INFO_NAME7=pmsg
ID_CLIP_INFO_VALUE7=
ID_CLIP_INFO_N=8
Load subtitles in ./
ID_FILENAME=good.flv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=FLV1
ID_VIDEO_BITRATE=255968
ID_VIDEO_WIDTH=400
ID_VIDEO_HEIGHT=224
ID_VIDEO_FPS=29.917
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=64000
ID_AUDIO_RATE=22050
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=400.01
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.54.100 (internal)
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
ID_VIDEO_CODEC=ffflv
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 2 ch, floatle, 64.0 kbit/4.54% (ratio: 8000->176400)
ID_AUDIO_BITRATE=64000
ID_AUDIO_RATE=22050
ID_AUDIO_NCH=2
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffmp3float
Starting playback...
Exiting... (End of file)
ID_EXIT=EOF
$ mplayer -identify -frames 0 bad.flv
Failed to read /etc/mplayer/mplayer.conf.local: No such file or directory
Warning unknown option include at line 171
MPlayer SVN-r34531 (C) 2000-2010 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing bad.flv.
libavformat version 53.29.100 (internal)
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (vp6f), -vid 0
ID_AUDIO_ID=0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO: [VP6F] 640x480 0bpp 29.970 fps 397.9 kbps (48.6 kbyte/s)
Clip info:
metadatacreator: Yet Another Metadata Injector for FLV - Version 1.4
ID_CLIP_INFO_NAME0=metadatacreator
ID_CLIP_INFO_VALUE0=Yet Another Metadata Injector for FLV - Version 1.4
hasKeyframes: true
ID_CLIP_INFO_NAME1=hasKeyframes
ID_CLIP_INFO_VALUE1=true
hasVideo: true
ID_CLIP_INFO_NAME2=hasVideo
ID_CLIP_INFO_VALUE2=true
hasAudio: true
ID_CLIP_INFO_NAME3=hasAudio
ID_CLIP_INFO_VALUE3=true
hasMetadata: true
ID_CLIP_INFO_NAME4=hasMetadata
ID_CLIP_INFO_VALUE4=true
canSeekToEnd: true
ID_CLIP_INFO_NAME5=canSeekToEnd
ID_CLIP_INFO_VALUE5=true
datasize: 78346577
ID_CLIP_INFO_NAME6=datasize
ID_CLIP_INFO_VALUE6=78346577
videosize: 69094725
ID_CLIP_INFO_NAME7=videosize
ID_CLIP_INFO_VALUE7=69094725
audiosize: 8875104
ID_CLIP_INFO_NAME8=audiosize
ID_CLIP_INFO_VALUE8=8875104
lasttimestamp: 1380
ID_CLIP_INFO_NAME9=lasttimestamp
ID_CLIP_INFO_VALUE9=1380
lastkeyframetimestamp: 1380
ID_CLIP_INFO_NAME10=lastkeyframetimestamp
ID_CLIP_INFO_VALUE10=1380
lastkeyframelocation: 78358329
ID_CLIP_INFO_NAME11=lastkeyframelocation
ID_CLIP_INFO_VALUE11=78358329
ID_CLIP_INFO_N=12
Load subtitles in ./
ID_FILENAME=bad.flv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=VP6F
ID_VIDEO_BITRATE=397920
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=48000
ID_AUDIO_RATE=22050
ID_AUDIO_NCH=1
ID_START_TIME=0.00
ID_LENGTH=1379.97
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.54.100 (internal)
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
==========================================================================
ID_VIDEO_CODEC=ffvp6f
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 1 ch, floatle, 48.0 kbit/6.80% (ratio: 6000->88200)
ID_AUDIO_BITRATE=48000
ID_AUDIO_RATE=22050
ID_AUDIO_NCH=1
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [alsa] 48000Hz 1ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffmp3float
Starting playback...
Exiting... (End of file)
ID_EXIT=EOF
$
More information about the MEncoder-users
mailing list