View Single Post
  #4  
Old 12-05-2015, 07:52 AM
yugioh626 yugioh626 is offline
Junior Member
 
Join Date: Jun 2015
Posts: 8
yugioh626 is on a distinguished road
Default

Re: How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)


Quote:
Originally Posted by JCMaxwell View Post
I know this thread is old, but in case anyone searches for this, I found a way to batch convert.

Code:
for %%a in ("*.flv") do ffmpeg.exe -i "%%a" -vcodec copy -acodec copy -metadata:s:a:0 language=eng "%%~na.mp4" -map_metadata -1
pause
Open notepad, copy this text and save it with file extension .bat

Make sure both this .bat file and ffmepg.exe are in the directory of the files you wish to batch convert and drag any of the .flv files onto the .bat file icon in the folder.

This will convert all .flv files to .mp4 files and "pause" when completed.

This code also strips all the metadata from the file; like "title" "artist" etc. and sets the language tag to "English".
JC I have a question if you are still around. I use the following for the same purpose (don Lorenzo posted it on kitty-kats(dot)net so I am not seen as stealing his stuff)
Code:
for %%a in ("*.*") do ffmpeg -i "%%a" -c:v copy -c:a libvo_aacenc -b:a 128k "newfiles\%%~na.mp4"
pause
I dont understand code, but is it the same as yours or does your work better?
Reply With Quote