[MEncoder-users] unable to encode to dvvideo - can't initialize dv format!

Jelle de Jong jelledejong at powercraft.nl
Sun Mar 15 00:23:48 CET 2009

Hash: SHA1

Reimar � wrote:
> On Sat, Mar 14, 2009 at 11:22:46PM +0100, Jelle de Jong wrote:
>> [dv @ 0xa4755b0]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)
> That message is quite clear, you just have to check it step by step.
> In your case, DV can not store mono audio.

Thank you for responding, you made made a point I thought I tested
carefully but I seems to have missed a step:

For the records: I saw the mono vs stereo stream issue so I though lets
test if it will work when I use stereo sound so I made this command as
test case: (I have created an awful lots of test)

$ mencoder tv:// -tv
- -oac pcm -ovc libdv -of lavf -lavfopts format=dv -o video7.dv

But as you can see its not exactly the same but gave the same error so I
thought I covert the stereo vs mono issue. However I now did some
addition testing and please see watch0.log and output0.log in the
attachments for the results.

Killer issues I still have is the major cpu load making it impossible to
do a live recording see my previous other email tread on the mailinglist
for this.

I noticed when inspecting the created dv stream from mencoder there are
two stereo channel audio tracks, why is this? I thought I specified only
one? (see output0.log) (see also the yuv422p -> yuv420p can I make
mencoder output yuv420p)

$ ffmpeg -i output0.dv -target pal-dv output1.dv
Input #0, dv, from 'output0.dv':
  Duration: 00:00:00.84, start: 0.000000, bitrate: 57600 kb/s
    Stream #0.0: Video: dvvideo, yuv422p, 720x576, 57600 kb/s, PAR 59:54
DAR 295:216, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0.2: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Output #0, dv, to 'output1.dv':
    Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 59:54 DAR
295:216], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s

The ffmpeg output seems more then 50% smaller in file size (see
output0.log) why is this? (video is corrupted on both output0.dv and

Thanks in advance for looking at the attachments and trying to help me,
its really appreciated.

Best regards,

Jelle de Jong

btw does somebody know how to display the real fps of a stream when
watching it with mplayer so not the header info but the actual real fps
because i also have some v4l2 input devices that can have variable frame
per seconds rates and i would like to do some debugging on them
Version: GnuPG v1.4.9 (GNU/Linux)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.0.log
Type: text/x-log
Size: 30565 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20090315/ae359de6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watch0.log
Type: text/x-log
Size: 8908 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20090315/ae359de6/attachment-0001.bin>

More information about the MEncoder-users mailing list