MEncoder

„MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.“

MEncoder. (2008, February 23). In Wikipedia, The Free Encyclopedia. Retrieved 18:57, April 5, 2008, from
http://en.wikipedia.org/w/index.php?title=MEncoder&oldid=193447614


My Blog List

Thursday, May 1, 2008

[MEncoder-users] audio encoding problem from tv

I tried the following command after downloading and compiling 1.0rc2 from
mplayerhq (it is a pitty, but I was not able to compile the svn
source):

mencoder -endpos 60 -o zzz.avi tv://\
-tv driver=v4l2:normid=0:input=1:width=720:height=576:\
alsa:adevice=hw.1:amode=1:immediatemode=0\
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200:autoaspect\
-oac lavc -lavcopts acodec=ac3:abitrate=96:threads=2 -af volnorm\
-vf crop=688:560:16:8,pp=lb -ffourcc XVID

The problem is that when trying to skip frames (pressing right/up arrow)
during playing the obtained zzz.avi, the sound playback starts over.
Furthermore, there is some A/V syncing problem (the sound is in late
relative to the video) even without skipping.

I have attached the output... no idea what the problem is. Previously I
used the syntax above with 1.0pre7try2 on another machine without any such
problem.

TIA,
Zsolt

MEncoder 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU T2300 @ 1.66GHz (Family: 6, Model:
14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Pinnacle PCTV USB 2
Tuner cap:
Tuner rxs:
Capabilites: video capture tuner audio read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-M;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Current format: YUYV
v4l2: current audio mode is : STEREO
[V] filefmt:9 fourcc:0x32595559 size:720x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
Opening video filter: [crop w=688 h=560 x=16 y=8]
Crop: 688 x 560, 16 ; 8
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x8775490]SwScaler: BICUBIC scaler, from yuyv422 to yuv420p
using MMX2
[swscaler @ 0x8775490]SwScaler: using 4-tap MMX scaler for horizontal
luminance scaling
[swscaler @ 0x8775490]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x8775490]SwScaler: using 1-tap MMX "scaler" for vertical
scaling (YV12 like)
[swscaler @ 0x8775490]SwScaler: 720x576 -> 720x576
videocodec: libavcodec (688x560 fourcc=34504d46 [FMP4])
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Forcing output FourCC to 44495658 [XVID].
Forcing audio preload to 0, max pts correction to 0.
Writing header...1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
ODML: vprp aspect is 16384:13335.
Writing header...
ODML: vprp aspect is 16384:13335.
Pos: 60.0s 1501f ( 0%) 24.90fps Trem: 0min 0mb A-V:0.000 [1205:95]
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 16384:13335.

Video stream: 1205.428 kbit/s (150678 B/s) size: 9046735 bytes 60.040
secs 1501 frames

Audio stream: 96.000 kbit/s (11999 B/s) size: 720142 bytes 60.012
secs
v4l2: 1507 frames successfully processed, 0 frames dropped.
_______________________________________________
MEncoder-users mailing list
MEncoder-users@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users

No comments:

PCBs

Links

Forex brokers, Forex online


Privacy Policy