[MPlayer-users] Question on conversion of svq1 and wmv files

Dave Hayes dave at jetcafe.org
Wed Nov 16 06:56:08 CET 2005


Hello! I'm trying to convert a bunch of videos to flash (flv codec)
from .mov and .wmv. I'm asking for some assistance as I don't seem
to be having much success. 

I used the following to go from the .mov files (which actually use the
"svq1" video codec and something called "adpcm_ima_qt" for the audio
codec) to the flash file:

> mencoder <inputfile> \
  -ovc lavc -oac mp3lame -lavcopts vcodec=flv:abitrate=56 \
  -srate 22050 -mc 1 -ofps 15 \
  -of lavf -o <outputfile>

Some (I think) relevant output was:

 success: format: 0  data: 0x0 - 0x5ec74
 QuickTime/MOV file format detected.
 --------------
 MOV track #0: 52 chunks, 0 samples
 Audio bits: 16  chans: 1  rate: 8000
 Fourcc: ima4
 --------------
 MOV track #1: 100 chunks, 241 samples
 Image size: 240 x 180 (24 bpp)
 Display size: 240 x 180
 Fourcc: SVQ1  Codec: 'Sorenson Video'
 --------------
 MOV: longest streams: A: #0 (52 samples)  V: #1 (241 samples)
 VIDEO:  [SVQ1]  240x180  24bpp  10.023 fps    0.0 kbps ( 0.0 kbyte/s)
 [V] filefmt:7  fourcc:0x31515653  size:240x180  fps:10.02  ftime:=0.0998
 ==========================================================================
 Opening audio decoder: [imaadpcm] IMA ADPCM audio decoder
 AUDIO: 8000 Hz, 1 ch, s16le, 34.0 kbit/26.56% (ratio: 4250->16000)
 Selected audio codec: [imaadpcm] afm:imaadpcm (IMA ADPCM) 

This produced video which went 2x the normal speed. I didn't tell it
to do that, I dont think? What gives?

When I tried to convert the .wmv files I used this chain:

 > mencoder <inputfile> \
   -vc wmv8 -ovc lavc -lavcopts vcodec=mpeg4 \
   -oac copy -o /tmp/foo57718.mov
 > ffmpeg -y -i /tmp/foo57718.mov -ab 56 -ar 22050 outputfile

I did this because it seems mencoder can't make a flash file from 
this format. (I've tried, maybe I dont know what I'm doing here.)
Here's some relevant output:

 success: format: 0  data: 0x0 - 0x2e76a
 ASF file format detected.
 VIDEO:  [WMV2]  240x180  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
 [V] filefmt:6  fourcc:0x32564D57  size:240x180  fps:1000.00  ftime:=0.0010
 Opening video filter: [expand osd=1]
 Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
 ==========================================================================
 Forced video codec: wmv8
 Opening video decoder: [dshow] DirectShow video codecs
 Creating new registry
 Failed to open registry file '(null)' for writing.
 Decoder supports the following YUV formats: YUY2 IYUV UYVY YV12 YVYU I420 
YVU9
 Decoder is capable of YUV output (flags 0x7f)
 VDec: vo config request - 240 x 180 (preferred csp: Packed YUY2)
 [PP] Using codec's postprocessing, max q = 4.
 VDec: using Planar YV12 as output csp (no 0)
 Movie-Aspect is undefined - no prescaling applied.
 videocodec: libavcodec (240x180 fourcc=34504d46 [FMP4])
 Failed to open registry file '(null)' for writing.
 Failed to open registry file '(null)' for writing.
 Failed to open registry file '(null)' for writing.
 Selected video codec: [wmv8] vfm:dshow (Windows Media Video 8)
 ==========================================================================
 audiocodec: framecopy (format=161 chans=1 rate=16000 bits=16 bps=2000 
sample-640)

Can anyone spot what I'm doing wrong here? Thanks in advance.
------
Dave Hayes - Consultant - Altadena CA, USA - dave at jetcafe.org 
>>> The opinions expressed above are entirely my own <<<

War is but a spectacular expression of our everyday life.
                                            -Krishnamurti









More information about the MPlayer-users mailing list