Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
13th November 2021, 10:58 | #2 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Both MKV and MP4 are just containers. If its lossless depends on what you put into them and how you handle it. In other words, its impossible to say.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
13th November 2021, 16:16 | #3 | Link |
Banana User
Join Date: Sep 2008
Posts: 989
|
Yes they are lossless.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
13th November 2021, 18:05 | #5 | Link | |||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
Quote:
EDIT: So something like this Code:
setlocal REM Where to Find ffmpeg set FFMPEG="C:\BIN\ffmpeg.exe" REM Where to get input file, No terminating Backslash, "." = current directory set INDIR="." REM Where to place output file, No terminating Backslash. set OUTDIR=".\OUTPUT" REM Below, can add SPACE separated source extensions, eg " *.ASF". FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO ( %FFMPEG% -i "%INDIR%\%%A" -vcodec copy -acodec copy "%OUTDIR%\%%~nxA.MKV" ) Pause
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 13th November 2021 at 18:14. |
|||
13th November 2021, 18:16 | #6 | Link | |
Banana User
Join Date: Sep 2008
Posts: 989
|
Quote:
I understand OP question as "Will lossless video still be lossless in mkv container?"
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
|
25th November 2021, 18:59 | #7 | Link | |
Registered User
Join Date: Sep 2020
Posts: 135
|
Here is the script in question:
Code:
c:a pcm_s16le -c:v libx264rgb -qp 0 -pix_fmt rgb24 -f matroska Quote:
|
|
25th November 2021, 20:00 | #8 | Link |
Banana User
Join Date: Sep 2008
Posts: 989
|
Yeap, you was asking that, but now you are asking different question about script.
I didn't knew it was possible to have RGB in x264. In what colorspace is your input file?
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
4th December 2021, 01:25 | #10 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
GAP,
the BAT/CMD script in post #5 will simply copy both video and audio streams into MKV, no change [both lossless, uncompressed RGB if uncompressed RGB source, x264 if x264 source etc]. Batch processes all file containers [in INDIR directory] mentioned on this line [can add containers] Code:
REM Below, can add SPACE separated source extensions, eg " *.ASF". # THIS LINE IS COMMENT FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO ( Code:
%FFMPEG% -i "%INDIR%\%%A" -vcodec copy -acodec copy "%OUTDIR%\%%~nxA.MKV" And if ffmpeg location is already in your environment path, then can change Code:
REM Where to Find ffmpeg set FFMPEG="C:\BIN\ffmpeg.exe" Code:
REM Where to Find ffmpeg set FFMPEG="ffmpeg.exe" EDIT: May fail if SPACES or non ASCII chars in filenames/directories.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 4th December 2021 at 01:47. |
18th January 2022, 20:18 | #11 | Link | |
Registered User
Join Date: Oct 2021
Posts: 83
|
Quote:
MKV is a container. It is made to store large amounts of data without compression. The only way the video stored in MKV's loses data is if the codec is lossy. Or if its been re-encoded multiple times. If you render a video into an mkv using a true lossless codec. Your source is a mirror image of the pre-rendered file. VP9 is made for website efficiency. Any "mainstream" format made to be viewed is compressed. So PNG 8 Bit is compressed. JPEG is normally compressed etc. VP9 is a high efficiency codec. Not a high quality one. If your source is a 10GB 10 min file and you encode it with VP9 it will probably be reduced to 3GB or less. I.E Compression Last edited by Reclusive Eagle; 18th January 2022 at 20:21. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|