Replacing a video stream, while keeping all others the same

Questions involving a Windows version of FFmpeg.
Post Reply
vandalay22
Posts: 2
Joined: Mon Nov 04, 2019 3:53 pm

Replacing a video stream, while keeping all others the same

Post by vandalay22 » Mon Nov 04, 2019 4:16 pm

Hi,

Wondering if someone could help an FFMPEG noob with this. I am trying to replace a video stream in a file that includes multiple streams. The output file needs to be identical to Video1.mov (including the data stream), except that the first video stream (stream 0) would be replaced with the video from Video2.mov.

Any help is appreciated!




This is the info for Video1.mov, which has multiple video, audio streams, plus a data stream:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CLIP0000186_092_ORIGINAL.mov':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CDes
creation_time : 2008-06-06 20:25:39
timecode : 23:10:43;18
Duration: 00:01:01.19, start: 0.000000, bitrate: 492224 kb/s
Stream #0:0(eng): Video: prores (apcn / 0x6E637061), none(bt709), 1920x1080, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc (default)
Metadata:
creation_time : 2008-06-06 20:25:39
encoder : Apple ProRes 422
Stream #0:1(eng): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709), 1920x1080, 154190 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc (default)
Metadata:
creation_time : 2008-06-06 20:25:39
encoder : Apple ProRes 422
Stream #0:2(eng): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709), 1920x1080, 170018 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc (default)
Metadata:
creation_time : 2008-06-06 20:25:39
encoder : Apple ProRes 422
Stream #0:3(eng): Video: prores (apcn / 0x6E637061), none(bt709), 1920x1080, SAR 1:1 DAR 16:9, 2997 tbr, 2997 tbn, 2997 tbc
Metadata:
creation_time : 2008-06-06 20:25:39
encoder : Apple ProRes 422
Stream #0:4(eng): Video: prores (apcn / 0x6E637061), none(bt709), 1920x1080, SAR 1:1 DAR 16:9, 2997 tbr, 2997 tbn, 2997 tbc
Metadata:
creation_time : 2008-06-06 20:25:39
encoder : Apple ProRes 422
Stream #0:5(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s32, 3072 kb/s (default)
Metadata:
creation_time : 2008-06-06 20:25:39
Stream #0:6(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s32, 3072 kb/s (default)
Metadata:
creation_time : 2008-06-06 20:25:39
Stream #0:7(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s32, 3072 kb/s (default)
Metadata:
creation_time : 2008-06-06 20:25:39
Stream #0:8(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s32, 3072 kb/s
Metadata:
creation_time : 2008-06-06 20:25:39
Stream #0:9(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s32, 3072 kb/s
Metadata:
creation_time : 2008-06-06 20:25:39
Stream #0:10(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2008-06-06 20:25:39
reel_name : Odyssey
timecode : 23:10:43;18



This is the info for Video2.mov, which is just a single video stream:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'V0.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
encoder : Lavf57.19.100
Duration: 00:01:01.20, start: 0.000000, bitrate: 149960 kb/s
Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, 149959 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
Metadata:
handler_name : DataHandler
encoder : Apple ProRes 422
timecode : 00:00:00;00
Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
Metadata:
handler_name : DataHandler
timecode : 00:00:00;00

Post Reply
'