diff --git a/index.html b/index.html index fb712c9..8f20a55 100644 --- a/index.html +++ b/index.html @@ -671,17 +671,28 @@
for f in *.MXF; do ffmpeg -i "$f" -map 0 -c copy "${f%.MXF}.mov"; done
Re-wrap .MFX
files in a specified directory to .mov
files by using this code within a .sh
file. The shell script (.sh file) and all MXF files must be contained in the same directory, and the script must be run from the directory itself (cd ~/Desktop/MXF_file_directory). Execute .sh
file with the command sh Rewrap-MXF.sh
Bash scripts are plain texts files saved with a .sh extension. This entry explains how they work with the example of a bash script named “Rewrap-MXF.sh”, which rewraps .MXF files in a given directory to .MOV files.
+“Rewrap-MXF.sh” contains the following text:
+for file in *.MXF; do ffmpeg -i "$file" -map 0 -c copy "${file%.MXF}.mov"; done
Note: the shell script (.sh file) and all .MXF files to be processed must be contained within the same directory, and the script must be run from that directory.
+ Execute the .sh file with the command sh Rewrap-MXF.sh
.
Modify the ffmpeg script as needed to perform different transcodes :)
+The basic pattern will look similar to this:
+ for item in *.ext; do ffmpeg -i $item
e.g., if an input file is bestmovie002.avi, its output will be bestmovie002_suffix.avi.