[MEncoder-users] Re: how to set dimensions for FLV?
Nick Fedchik
nick at fedchik.org.ua
Fri Dec 1 18:53:15 CET 2006
On Friday 01 December 2006 19:29, Jon Drukman wrote:
> try adding -vf scale=320:240 and see if that does anything for you.
fnm at voodle-ci:/usr/local/src$ /usr/local/bin/mencoder ./testfeed.ts -o ./output.flv -of
lavf -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames:format=flv -oac
mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -vf
scale=320:240
CPLAYER: MEncoder dev-SVN-r21410-4.0.3 (C) 2000-2006 MPlayer Team
CPUDETECT: CPU: Dual Core AMD Opteron(tm) Processor 285 (Family: 15, Model:
33, Stepping: 2)
CPLAYER: CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
CPLAYER: Compiled with runtime CPU detection.
...
MUXER: OK, exit
VFILTER: Opening video filter: [expand osd=1]
VFILTER: Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
VFILTER: Opening video filter: [scale w=320 h=240]
CPLAYER:====================================================================
DECVIDEO: Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
DECVIDEO: VDec: vo config request - 704 x 576 (preferred colorspace: Mpeg PES)
CPLAYER: The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
DECVIDEO: VDecoder init failed :(
DECVIDEO: Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
DECVIDEO: Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2
(libmpeg2))
CPLAYER:====================================================================
GLOBAL: MP3 audio selected.
Segmentation fault
:(
The same command line runned from valgrind are successfull
fnm at voodle-ci:/usr/local/src$
valgrind /usr/local/bin/mencoder ./testfeed.ts -o ./output.flv -of
lavf -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames:format=flv -oac
mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -vf
scale=320:240
...
CPLAYER: MEncoder dev-SVN-r21410-4.0.3 (C) 2000-2006 MPlayer Team
CPUDETECT: CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon
Prestonia,Gallatin (Family: 15, Model: 2, Stepping: 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CPLAYER: CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
CPLAYER: Compiled with runtime CPU detection.
...
GLOBAL: MP3 audio selected.
DECVIDEO: VDec: vo config request - 704 x 576 (preferred colorspace: Planar
YV12)
CPLAYER: VDec: using Planar YV12 as output csp (no 0)
CPLAYER: Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 11 -> 10
SwScaler: reducing / aligning filtersize 11 -> 10
SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using n-tap MMX scaler for horizontal luminance scaling
SwScaler: using n-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 704x576 -> 320x240
MENCODER: videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
MENCODER: [VE_LAVC] High quality encoding selected (non-realtime)!
...
MUXER: VIDEO CODEC ID: 22
MUXER: AUDIO CODEC ID: 15001, TAG: 0
MUXER: Writing header...
MENCODER:
1 duplicate frame(s)!
MENCODER: Pos: 0.8s 22f (33%) 1.22fps Trem: 0min 0mb A-V:-0.084
[0:58]
...
Flushing video frames.
MUXER: Writing index...
MENCODER:
Video stream: 481.594 kbit/s (60199 B/s) size: 248021 bytes 4.120 secs 96
frames
MENCODER:
Audio stream: 59.704 kbit/s (7462 B/s) size: 31777 bytes 4.258 secs
--
Best regards, Nick Fedchik
More information about the MEncoder-users
mailing list