@echo off echo *** Extract (demux) media streams from FLV *** FOR %%F in (*.flv) DO FLVExtractCL -v -a "%%F" echo *** Mux raw streams to MP4 container *** REN "*.264" "Video.264" REN "*.aac" "Audio.aac" MP4Box -brand mp42 -delay 1=1 -add "Video.264:name=AVC Video Stream:lang=en:fps=25.000" -add "Audio.aac:name=AAC LC Audio Stream:lang=en:mpeg4" -itags tool="MP4Box-0.4.6-dev-ir5-x86-shared.Kurtnoise.12-Jun-2010" "Remuxed.mp4" FOR %%N in (*.flv) DO REN "Remuxed.mp4" "%%~nN.mp4" echo MP4 FILE CREATED SUCCESSFULLY... echo. echo WARNING: WILL THEN DELETE RAW STREAMS! echo [If you don't want this, close (X) the Command Prompt Window] PAUSE DEL "Video.264" DEL "Audio.aac" echo WARNING: WILL THEN DELETE ORIGINAL FILE! echo [If you don't want this, close (X) the Command Prompt Window] PAUSE DEL "*.flv" echo REMUX TO MP4 CONTAINER COMPLETED SUCCESSFULLY :-) PAUSE :END