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. |
27th June 2011, 19:52 | #1181 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
FFMS currently has an issue opening 10bit per component yuv files (such as those that can made with a recent x264). The cause is known and should be fixed within a week or two.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
12th July 2011, 21:55 | #1182 | Link |
Registered User
Join Date: Jan 2011
Posts: 121
|
Two questions:
|
13th July 2011, 01:08 | #1183 | Link | |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
Quote:
and this generally means that avs 2.6 should finish the de-baking of code to where the interface is usable again. Edit: I should clarify that i'm referring to the ability for the ffms2 plugin to output the streams as 4:4:4, currently they'll be decoded and then converted internally to one of the colorspaces that 2.5 supports. Last edited by kemuri-_9; 13th July 2011 at 02:31. |
|
13th July 2011, 02:07 | #1184 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,421
|
As long as the libav stuff it's linked against supports the colorspaces, I don't see why it couldn't (although I guess one might also need to be using 2.6 for this to work). I've been able to decode 4:4:4 with my own builds since I noticed the relevant commits on x264-devel a couple weeks ago and started doing tests with it. And I'd guess that's because 4:4:4 support in ffmpeg was already there for a day or two at the time I compiled it.
The only strange part is that ConvertToYV24 in the original script results in AviSynth outputting greyscale video to media players, but using FFMS2 to decode an already 4:4:4 H.264 file gives the correct colors in the same media players (and the player decodes the actual file correctly as well; recent ffdshow, at any rate). I suppose the colorspace actually being output when playing a 4:4:4 H.264 file uses the opposite channel mapping than YV24 does, somewhat like the whole YV12 is fine/I420 isn't stuff. Or something like that. Now, RGB stuff is still off (as in, the channels are swapped in a way I can't figure out how to reverse), but it's better than it was a couple weeks ago when it was mostly a grey nothingness. So the short version of all that is: it's already 'kind of' capable from what I can see, you just need to compile it against a recent libavcodec and probably also use either the AviSynth 2.6 alpha from May 2011 (which I'm currently using), or a similar trunk build like the ones JEEB posted back in January (which I was using before). Last edited by qyot27; 13th July 2011 at 02:10. |
13th July 2011, 07:42 | #1185 | Link |
warpsharpened
Join Date: Feb 2007
Posts: 787
|
ffms2-r484.7z
ffms2-r484-avs64.7z Changes since last build: -Updated build chain to gcc 4.6.1 -Now using msvc2010 for 32bit builds. -Updated libav to rev. 2cb6dec -Fixed what was known as the "parse_nal_units" segfault. It was feeding audio packets into the h264 parser. -Fixed forcing of certain output formats Last edited by TheRyuu; 13th July 2011 at 07:45. |
13th July 2011, 17:57 | #1186 | Link |
Registered User
Join Date: Mar 2006
Posts: 1,049
|
btw - not sure how it can be compared to GCC however some results looks very impressive
http://www.phoronix.com/scan.php?pag...th4_open&num=1 |
14th July 2011, 11:40 | #1187 | Link | |
Registered User
Join Date: Apr 2009
Posts: 478
|
Quote:
|
|
15th July 2011, 11:48 | #1188 | Link |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
|
Hi guys,
I'm having strange issues with some QuickTime wrapped DVCPro HD files. These files are in-theater trailers, and have the following strange behavior 1) In QuickTime player these MOVs are totally in sync, and begin with a usual MPAA green-band warning. 2) If I use something like x264 or ffmpeg with the lavf demuxer to transcode these into H.264, the video starts much earlier, with extra frames visible. These frames are either black, or production slates. I'm not sure how this is masked out from normal viewing in QuickTime Player. I think it has something to do with a "QuickTime EDL Cut List", but I'm not certain. 3) If I indead use FFMS2 inside of AviSynth, the video does start at the green-band, but the audio track has a lot of silence in the beginning, making the audio way out of sync. This extra silence is the same length as the production slate I see when I transcode with something that uses lavf splitter. 4) If I trim the MOV using QuickTime Pro, all this strangeness goes away, and both ffms2 and lavf produce the same results. This makes me think doing a trim, followed by a "save as" in QuickTime Pro does actually trim off the junk in the beginning 5) Manually trimming in QuickTime is a pain in the ass, so instead I use some simple scripting to make x264 transcode the video into a high birate MKV, use ffmpeg to dump a PCM WAV from the original WAV, and mux both results into an MKV. This then opens into AviSynth nicely with FFMS2, and I can set my trims in here to strip away the junk. In conclusion, I think there's something different with how lavf and ffms2 handle MOV files. This wouldn't surprise me Both behaviors are "incorrect", with "correctness" defined as "giving me the same result as QuickTime Player". FFMS2 starts the video in the proper place , but reads the audio from the beginning. lavf reads both from the beginning, and reveals content that shouldn't be visible. I have a sample file, if someone is curious and wants to try to fix this. Apologies for the size, performing a trim is useless for the reasons I stated above. Here is the link: http://www.mediafire.com/?n0wwl5adwuepm Hopefully somebody cares ! As always, thanks for all the hard work on this awesome piece of software!! Thanks, Derek
__________________
These are all my personal statements, not those of my employer :) |
16th July 2011, 00:03 | #1191 | Link | |
warpsharpened
Join Date: Feb 2007
Posts: 787
|
From the documentation:
Quote:
|
|
16th July 2011, 03:25 | #1192 | Link | |
Registered User
Join Date: Jan 2011
Posts: 121
|
Quote:
In other words, we can convert YUY2 to YV24, encode with x264 as 4:4:4, and load it back into Avisynth without ever having to go through YV12 (resolution reduction). Encoding 4:2:2 as 4:4:4 may be somewhat wasteful, but doing exactly that and using a higher quantizer for chroma (to get the same filesize as YV12 encodes) is now a pretty viable option now for archiving YUY2 captures. For the same filesize, I'm getting basically equivalent luma but chroma that is much more faithful to the source. (I'm using extremely high bitrates though, so it might be a different story with "regular" bitrates.) Last edited by Mini-Me; 16th July 2011 at 03:31. |
|
16th July 2011, 03:40 | #1193 | Link |
warpsharpened
Join Date: Feb 2007
Posts: 787
|
ffms2-r494.7z
ffms2-r494-avs64.7z Changes since last build: -Not much... -Updated libav to rev. e3bc07f |
16th July 2011, 12:51 | #1195 | Link | |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
Quote:
|
|
16th July 2011, 13:29 | #1196 | Link |
Registered User
Join Date: Dec 2009
Posts: 63
|
Hi. Just wondering, is it normal that FFVideoSource produces an error "No suitable output format found" when I trying to open a 10-bit depth samples with "default call"? Is it possible to auto choose the most suitable output format that can be supported (by FFMS2 and AviSynth) without explicity specifying it with "colorspace" key?
|
16th July 2011, 14:24 | #1197 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
http://bugzilla.libav.org/show_bug.cgi?id=10 I'm however very close to copying that function out of libav and fixing it just to work around this bug.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
16th July 2011, 14:27 | #1198 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
17th July 2011, 03:34 | #1200 | Link | |
Registered User
Join Date: Jan 2011
Posts: 121
|
Quote:
I just wanted to point out to others that this is a viable option for archiving analog captures now: Interlaced YUY2 is a common capture format for analog video, and downsizing to interlaced YV12 is suboptimal (without motion-adaptive upsampling on playback, it creates artifacts). Now that x264 has 4:4:4 input/output, it's now viable to just upsize YUY2 to YV24, encode as 4:4:4, and increase the chroma quantizer to keep the filesize down. I was originally afraid that FFMS2 would drag everything through YV12 and I wouldn't be able to compare the two encodes (4:2:0 vs. 4:4:4), but that is thankfully not the case. Although I don't need true 4:4:4, this is actually a really good point for those who do! Last edited by Mini-Me; 17th July 2011 at 03:41. |
|
|
|