Site Tools


linux:scripts:audiostreamconvert

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:scripts:audiostreamconvert [2023/06/01 13:44] lunetikklinux:scripts:audiostreamconvert [2023/06/05 22:49] (current) lunetikk
Line 1: Line 1:
 ====== Convert .mkv Audio ====== ====== Convert .mkv Audio ======
  
-Currently this script will convert any audiostream of a .mkv file to EAC3 764k with the same channels (via ffmpeg), then remux these audiostreams to a new .mkv (via mkvmerge)+Currently this script will convert any audiostream of a .mkv file to EAC3 768k with the same channels (via ffmpeg), then remux these audiostreams to a new .mkv (via mkvmerge)
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 27: Line 27:
  
 # Set new bitrate\\ # Set new bitrate\\
-newbitrate="768k"\\+new_bitrate="768k"\\
  
 If you run the script, it will convert all files inside the "input_dir", the output file will have all audio streams converted to the set "new_codec" and "new_bitrate" but with the same channels as before. If the original audio stream had 7.1 channels it will be set to 5.1 because ffmpeg EAC3 only supports up to 5.1. If you run the script, it will convert all files inside the "input_dir", the output file will have all audio streams converted to the set "new_codec" and "new_bitrate" but with the same channels as before. If the original audio stream had 7.1 channels it will be set to 5.1 because ffmpeg EAC3 only supports up to 5.1.
Line 133: Line 133:
     echo "Conversion complete for file: $filename"     echo "Conversion complete for file: $filename"
     echo "----------------------------------"     echo "----------------------------------"
 +    
 +    # Clean up temporary directory files
 +    rm $temp_dir/*
 +
   fi   fi
 done done
linux/scripts/audiostreamconvert.1685619840.txt.gz · Last modified: 2023/06/01 13:44 by lunetikk