I'm trying to learn how to use ffmpeg.
I found out how to put ffmpeg in my user folder and run a command promp to convert files. Now I need to know how to create a batch file to convert the whole folder instead of converting one file at a time.
I have a bunch of files that are VP6/MP3 in MKV container that I need to copy back into FLV container. I used the copy command which works fine but I can't do more than one file at a time. I can make a batch file that works by putting...
ffmpeg -i video_1.mkv -vcodec copy -acodec copy video_1.flv
ffmpeg -i video_2.mkv -vcodec copy -acodec copy video_2.flv
ffmpeg -i video_3.mkv -vcodec copy -acodec copy video_3.flv
but that is very time consuming.
I'd appreciate it if someone familiar with ffmpeg could help me write a script to batch copy all my FLV/MKV to FLV without having to type the names of every single file in the folder.
+ Reply to Thread
Results 1 to 4 of 4
-
-
Opening a very old thread but this describes what I want to do.
I would like to try to do the same technique as Baldrick mentioned but it does not want to work for me, need help.
ffmpeg -genpts 1 -i ES_Video_1.m2v -i ES_Audio_1A.mp2 -i ES_Audio_1B.mp2 -vcodec copy -acodec copy -f vob ES_Video_1.mpg -newaudio
ffmpeg -genpts 1 -i ES_Video_2.m2v -i ES_Audio_2A.mp2 -i ES_Audio_2B.mp2 -vcodec copy -acodec copy -f vob ES_Video_2.mpg -newaudio
Similar Threads
-
Batch "file creation from a text file, Placed into a created directory
By Muther in forum ProgrammingReplies: 5Last Post: 24th Sep 2015, 18:29 -
Can I get a little help with an ffmpeg script/batch file?
By Iced Coffee in forum Newbie / General discussionsReplies: 14Last Post: 26th Aug 2015, 01:56 -
[C++] My custom FFmpeg wrapper for batch conversion between formats
By AlecTaylor in forum Video ConversionReplies: 0Last Post: 7th Jun 2011, 14:43 -
Merging audio file and video file using ffmpeg
By suresh3484 in forum ffmpegX general discussionReplies: 3Last Post: 17th Aug 2008, 21:20 -
Batch Converting of Varouous vide fromats to Flash flv with ffmpeg
By tempgp in forum ProgrammingReplies: 0Last Post: 7th Dec 2007, 15:58