Hello,
As explained here, I had an issue editing an MPG file that was actually several MPG files joined into one, due to the 2GB file limit imposed by FAT32 in my camcorder.
This is the first time I was struggling, but in case the issue comes up again, I wanted to ask: Is there a more reliable way to join MPG files than either of the following?
Code:
copy /b file1.mpg+file2.mpg merged.mpg
ffmpeg -i "concat:file1.mpg|file2.mpg" -c copy -target pal-dvd merged.mpg
Thank you.
FWIW, here's what MediaInfo reports about one of the source files:
Code:
General
Complete name : C:\file1.mpg
Format : MPEG-PS
File size : 1.98 GiB
Duration : 29 min 57 s
Overall bit rate mode : Variable
Overall bit rate : 9 446 kb/s
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Duration : 29 min 57 s
Bit rate mode : Variable
Bit rate : 8 810 kb/s
Maximum bit rate : 9 100 kb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.850
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Closed
Stream size : 1.84 GiB (93%)
Audio
ID : 189 (0xBD)-128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Muxing mode : DVD-Video
Duration : 29 min 56 s
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 96.0 MiB (5%)
Service kind : Complete Main