Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Batch Convert FLV to MP4 Then Delete the FLV file

(http://stream-recorder.com/forum/showthread.php?t=18621)

drbmn 08-02-2014 11:32 PM

Batch Convert FLV to MP4 Then Delete the FLV file


 
I'm currently trying to make a .bat file to convert FLV (from rtmpdump) to MP4 using FFMPEG then after the FFMPEG command has completed delete the .flv files on a Windows based machine. I've got this so far but it doesn't seem to delete the files afterwards.
Code:

start cmd /k for %%a in ("*.flv") do ffmpeg -i "%%a" -acodec copy -vcodec copy %%~na.mp4
start cmd /k timeout 10 for %%a in ("*.flv") do del "%%a"

anyones help/input would be greatly appreciated. :)


All times are GMT -6. The time now is 11:08 AM.