
- Posts: 259
- Joined: Tue Feb 14, 2017 11:15 am
- Location: Germany
Hi
So, you end up with a lot of .mp4 files and Resolve is unable to import because of the AAC audio codec used in Smartphones and Camcorders nowadays? Fear no more, here is a simple bash script to convert everything to the correct media that you can import into Resolve Studio:
Just copy and paste to a new file, make it executable and start it inside the folder with a bunch of mp4 files. The script converts any audo track to a PCM file, extracts the video untouched and multiplexes everything into a mov file. There is no transcoding of the video track so the script is as fast as your HD or SSD can read and write files. After that you can import the mov into Resolve.
Please be aware that you must make a backup copy of your mp4 files before you use the script.
Have fun and good luck
PS:
Feel free to modify the script for your needs.
So, you end up with a lot of .mp4 files and Resolve is unable to import because of the AAC audio codec used in Smartphones and Camcorders nowadays? Fear no more, here is a simple bash script to convert everything to the correct media that you can import into Resolve Studio:
- Code: Select all
#!/bin/bash
for f in *.mp4; do ffmpeg -i "$f" "${f/%mp4/wav}"; ffmpeg -i "$f" -vcodec copy -an -bsf:v h264_mp4toannexb "${f/%mp4/m4v}"; rm "$f"; ffmpeg -i "${f/%mp4/m4v}" -i "${f/%mp4/wav}" -acodec copy -vcodec copy "${f/%mp4/mov}"; rm "${f/%mp4/m4v}"; rm "${f/%mp4/wav}"; done
Just copy and paste to a new file, make it executable and start it inside the folder with a bunch of mp4 files. The script converts any audo track to a PCM file, extracts the video untouched and multiplexes everything into a mov file. There is no transcoding of the video track so the script is as fast as your HD or SSD can read and write files. After that you can import the mov into Resolve.
Please be aware that you must make a backup copy of your mp4 files before you use the script.
Have fun and good luck
PS:
Feel free to modify the script for your needs.
Resolve Studio 19.1.4 | Linux Mint 22.1 'Xia' | 32 GB | i7 | Nvidia RTX2080 8 GB (570.124.04) | 2.5 TB SSD | 48 TB NAS