Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques FFMPEG – Copy empty streams

  • FFMPEG – Copy empty streams

    Posted by Grant Mcnair on November 6, 2019 at 9:53 pm

    Does anyone know of a way to force ffmpeg to copy empty video streams? I have a video file from a ProRes recorder (Odyssey 7Q+) that has a corrupted vidoe (stream 0). When I replace the stream and copy it a new file, it produces a playable file with streams in the correct order, but in the original there are blank streams that the proprietary muxing software I am using needs to see in order to work. But these empty streams don’t copy over to the new file. The original has 11 streams, the new file had 7. In the original file there are 4 empty streams.

    I am using this code:
    ffmpeg -i Video1.mov -i Video2.mov -map 1:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:6 -map 0:7 -map 0:8 -map 0:9 -map 0:10 -timecode 24:10:43;18 -c copy New_Video.mov

    ORIGINAL VIDEO (with corrupted stream 0)

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘Video1.mov’:
    Metadata:
    major_brand : qt
    minor_version : 537331968
    compatible_brands: qt CDes
    creation_time : 2008-06-06T20:25:39.000000Z
    timecode : 23:10:43;18
    Duration: 00:01:01.19, start: 0.000000, bitrate: 492224 kb/s
    Stream #0:0(eng): Video: prores (Standard) (apcn / 0x6E637061), none(bt709, progressive), 1920×1080, SAR 1:1 DAR 16:9, 29.97 fps, 90k tbr, 90k tbn, 90k tbc (default)
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    encoder : Apple ProRes 422
    Stream #0:1(eng): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, bt709, progressive), 1920×1080, 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-06T20:25:39.000000Z
    encoder : Apple ProRes 422
    Stream #0:2(eng): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, bt709, progressive), 1920×1080, 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-06T20:25:39.000000Z
    encoder : Apple ProRes 422
    Stream #0:3(eng): Video: prores (Standard) (apcn / 0x6E637061), none(bt709, progressive), 1920×1080, SAR 1:1 DAR 16:9, 2997 tbr, 2997 tbn, 2997 tbc
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    encoder : Apple ProRes 422
    Stream #0:4(eng): Video: prores (Standard) (apcn / 0x6E637061), none(bt709, progressive), 1920×1080, SAR 1:1 DAR 16:9, 2997 tbr, 2997 tbn, 2997 tbc
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    encoder : Apple ProRes 422
    Stream #0:5(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, stereo, s32, 3072 kb/s (default)
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    Stream #0:6(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, stereo, s32, 3072 kb/s (default)
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    Stream #0:7(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, stereo, s32, 3072 kb/s (default)
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    Stream #0:8(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, stereo, s32, 3072 kb/s
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    Stream #0:9(eng): Audio: pcm_s32be (lpcm / 0x6D63706C), 48000 Hz, stereo, s32, 3072 kb/s
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    Stream #0:10(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
    creation_time : 2008-06-06T20:25:39.000000Z
    reel_name : Odyssey
    timecode : 23:10:43;18

    NEW VIDEO (with replaced stream 0)

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘New_Video.mov’:
    Metadata:
    major_brand : qt
    minor_version : 512
    compatible_brands: qt
    encoder : Lavf58.29.100
    timecode : 23:09:20:06
    Duration: 00:01:01.20, start: 0.000000, bitrate: 483275 kb/s
    Stream #0:0(eng): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, bt709, progressive), 1920×1080, 149959 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
    Metadata:
    handler_name : Apple Video Media Handler
    encoder : Apple ProRes 422
    timecode : 23:09:20:06
    Stream #0:1(eng): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, bt709, progressive), 1920×1080, 154190 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 11988 tbn, 11988 tbc (default)
    Metadata:
    handler_name : VideoHandler
    encoder : Apple ProRes 422
    Stream #0:2(eng): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, bt709, progressive), 1920×1080, 170018 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 11988 tbn, 11988 tbc (default)
    Metadata:
    handler_name : VideoHandler
    encoder : Apple ProRes 422
    Stream #0:3(eng): Audio: pcm_s32be (in32 / 0x32336E69), 48000 Hz, stereo, s32, 3072 kb/s (default)
    Metadata:
    handler_name : SoundHandler
    Stream #0:4(eng): Audio: pcm_s32be (in32 / 0x32336E69), 48000 Hz, stereo, s32, 3072 kb/s (default)
    Metadata:
    handler_name : SoundHandler
    Stream #0:5(eng): Audio: pcm_s32be (in32 / 0x32336E69), 48000 Hz, stereo, s32, 3072 kb/s (default)
    Metadata:
    handler_name : SoundHandler
    Stream #0:6(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
    handler_name : TimeCodeHandler
    reel_name : Odyssey
    timecode : 23:09:20:06

    Grant Mcnair replied 4 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy