[MEncoder-users] Trouble encoding to DV format

Scott Burton cyclezero at gmail.com
Tue Feb 6 01:56:22 CET 2007


I'm having trouble getting mencoder or ffmpeg to output a readable DV-format
file. I've tried lavc's "dvvideo" codec and lavf's "dv" format, I've tried
libdv, a few other things. I keep running into errors.


Here's my input:

scott% mencoder Downloads/get_video.flv -profile dv -o test.dv

Here's the [dv] profile I'm using to encode:

[dv]
profile-desc="DV-NTSC encoding"
oac=lavc=yes
lavcopts=aglobal=1:acodec=aac:abitrate=160
ovc=lavc=yes
lavcopts=vcodec=dvvideo
vf=scale=720:480
ofps=30000/1001
of=lavf=yes
lavfopts=format=dv:i_certify_that_my_video_stream_does_not_use_b_frames=yes
ffourcc=dvsd=yes

Here is mencoder's output:

MEncoder dev-SVN-r21670-4.0.1 (C) 2000-2006 MPlayer Team
AltiVec found
CPU: PowerPC
success: format: 0  data: 0x0 - 0xafe515
libavformat file format detected.
VIDEO:  [FLV1]  320x240  0bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35  fourcc:0x31564C46  size:320x240  fps:30.00  ftime:=0.0333
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16be, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
** 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 filter: [scale w=720 h=480]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
Forcing output FourCC to 64737664 [dsvd].
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: BICUBIC scaler, from yuv420p to yuv420p using AltiVec
SwScaler: using C scaler for horizontal scaling
SwScaler: using n-tap C scaler for vertical scaling (YV12 like)
SwScaler: 320x240 -> 720x480
videocodec: libavcodec (720x480 fourcc=64737664 [dsvd])
Muxer frame buffer cannot allocate memory!
Muxer frame buffer cannot allocate memory! 0min   0mb  A-V:0.000 [0:0]
Muxer frame buffer cannot allocate memory! 0min   0mb  A-V:0.003 [0:0]

1 duplicate frame(s)!
VIDEO CODEC ID: 25
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
[dv @ 0x62c748]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)
Bus error

ffmpeg fails in a similar fashion. Using libdv results in similar, equally
disappointing conclusion. FWIW I've used multiple video file types for
input, and mplayer is capable of playing them all. Mencoder also has no
problem encoding to H.264, .mp4 etc. Quicktimes.

I have used a binary install of ffmpeg (Drop2DV I believe) configured to
convert .vob or mpeg2 into a Quicktime-readable .dv file, so I know it's
possible. What am I missing here?



More information about the MEncoder-users mailing list