First, let me apologise for kicking this topic as it's fairly old... Secondly, let me thank GJeffrey for it's work on the cmd files. I finally got it going a week ago. As I'm still using Vegas Movie Studio 14, it's an issue for me that I now have the ability to record 4:2:2 but can't edit them (yes, I know Movie Studio 14 probably can't export in 4:2:2, but that is of later concern)
I just got a second hand GY-HM200 and while it works fine, I sure as hell dislike the fact it has a CMOS-sensor. I'm a lightning enthusiast, so capturing it is rather tricky with such an unwilling sensor. Tests with a photoflash on different settings seemed to show better results with the camera set to interlaced. And thus here lies my current problem: I now have a bunch of files from a recent storm, shot in 4:2:2 at 50 frames interlaced (which is probably very odd). While the .cmd files by GJeffrey have worked wonders so far, they now fail: everything gets created like with progressive files, but now as soon as the .cmd file reaches the last file, it cleans up everything it just created. Maybe this is just down to the conversion or format that just can't handle interlaced video, but I just don't know enough about command-line stuff to figure this one out (and though I searched for it to find out myself, I could not find anything about it)
Is there anyone here that could shed a light on what I need to change to get this to work? Handbrake is an option, but the cmd files work so much faster.
Here's a Mediainfo-dump of one of the interlaced files, I'm sorry, but without the ability to put this between code-tags, it looks horrible.
General Complete name : D:\Video 1\27-06-2021 onweer\142G0186.MOV Format : MPEG-4 Format profile : QuickTime Codec ID : qt 2007.09 (qt ) File size : 192 MiB Duration : 31 s 680 ms Overall bit rate mode : Variable Overall bit rate : 50.7 Mb/s Encoded date : UTC 2021-06-27 18:57:48 Tagged date : UTC 2021-06-27 18:57:48
Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High 4:2:2@L4.1 Format settings : 2 Ref Frames Format settings, CABAC : No Format settings, Reference frames : 2 frames Format settings, GOP : M=3, N=12 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 31 s 680 ms Bit rate mode : Variable Bit rate : 49.0 Mb/s Maximum bit rate : 50.0 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 8 bits Scan type : Interlaced Scan type, store method : Separated fields Scan order : Top Field First Bits/(Pixel*Frame) : 0.946 Stream size : 185 MiB (97%) Language : English Encoded date : UTC 2021-06-27 18:57:48 Tagged date : UTC 2021-06-27 18:57:48 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC
Audio ID : 2 Format : PCM Format settings : Big / Signed Codec ID : twos Duration : 31 s 680 ms Bit rate mode : Constant Bit rate : 1 536 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Bit depth : 16 bits Stream size : 5.80 MiB (3%) Language : English Encoded date : UTC 2021-06-27 18:57:48 Tagged date : UTC 2021-06-27 18:57:48
Other ID : 3 Type : Time code Format : QuickTime TC Duration : 31 s 680 ms Bit rate mode : Constant Frame rate : 25.000 FPS Time code of first frame : 00:45:14:22 Time code, striped : Yes Language : English Encoded date : UTC 2021-06-27 18:57:48 Tagged date : UTC 2021-06-27 18:57:48
This is the output I managed to capture from the CMD file while running. It would be easier (for me) to have this thing just pause at the end when there are errors or warning instead of closing automatically, but hey.
---------- CHROMA.TXT: 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000028b8db88980] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000028b8db88980] st: 0 edit list 1 Cannot find an index entry before timestamp: 0. Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '142G0186.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt creation_time : 2021-06-27T18:57:48.000000Z Duration: 00:00:31.68, start: 0.000000, bitrate: 50715 kb/s Stream #0:0(eng): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p(tv, bt709, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 49030 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Apple Video Media Handler encoder : H.264 timecode : 00:45:14:22 Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Apple Sound Media Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Time Code Media Handler timecode : 00:45:14:22 Output #0, h264, to '142G0186.264': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt encoder : Lavf58.34.101 Stream #0:0(eng): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p(tv, bt709, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 49030 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Apple Video Media Handler encoder : H.264 timecode : 00:45:14:22 Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 792 fps=0.0 q=-1.0 Lsize= 189606kB time=00:00:31.64 bitrate=49091.3kbits/s speed=89.5x video:189609kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [mov,mp4,m4a,3gp,3g2,mj2 @ 0000017c72fb9800] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000017c72fb9800] st: 0 edit list 1 Cannot find an index entry before timestamp: 0. Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '142G0186.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt creation_time : 2021-06-27T18:57:48.000000Z Duration: 00:00:31.68, start: 0.000000, bitrate: 50715 kb/s Stream #0:0(eng): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p(tv, bt709, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 49030 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Apple Video Media Handler encoder : H.264 timecode : 00:45:14:22 Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Apple Sound Media Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Time Code Media Handler timecode : 00:45:14:22 Stream mapping: Stream #0:1 -> #0:0 (pcm_s16be (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help Output #0, wav, to '142G0186.wav': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt ISFT : Lavf58.34.101 Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2021-06-27T18:57:48.000000Z handler_name : Apple Sound Media Handler encoder : Lavc58.60.100 pcm_s16le size= 5940kB time=00:00:31.68 bitrate=1536.0kbits/s speed=1.76e+03x video:0kB audio:5940kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001282% Warning: Missing zero_byte before start_code_prefix_one_3byte at access unit start Warning: AVC support is work-in-progress Warning: Missing zero_byte before start_code_prefix_one_3byte at access unit start Info: Duration: 0 (00:00:00:00 @25fps) ERROR: Start position 0 is >= input duration 0
Have you tried just using the free version of DaVinci Resolve?
Yes. That doesn't work as JVC-footage is not supported by Blackmagic. I've got version 16, so unless they changed that in version 17 (which I highly doubt) I only need to upgrade 😀
@ JN- : I'll look into that tomorrow (if I don't forget... it's a 'bit' busy at work again...) Thanks so far.
@MennoV The error I see at the top of the ffmpeg output is that the cmd you ran is not specific on the audio streams. From the mediainfo it looks like they're dual mono. I don't see the cmd you actually ran but if it's anything like the one mentioned earlier in this thread, it's probably doing things you might not need. What is it exactly that you want to do? Convert 422 to 420? Convert the dual mono audio streams to a single stereo stream? Convert the interlaced to progressive? All of that? If you post a short sample clip, I'd be happy to give you the ffmpeg command line that'll do it.
Btw, if you want the cmd file you have to pause, just add the word "pause" as the last line at the end of the file with notepad.
Hello... sorry that it took a long time to get back on this. Got 'the first shot' a week or 3 ago and boy did that wear me down! (Besides the corona-chaos at work that is now already lasting for 1,5 years). @ Howard Vigorita: It could be the audiochannels are indeed dual mono, as it's not a consumercamera but a camera with 2 XLR-inputs that can be set to either record individual sources or copy the input of input 1 to input 2 by flipping a switch. The only thing that needs to be done is converting the .MOV 4:2:2 file Vegas can't handle to the .mxf format Vegas does handle. If it converts interlaced to progressive, I don't really care, I doubt I will see the difference ;) . But while progressive files convert flawless with the mov2mxf V2.2.cmd file by GJeffrey, the interlaced files for some reason don't.
I added pause, and that at least halted the command file after 1 attempt at conversion ;)
Be happy to give you a cmd line to convert a 422 mov to mxf with ffmpeg but my experience is that ffmpeg is very finicky generating the mxf format... it requires re-encoding or it won't do it. If you could upload a short example clip of the mov file you want converted, that would avoid allot of back-and-forth.
Personally, I'd recommend an alternate approach... keep it mov and convert the 422 to 420. Your camera specs indicate it has a single 420 sensor which is artificially puffed up to 422 by firmware during the recording process. So converting it back should lose nothing actually captured and make the edit process more brisk with a smaller file supported by hardware decoding. Your camera specs also indicate it can be set to record AVCHD 420 in the first place. Doing that would not only avoid the 2 extra conversion steps and probably yield a less demanding bitrate for the same captured data resulting in more media recording time.
If you upload a short clip to a cloud drive I'd be happy to test a pair of script command lines so you can try it both ways.
Or to experiment on your own, try this which should pick up one of your audio streams:
@eikira I'm guessing that'll do both but I don't have an MOV clip like that of @MennoV to test it on. Though you might be able to just copy the audio streams going to mov but I didn't try that. I did test the video part by converting a Canon mxf to mov and then back to mxf again. And I often use the audio mapping portion shown above to convert Canon mxf which contains dual mono streams to mov so it should also work on a mov to mov pixel reformat.