VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member logicom's Avatar
    Join Date
    Oct 2008
    Location
    Serbia
    Search Comp PM
    Any tip on how to include stream 2 from raw dv25 file with ffmpeg or ffmbc ?

    ex.
    Code:
    Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
    Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
    when I do:

    Code:
    ffmpeg -i inputfile.dv -c:v copy -c:a copy output.dv
    I get only first audio channel stream 0:1

    once I try

    Code:
    ffmpeg -i inputfile.dv -map 0:0 -map 0:1 -map 0:2 -c:v copy -c:a copy output.dv
    Code:
    [dv @ 051d7ee0] Can't initialize DV format!
    Make sure that you supply exactly two streams:
         video: 25fps or 29.97fps, audio: 2ch/48|44|32kHz/PCM
         (50Mbps allows an optional second audio stream)
    or

    Code:
       Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 28800 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
        Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, 1024 kb/s
        Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, 1024 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
      Stream #0:2 -> #0:2 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred
    Regards.
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Well, it's clear to me: ffmpeg is designed to utilize only [vids] streams and [auds] streams, not [ivas] streams. Or, if it is actually trying to mux with an [ivas] stream, it doesn't support the full spec of DV.

    Note: you have listed 32kHz/16bit. That is not part of the DV spec, so it's possible ffmpeg is having trouble because of that. The spec states: 4 x 32kHz/12bit, or 2 x 48kHz/16bit, or alternately 2 x 44.1kHz/16bit.

    However, I wouldn't be surprised if ffmpeg expects to expand 12bit->16bit (fits better byte-wise), and expects to only utilize 2 channels (at a time). It IS rare when the full 4 channels have been utilized in any workflow, and those workflows usually have involved major quality compromises.

    Scott
    Quote Quote  
  3. Member logicom's Avatar
    Join Date
    Oct 2008
    Location
    Serbia
    Search Comp PM
    I actually tough 4 channels at 32Khz 12 bits . Any suggestion how to copy or cut this file leaving the second stream alive ?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!