[MPlayer-users] About files generated by a videocamera

Fabio S. fast at ferrara.linux.it
Wed Sep 14 18:34:45 CEST 2005


>> Since the camera produces a file for every time I press rec, I want to
>> join files saved the same day. Moreover, I reencode files because my dvd
>> player can't play Sanyo original format. For the latter task, I have no
>> problem:
>>
>> mencoder file.avi -oac copy -ovc lavc -lavcopts
>> vcodec=mpeg4:vbitrate=3000:vpass=1:mbd=2:trell:v4mv -ffourcc DIVX
>>
>> mencoder file.avi -oac copy -ovc lavc -lavcopts
>> vcodec=mpeg4:vbitrate=3000:vpass=2:mbd=2:trell:v4mv -ffourcc DIVX
>>
>> does the job.
>>
>> To join the files, as suggested by the documentation I use
>>
>> cat 1.avi 2.avi 3.avi > a.avi
>> mencoder -oac copy -ovc copy -forceidx -o b.avi a.avi
>
> This is NOT suggested by the documentation. It was documented in OLD
> versions of mplayer as a VERY BAD HACK that would _sometimes_ work,
> and it's long since been removed (if I'm wrong and it's still in the
> docs somewhere, please tell us so we can remove it).

It is still the faq, section 4.8:

http://mplayerhq.hu/DOCS/HTML/en/faq.html#id2889353


> Simply encode all the files at once with mencoder:
>
> mencoder -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000:vpass=1:mbd=2:trell:v4mv -ffourcc DIVX file1.mp4 file2.mp4 file3.mp4 ...

Oh, well, this is much simpler! I will try it.

Any hint about how to extract the registration date from the file?

Thanks

Fabio




More information about the MPlayer-users mailing list