Skip to main content

I was going to put them in a course as mp4s after attaching stock video… somehow… via batch.

I’m down for another solution.

 

There are 100 of these so a batch solution would be key. Ideally different video for each clip - it could be one long 5 hour video, with a 5-15 min snippet for each audio.

Here’s a handy batch file I wrote before, to create 30 second preview videos for courses:

 


cd C:\Users\lrodman\Desktop\HD videos\;done\;mp4\ATL
ffmpeg -ss 0 -i "ATL 101.mp4" -t 30 -c copy "ATL 101_preview.mp4"
ffmpeg -ss 0 -i "ATL 102.mp4" -t 30 -c copy "ATL 102_preview.mp4"
ffmpeg -ss 0 -i "ATL 103.mp4" -t 30 -c copy "ATL 103_preview.mp4"
ffmpeg -ss 0 -i "ATL 104.mp4" -t 30 -c copy "ATL 104_preview.mp4"
ffmpeg -ss 0 -i "ATL 105.mp4" -t 30 -c copy "ATL 105_preview.mp4"
ffmpeg -ss 0 -i "ATL 106.mp4" -t 30 -c copy "ATL 106_preview.mp4"
ffmpeg -ss 0 -i "ATL 107.mp4" -t 30 -c copy "ATL 107_preview.mp4"
ffmpeg -ss 0 -i "ATL 108.mp4" -t 30 -c copy "ATL 108_preview.mp4"
ffmpeg -ss 0 -i "ATL 109.mp4" -t 30 -c copy "ATL 109_preview.mp4"
ffmpeg -ss 0 -i "ATL 110.mp4" -t 30 -c copy "ATL 110_preview.mp4"

 


found it

https://superuser.com/questions/277642/how-to-merge-audio-and-video-file-in-ffmpeg

ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac -shortest -map 0✌0 -map 1🅰0 output.mp4

 

 

Does anyone know how to make it take a segment of the video but not the audio? would have to use timecodes somehow. Otherwise I guess I can just chop up a video if I have to manually.


Reply