[MEncoder-users] Autosplit a grab at 1 or 2 GB boundaries?

Levente Novák lnovak at dragon.unideb.hu
Tue May 29 20:13:33 CEST 2007


Maybe I haven't searched deeply enough, but I am wondering whether it is
possible to split a v4l2 grab (raw DV) into  1 GB or 2 GB chunks as
separate files on-the-fly? I tried to omit the --enable-largefiles flag
at compile time but MEncoder still writes a large monolithic file out of
an 1 hour-long footage. This would not be a problem per se, but
unfortunately audio and video gradually loses the sync, which becomes
very annoying after 20-30 minutes. A possible workaround would be to
grab only short clips at once (from an Hi8 source, so no problems with
this) but it would be easier for me not to stop and start the camcorder
manually so often.

Levente

PS. Is there a way to force MEncoder to grab audio and video in sync
(frame by frame) even if the frame rate changes slightly (eg. sometimes
24.9 fps instead of 25 fps because of the CPU load), which I suspect
being the source of the loss of synchronisation. I tried both -mc 0,
-noskip and -vf harddup alone and in combination, none of them really
helped. I don't mind if the resulting DV file is 24.9 fps of 25 fps
(neither the video nor the audio speedup is noticeable when playing the
file back at 25 fps) but the async is very annoying.





More information about the MEncoder-users mailing list