From terjejhanssen at gmail.com Tue Jul 1 01:27:48 2025 From: terjejhanssen at gmail.com (Terje J. Hanssen) Date: Tue, 1 Jul 2025 00:27:48 +0200 Subject: [FFmpeg-user] Cleaning up codeline to grab and record HDV video using Firewire/libiec61883 In-Reply-To: <9c2da9e5-6fca-4481-ad97-c84917a9f655@gmail.com> References: <0d01249f-8fd4-4a61-ae00-619dbbdc1e16@gmail.com> <98f3200d-69f8-467a-9df9-680c8796356c@gmail.com> <9c2da9e5-6fca-4481-ad97-c84917a9f655@gmail.com> Message-ID: <8eae0233-a188-4a47-b185-3f7e2c574b27@gmail.com> 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. From bloodman at gmail.com Tue Jul 1 03:08:01 2025 From: bloodman at gmail.com (BloodMan) Date: Tue, 1 Jul 2025 02:08:01 +0200 Subject: [FFmpeg-user] Cleaning up codeline to grab and record HDV video using Firewire/libiec61883 In-Reply-To: <8eae0233-a188-4a47-b185-3f7e2c574b27@gmail.com> References: <0d01249f-8fd4-4a61-ae00-619dbbdc1e16@gmail.com> <98f3200d-69f8-467a-9df9-680c8796356c@gmail.com> <9c2da9e5-6fca-4481-ad97-c84917a9f655@gmail.com> <8eae0233-a188-4a47-b185-3f7e2c574b27@gmail.com> Message-ID: Hi, W dniu 2025-07-01 o?00:27, Terje J. Hanssen pisze: >> .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 In general yes, in real - it depends (as you see in ffmpeg, and many other programs) And do you remember what I wrote? "do not use .mpg without codec tweaking" >> 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 m2ts is a newer version of m2t. m2t is just obsolete. (in tv industry .ts is newer and better version of m2ts, for fun) btw. I don't really know why we're arguing. You wanted explanations, so I explained - it is as it is, not as you would like it to be. According to http://me -- Pozdrawiam, bloodman at gmail.com