spacepaste

  1.  
  2. # Separate audio & video STREAMS from video-TRACK
  3. args_separate = ['ffmpeg', '-y', '-i', fSrcVideo,
  4. '-map', '0:a', '-f', 'wav', '-b:a', '48k', fAudioStream, # force 48kHz wav
  5. '-map', '0:v', fVideoStream]
  6. subprocess.run(args_separate, check=True)
  7.