![convert mkv to mp4 without re encoding convert mkv to mp4 without re encoding](http://www.bigasoft.com/images/articles/mts-to-mkv/mts-to-mkv.jpg)
REM use only ENCODING SUPPORTED codecs, prefereably LOSSLESS. REM At start of txt file it shows a 'legend' or 'key' for codecs that can be used for video and audio, REM Writes a txt file of ffmpeg available codecs to D:\ REM 'ffmpeg -codecs >D:\ffmpeg_codecs.txt' REM From Command line with ffmpeg somewhere in your environment PATH:. REM The file extension at end of the line determines output container, eg '.AVI'
![convert mkv to mp4 without re encoding convert mkv to mp4 without re encoding](https://www.idealshare.net/images/mp4-joiner-merge-mp4-files-on-mac-windows/join-mp4-files-without-reencoding.jpg)
REM '-an' means no audio output, use instead of eg '-acodec pcm_s16le' REM '-acodec copy' means copy audio rather than convert. REM '-acodec pcm_s16le' means convert audio using pcm_s16le codec. REM '-vn' means no video output, use instead of eg '-vcodec utvideo' REM '-vcodec copy' means copy video rather than convert. REM '-vcodec utvideo' means convert video using utvideo codec. REM (8) Skip any video, Convert Audio to 16 bit PCM (output WAV). REM (7) Convert Video to UtVideo lossless, copy audio (output MKV). REM (6) Remux, copy both video and audio (output MKV - see file extension at the end of the Remux line, ie MKV). REM (5) Convert Video to r210 Uncompressed RGB 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI). REM (4) Convert Video to v410 Uncompressed 4:4:4 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI). REM (3) Convert Video to MagicYUV lossless, Convert Audio to 16 bit PCM audio (output AVI). REM (2) Convert Video to HuffYUV lossless, Convert Audio to 16 bit PCM audio (output AVI). REM (1) Convert Video to UtVideo lossless, Convert Audio to 16 bit PCM audio (output AVI). Above Command lines, What they do if UnREM'ed (and all others REM'ed, UnREM=UnCOMMENT ) : REM %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec copy "%OUTDIR%\%%~nxA.MKV" REM %FFMPEG% -i "%INDIR%\%%A" -vcodec copy -acodec copy "%OUTDIR%\%%~nxA.MKV" REM %FFMPEG% -i "%INDIR%\%%A" -vcodec magicyuv -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI" REM %FFMPEG% -i "%INDIR%\%%A" -vcodec huffyuv -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI" %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI" REM ****** Un-REM ONLY one of below lines, Comment out ie REM the remaining lines. REM Below, can add INPUT extensions as eg *.WEBM (SPACE separated, Batch Processes all INPUT type files in INDIR)įOR %%A IN (*.AVI *.MKV *.MP4 *.MOV *.QT *.3GP *.DVB *.VOB *.MPG *.MPEG *M2P *.PS *.TS *.DIVX *.XVID *.FLV *.WMV *.ASF *.MXF) DO ( bat file, ".\OUT" = OUT folder in same directory as bat file. REM Where to place OUTPUT files, No terminating Backslash.
![convert mkv to mp4 without re encoding convert mkv to mp4 without re encoding](https://www.iclarified.com/images/tutorials/21199/21199/21199-1280.jpg)
REM Where to get INPUT files, No terminating Backslash, "." = current directory (ie same as dir. REM We DO NOT LIKE SPACES IN FILE NAMES (REM = REMark ie comment)