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. |
19th December 2013, 14:57 | #3683 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,823
|
Wouldn't using DirectStreamCopy while encoding a script with VirtualDub mean the output is RGB? So it's not technically lossless due to the conversion?
I use Fast recompress and the ffdshow vfw encoder. It'll compress using huffyuv or ffv1, both of which are lossless. huffyuv is a fair bit faster, but doesn't compress as much. |
19th December 2013, 17:15 | #3684 | Link |
Registered User
Join Date: Nov 2004
Posts: 251
|
Ok, i will use fast recompress, with ffdshow video codec ffv1.
What settings do you reccomend for Colorspace, coder type, context mode and keyframe distance? Huffyuv (ffmpeg variant) more simple. Only color space, predictor and adaptive huffman tables settings can be selected. EDIT: Ok, color space no question, my source is mpg2 from dvd and its colorspace is yuv 4:2:0. So yv12 has to be selected in ffdshow. Olny the rest is questionable. Last edited by szabi; 19th December 2013 at 17:26. |
19th December 2013, 22:51 | #3685 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,823
|
I think I've only ever used the default settings and I tend to use huffyuv more than ffv1 anyway, as even though it doesn't compress as much, it's a lot faster.
I ran a quick test and it appears I was wrong regarding the RGB conversion. VirtualDub's output was YUV when I used DirectStreamCopy, but huffyuv's compressed version was less than half the size. |
20th December 2013, 10:16 | #3687 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
Using the video option "Direct Stream Copy", VirtualDub writes exactly the same format into the output AVI which it receives from the video source, without using any codec to encode it further.
If the source is an AVI with a video stream that was encoded by a VfW codec, it will write the same encoded video stream. If the source is an AviSynth script, it writes the uncompressed video the AviSynth script delivers (most probably YV12, but any AviSynth supported video format is possible, even RGB24 or RGB32, if that script creates it). If the source is a VirtualDub input plugin for different video formats, it is probably the uncompressed video format which matches the decoded video best (e.g. YV12 for MPEG2 Main Profile 4:2:0 when reading MPEG2 via the MPEG2 VirtualDub plugin by fccHandler). |
21st December 2013, 02:22 | #3688 | Link |
Registered User
Join Date: Apr 2005
Posts: 179
|
Converting a MKV container to MP4 always forces a video encode.
Converting a MP4 container to MKV never encodes the video. This is confirmed by myself and another user. |
21st December 2013, 08:11 | #3689 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
Probably because mkvmerge accepts MP4 as input and certainly supports any content MP4 may contain; but the other way round, you cannot be certain that an MKV will contain MP4 compliant content. Only from the more specific to the more generic format.
If you first extract the MKV to elementary streams, they may be used to multiplex a new MP4 if compliant. MeGUI contains references to mkvextract; but I don't remember any feature which uses it explicitly... |
21st December 2013, 13:35 | #3692 | Link | |
Registered User
Join Date: Oct 2010
Posts: 109
|
Quote:
The avs file is this Code:
LoadPlugin("K:\Documents and Settings\Luca\Documenti\Software\Video Editing\MeGUI_0.3.5\tools\ffms\ffms2.dll") FFVideoSource("K:\Temp\Temp Megui\hfyu_amore.avi") |
|
22nd December 2013, 11:05 | #3694 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
FFMS2 will index the AVI file for the first time loading it, and because it is a losslessly encoded video, it will have a lot of key frames, resulting in a big index file.
I remember that FFMS2 used to be not the best choice for uncompressed or losslessly compressed AVIs; AviSource may be preferable here. |
23rd December 2013, 17:24 | #3698 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
I am not certain if earlier MeGUI versions preferred AviSource over FFMS2 for all AVIs, or if earlier versions of FFMS2 indexed lossless AVIs less thoroughly (even buggy)... Well possible that there are differences.
If a newer version of MeGUI would prefer L-SMASH Source, the indexing timing may vary again. |
23rd December 2013, 21:13 | #3700 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
I only know little about it, but what I discovered from the readme: L-SMASH is a demultiplexer only for MP4. It has an additional stream parameter. May be useful for MP4 files with some multiple stream configurations...
|
Thread Tools | Search this Thread |
Display Modes | |
|
|