[MEncoder-users] How to encode into DV?

Levente Novák lnovak at dragon.unideb.hu
Wed Jan 31 23:18:35 CET 2007


I would like to grab from a v4l2 source and encode into DV. How is it
possible with MEncoder? If I specify:

mencoder tv:// -tv
driver=v4l2:device=/dev/video0:input=0:outfmt=YV12:width=720:height=576:
fps=25:audiorate=48000:forceaudio:amode=1:forcechan=2 -srate 48000 -of
lavf -lavfopts
format=dv:i_certify_that_my_video_stream_does_not_use_b_frames -oac pcm
-ovc lavc -lavcopts vcodec=dvvideo -o grab.dv


Then all I get is:


MEncoder dev-SVN-r22076-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: Type: 15 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 at zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: BT878 video (Pinnacle PCTV Stud
 Tuner cap:
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner
read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5
= PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YVU420
v4l2: current audio mode is : STEREO
Audio block size too low, setting to 16384!
[V] filefmt:9  fourcc:0x32315659  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio:
192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
** MUXER_LAVF
*****************************************************************You
have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will
generate
INCORRECT files in the presence of B frames. Moreover, due to bugs
MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (720x576 fourcc=69767664 [dvvi])
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 01f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
AUDIO CODEC ID: 10000, TAG: 0
Writing header...
[dv @ 0x87a2308]Can't initialize DV format!
Make sure that you supply exactly two streams:
     video: 25fps or 29.97fps, audio: 2ch/48Khz/PCM
     (50Mbps allows an optional second audio stream)
Floating point exception


Levente





More information about the MEncoder-users mailing list