[FFmpeg-user] Cleaning up codeline to grab and record HDV video using Firewire/libiec61883
Terje J. Hanssen
terjejhanssen at gmail.com
Tue Jul 1 01:27:48 EEST 2025
Den 30.06.2025 22:28, skrev BloodMan:
> Hello Terje,
>
>
> W dniu 2025-06-30 o 21:44, Terje J. Hanssen pisze:
> > Seemingly the most important missing part of the documentation's
> example
> > code line
> > ffmpeg -f iec61883 -i auto -dvbuffer 100000 out.mpg
> > is "-c copy"
>
> Hmm... nope ;p
>
> "-c copy" do NOT convert at all, so you always get source codec on
> output (when container support that codec, of course).
That was also the purpose, grab and record from hdv camcorder to hdv
file without transcoding.
>
> AND
>
> .mpg container does NOT support MPEG-2 video (only MPEG-1), that's why
> in the previous example ffmpeg converted mpeg2video to mpeg1video
Well, MPEG-1 or MPEG-2 (dvd.mpg)
https://www.adobe.com/creativecloud/file-types/video/container/mpg.html#what-is-an-mpg-file
>
> AND
>
> the "default" container that supports mpeg2video is .m2ts (then .ts)
>
>
According to the HDV specification the File extension is .m2t (generally)
https://en.wikipedia.org/wiki/HDV#Specifications
dvgrab uses .m2t for hdv default, and also a HDV HDD recorder like
Datavideo DN-300 uses .m2t
According to Steve Mullens V1-FX7 Handbook:
When either is captured, the stream should have an .m2t file extension;
but it may have an .mpg extension.
More information about the ffmpeg-user
mailing list