callmedougan

im further along

Jun 13th, 2020 (edited)
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. showing TWO audio tracks & one video file
  2.  
  3. ffmpeg -i "Desktop 2020.03.12 - 22.34.34.01.mp4" -c:a libmp3lame -b:a 320k -map 0:2 cars2.mp3
  4.  
  5. command = "ffmpeg -i "+INPUT_FILE+" -ab 160k -ac 2 -ar "+str(SAMPLE_RATE)+" -vn "+TEMP_FOLDER+"/track1audio.wav"
  6.  
  7. ffmpeg -i "TESTER.mp4" -map 0:2 track2audio.wav
  8. its simple audio dump without sammple rating (originally set as 44,100 by the coding) nor bitrate (originally capped by the coding to 160k, BUT without restraints windows caps at 1536k, dropping to 1411kps when the restriction of a 44.1kHz sample rate is forces)
  9.  
  10. https://en.wikipedia.org/wiki/WAV (first introduced 1991 as lossless codec ie no compression)
  11.  
  12. pause
  13.  
  14. https://trac.ffmpeg.org/wiki/Map
  15.  
  16.  
  17. reminder - you can probably code the command line to output BOTH audio files in one command line
Advertisement
Add Comment
Please, Sign In to add comment