Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)Open command prompt (Terminal) and run:
Code:
ffmpeg -i "filename.flv" -vcodec copy -acodec copy "filename.mp4" |
#2
|
|||
|
|||
Re: How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)What would be the command to bulk process several files in a single folder?
|
#3
|
|||
|
|||
Re: How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)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 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". |
#4
|
|||
|
|||
Re: How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)Quote:
Code:
for %%a in ("*.*") do ffmpeg -i "%%a" -c:v copy -c:a libvo_aacenc -b:a 128k "newfiles\%%~na.mp4" pause |
#5
|
|||
|
|||
Re: How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)No, it's different.
JC's version keeps the original soundtrack without converting it, so it's genuinely lossless conversion. Your version converts the soundtrack to aac (even though it might already be aac), so it's not lossless conversion. To keep the original soundtrack tweak your code like this:- Code:
for %%a in ("*.flv") do ffmpeg -i "%%a" -c copy "newfiles\%%~na.mp4" |
#6
|
|||
|
|||
Re: How to convert FLV to MP4 losslessly with ffmpeg (Windows, Linux, Mac OS)Quote:
|
Tags: flv, flv to mp4, lossless, losslessly, mp4 |
Thread Tools | |
Display Modes | |
|
|