link626
21st January 2013, 17:28
I'm trying to join two h264 video streams into one mp4 with one track.
But mp4box keeps outputting an mp4 file containing two separate tracks.
If I try to force it into one track with avidemux, the 2nd part of the video stream is corrupt.
Both video streams have the same resolution.
Mp4box info of the two h264 files-
-info 1111.mp4
* Movie Info *
Timescale 600 - Duration 00:00:09.008
Fragmented File no - 1 track(s)
File Brand isom - version 1
Created: GMT Mon Jan 21 11:46:47 2013
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 30000 - Duration 00:00:09.009
Media Info: Language "Undetermined" - Type "vide:avc1" - 270 samples
Visual Track layout: x=0 y=0 width=704 height=386
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 704 x 386
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 3
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 704 x 386
Self-synchronized
-info 4444.mp4
* Movie Info *
Timescale 600 - Duration 00:03:50.230
Fragmented File no - 1 track(s)
File Brand isom - version 1
Created: GMT Mon Jan 21 11:29:47 2013
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 11988 - Duration 00:03:50.230
Media Info: Language "Undetermined" - Type "vide:avc1" - 6900 samples
Visual Track layout: x=0 y=0 width=704 height=386
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 704 x 386
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 3.1
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 704 x 386
Self-synchronized
Anyone know why I can't join these two files into one stream in an mp4 container?
I'm trying to do the same thing I've done with xvid, where you can join 2 different video sources as long as resolution is the same.
But mp4box keeps outputting an mp4 file containing two separate tracks.
If I try to force it into one track with avidemux, the 2nd part of the video stream is corrupt.
Both video streams have the same resolution.
Mp4box info of the two h264 files-
-info 1111.mp4
* Movie Info *
Timescale 600 - Duration 00:00:09.008
Fragmented File no - 1 track(s)
File Brand isom - version 1
Created: GMT Mon Jan 21 11:46:47 2013
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 30000 - Duration 00:00:09.009
Media Info: Language "Undetermined" - Type "vide:avc1" - 270 samples
Visual Track layout: x=0 y=0 width=704 height=386
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 704 x 386
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 3
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 704 x 386
Self-synchronized
-info 4444.mp4
* Movie Info *
Timescale 600 - Duration 00:03:50.230
Fragmented File no - 1 track(s)
File Brand isom - version 1
Created: GMT Mon Jan 21 11:29:47 2013
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD
Track # 1 Info - TrackID 1 - TimeScale 11988 - Duration 00:03:50.230
Media Info: Language "Undetermined" - Type "vide:avc1" - 6900 samples
Visual Track layout: x=0 y=0 width=704 height=386
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 704 x 386
AVC Info: 1 SPS - 1 PPS - Profile High @ Level 3.1
NAL Unit length bits: 32
Pixel Aspect Ratio 1:1 - Indicated track size 704 x 386
Self-synchronized
Anyone know why I can't join these two files into one stream in an mp4 container?
I'm trying to do the same thing I've done with xvid, where you can join 2 different video sources as long as resolution is the same.