Can anyone please help me build a batch script or python script to Mux subtitles with video?
Well, my need isn't as easy as it looks like in question. I'll try my best to explain.
I want to mux ".ass" sub file with an ".flv" video. They are in both same folder,named "export".
I want to make .. um.. a dynamic script.There is just one video and one sub file in that folder.
Name could be anything for both of them, it's let's say.. could be anything.It won't be same always.
So, I need a script which takes ".flv" file present in the folder "export" and ".ass" file present in the same "export" folder and mux it and puts it in another folder named "final".
a batch (.bat) file or a python script would be amazing.
Thank You
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
have you tried calling:
Code:ffmpeg -i "path to input flv" -i "path to subtitle file" -map 0 -map 1 -c copy "path to output file with a .mkv ending"
users currently on my ignore list: deadrats, Stears555 -
no no .. I don't want to remove the subs....
@selur .. that would work when I KNOW what is the name of the input subtitle... that thing is that the name is random... -
If you know Python, than:
1. get the file names
2. adjust the calls and call the modified call
-> just wanted to point out that the whole thing also iirc. assuming there always is only one video and subtitle file:
Code:ffmpeg -i "path to input/*.flv" -i "path to subtitle file/*.ass" -map 0 -map 1 -c copy "path to output file with a .mkv ending"
users currently on my ignore list: deadrats, Stears555
Similar Threads
-
Mux Batch convert MKV to MP4 with subtitles in Linux
By coquex in forum Video ConversionReplies: 7Last Post: 17th Jun 2016, 17:47 -
batch script that remux multiple movies and subtitles together to mkv file
By galiber12 in forum SubtitleReplies: 2Last Post: 16th Jan 2015, 16:38 -
Batch Mux with ffmpeg
By hbelouf in forum Video ConversionReplies: 1Last Post: 3rd Jul 2012, 07:38 -
Batch mux flv to mkv?
By Pitorasilo in forum Video ConversionReplies: 13Last Post: 14th Apr 2012, 04:25 -
All-in-one Batch demux FLV -> mux mp4?
By gaikokujinkyofusho in forum Video ConversionReplies: 2Last Post: 19th Jan 2011, 23:34