This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Make list of video files | |
TMPFILE=$(mktemp -p .) || exit 1 | |
for file in *.{mp4,MP4} | |
do | |
echo file \'$file\' >> $TMPFILE | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for converting a folder of MXF video files to different to a single MP4 file. | |
# Alexander Refsum Jensenius, RITMO, University of Oslo | |
# v0.1 2019-11-03 | |
# Find and move all MXF files to the "root" (where the script is run from) | |
find . -name "*.MXF" -exec mv {} . ";" | |
# Create list of files to be used for concatenation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for converting MXF video files to different to other file formats. | |
for i in *.MXF; do | |
if [ -e "$i" ]; then | |
file=`basename "$i" .MXF` | |
# MP4 file with default settings + deinterlacing | |
ffmpeg -i "$i" -c:v libx264 -vf yadif "$file.mp4" |
OlderNewer