Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Ffmpeg Batch File
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
DarrellS
Posted: Jul 19 2010, 05:23 PM


Advanced Member


Group: Members
Posts: 567
Member No.: 1061
Joined: 28-November 02



Can someone tell me how to make a batch file to copy a folder full of MKV files to FLV files?


I have ffmpeg in my home folder with all the MKV files which I can convert one by one with a command prompt...

ffmpeg -i video_1.mkv -vcodec copy -acodec copy video_1.flv

but I'd like to be able to convert the whole folder at once, instead of having to convert each file one by one.


All of these files were originally VP6F FLV files.
 
     Top
Placio74
Posted: Jul 19 2010, 07:01 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



Create and use a batch file (.bat or .cmd):
CODE
@echo off
for %%a in ("*.mkv") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.flv"
pause


--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
DarrellS
Posted: Jul 19 2010, 07:54 PM


Advanced Member


Group: Members
Posts: 567
Member No.: 1061
Joined: 28-November 02



Thanks, Placio
 
     Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
2 replies since Jul 19 2010, 05:23 PM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing