Combining MPG files

Jack S wrote on 1/14/2012, 8:25 AM
Hi. I've seen advice on this forum on how to combine mpg files using the DOS binary copy command. I find myself needing to do this now but I find that it doesn't work properly. I'm using the command:

copy /b file1.mpg+file2.mpg combined.mpg

When I play the file (combined.mpg) I find that a few seconds of the beginning of the second file is missing. I thought a binary copy would seamlessly tack the second file onto the end of the first one. Or am I wrong in this assumption?

My system
Genshin Infinity Gaming PC
Motherboard Gigabyte H610M H: m-ATX w/, USB 3.2, 1 x M.2
Power Supply Corsair RM750X
Intel Core i7-13700K - 16-Core [8P @ 3.4GHz-5.4GHz / 8E @ 2.50GHz-4.20GHz]
30MB Cache + UHD Graphics, Ultimate OC Compatible
Case Fan 4 x CyberPowerPC Hyperloop 120mm ARGB & PWM Fan Kit
CPU Fan CyberPowerPC Master Liquid LITE 360 ARGB AIO Liquid Cooler, Ultimate OC Compatible
Memory 32GB (2 x 16GB) DDR5/5200MHz Corsair Vengeance RGB
MSI GeForce RTX 4060 Ti 8GB - Ray Tracing Technology, DX12, VR Ready, HDMI, DP
System drive 1TB WD Black SN770 M.2 NVMe PCIe SSD - 5150MB/s Read & 4900MB/s Write
Storage 2 x 2TB Seagate BarraCuda SATA-III 6.0Gb/s 7200RPM
Windows 11 Home (x64)
Monitors
Generic Monitor (PHL 222V8) connected to GeForce RTX 4060 Ti
Generic Monitor (SAMSUNG) connected to iGPU

Camcorder
SONY Handycam HDR-XR550VE

Comments

musicvid10 wrote on 1/14/2012, 9:34 AM
The problem with concatenating long-GOP files is they do not get indexed.
VideoRedo Plus will take care of this for you and return frame-accurate cuts/joins.
Chienworks wrote on 1/14/2012, 10:29 AM
It only works with stream files like AVCHD and MT2S.
musicvid10 wrote on 1/14/2012, 11:14 AM
I thought it only worked reliably with intraframe compression.
;?)
Jack S wrote on 1/14/2012, 4:42 PM
Thank you guys for your quick responses.

My system
Genshin Infinity Gaming PC
Motherboard Gigabyte H610M H: m-ATX w/, USB 3.2, 1 x M.2
Power Supply Corsair RM750X
Intel Core i7-13700K - 16-Core [8P @ 3.4GHz-5.4GHz / 8E @ 2.50GHz-4.20GHz]
30MB Cache + UHD Graphics, Ultimate OC Compatible
Case Fan 4 x CyberPowerPC Hyperloop 120mm ARGB & PWM Fan Kit
CPU Fan CyberPowerPC Master Liquid LITE 360 ARGB AIO Liquid Cooler, Ultimate OC Compatible
Memory 32GB (2 x 16GB) DDR5/5200MHz Corsair Vengeance RGB
MSI GeForce RTX 4060 Ti 8GB - Ray Tracing Technology, DX12, VR Ready, HDMI, DP
System drive 1TB WD Black SN770 M.2 NVMe PCIe SSD - 5150MB/s Read & 4900MB/s Write
Storage 2 x 2TB Seagate BarraCuda SATA-III 6.0Gb/s 7200RPM
Windows 11 Home (x64)
Monitors
Generic Monitor (PHL 222V8) connected to GeForce RTX 4060 Ti
Generic Monitor (SAMSUNG) connected to iGPU

Camcorder
SONY Handycam HDR-XR550VE

Chienworks wrote on 1/14/2012, 5:05 PM
It will work fine with interframe compression, as long as those files have closed GOPs at the beginning and end and don't have extra header information.
musicvid10 wrote on 1/14/2012, 6:02 PM
Apologies if I'm mistaken, but isn't all 1080 HDV and AVCHD camcorder footage Open GOP?
Don't all Transport Streams contain extra header information?