|
I do some video work and currently have a client that will be bringing their video stuff in-house and they are now interested in obtaining the raw mp4 files from our years of work. However the video files contain non-relevant audio that I wouldn't want the client having access to for a variety of reasons. Rough math, I probably have over 3000 mp4 files that would need to be stripped of their audio. These files are also organized in folders by project/month/year. Currently I do all of my editing stuff in Adobe Premiere Pro (have a creative cloud sub if another of their products would be helpful to this). Is there a good way to batch strip audio from mp4s? If I would need to get another program or perhaps some sort of custom script written to assist with this - those are options I'm up for considering as well. The final option is of course just saying no and not doing it but I'm hoping for an option that's reasonable in the time it would take to complete it.
|
# ? Jun 23, 2021 19:13 |
|
|
# ? Apr 25, 2024 07:55 |
|
Would something like this take care of your problem? https://superuser.com/a/1550848
|
# ? Jun 24, 2021 00:42 |
|
thebigcow posted:Would something like this take care of your problem? I downloaded a gyan dev windows version of ffmpeg, then attempted to read the documentation on how to make it work but that was a lot of words so I watched this youtube video - https://www.youtube.com/watch?v=Q7GW6v5DnFI I was able to -i a single video file as a test and got that to work. So now I'm left with figuring out how to use the code you linked code:
Do I leave the curly brackets but replace "videos_dir" with "E:\Audio Strip Test" and then that's it? If I have any non-mp4s (for example a .prproj file) in the same folder will that cause any errors or problems?
|
# ? Jun 24, 2021 21:00 |
|
That code sample is for linux bash script. I'm assuming you're on windows? Copy ffmpeg.exe into the directory with your video files. Make a new text file there, and paste this: code:
(if you can't see the .txt, you need to turn off "Hide extensions for known files" in folder options) edit: quote:These files are also organized in folders by project/month/year. So like if the client that wants this stuff is Hanes underwear, is your structure: C:\Video Projects\Hanes\2020\Jan\Socks Commercial\ or C:\Video Projects\2020\Jan\Hanes\Socks Commercial\ Klyith fucked around with this message at 17:37 on Jun 25, 2021 |
# ? Jun 25, 2021 17:22 |
|
Klyith posted:That code sample is for linux bash script. I'm assuming you're on windows? quote:Copy ffmpeg.exe into the directory with your video files. Make a new text file there, and paste this: quote:edit: C:\Client Footage\20XX Videos\Month 20XX\Client\Project Name\ Each month has probably 4-8 different project folders if that matters. And if needed I'm not opposed to creating a different folder structure via some manual renaming if that'll make things work better/at all
|
# ? Jun 25, 2021 19:16 |
|
tangy yet delightful posted:Thanks for this, I assume I would put it in the top-most directory and it would do everything within that? So you could just keep moving the .bat & ffdshow to each folder you need processed. If that's a relatively easy task because there's only 10 target folders with 300 videos each, do that. But if you have 300 folders with 10 videos each it'd be a pain and you want something better. quote:So don't laugh at what is probably not the most efficient file structure, currently the footage is spread across multiple drive letters and I'll likely buy a drive to consolidate it all which will be passed to the client, so the top letter (C/D/E) might change but the structure is(will be): So that folder that I've bolded Client is the consistent target? A Year/Month folder might contain multiple Client folders, but the Client you're looking at is unique and always the same? Example, if Hanes was the client: C:\Client Footage\2020 Videos\January 2020\Hanes\Socks Commercial\ C:\Client Footage\2020 Videos\January 2020\Art Museum\Van Gogh Exhibit\ D:\Client Footage\2018 Videos\August 2016\Hanes\Tshirts Ad\ D:\Client Footage\2018 Videos\August 2016\Starbucks\Training Video\ (My objective is to do it as recursively as possible, and also make it so that your source videos stay on your drive. Doing the audio strip and copy to the external in the same step is better.)
|
# ? Jun 25, 2021 20:04 |
|
Klyith posted:No, that batch only hits the files in the directory it runs in, I hadn't read your OP closely at first. quote:So that folder that I've bolded Client is the consistent target? A Year/Month folder might contain multiple Client folders, but the Client you're looking at is unique and always the same?
|
# ? Jun 25, 2021 20:13 |
|
The TEST RUN:code:
All this does is make a text file with the list of videos it found. Sanity check to make sure we're on the same page.
|
# ? Jun 25, 2021 22:36 |
|
The REAL THING:code:
Save as a .bat file, put the .bat and ffmpeg into the base directory & run it. Then repeat for other drives that have more Client Footage.
|
# ? Jun 25, 2021 22:41 |
|
|
# ? Apr 25, 2024 07:55 |
|
Both the test run and the REAL THING worked flawlessly. Thanks so much Klyith!
|
# ? Jun 25, 2021 23:47 |