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.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th September 2007, 16:17   #1981  |  Link
LotharZ
Registered User
 
Join Date: Oct 2001
Posts: 47
Hi, I found 2 sub/idx (vobsub) files that seems ffdshow can't handle.

Track1 show the first line but then freezes and Track2 isnt showed. They were merged on a mkv file but no works in and out of the file.

They come from a Cromatine (anime) episode.
[a-s]_sakigaki!!_cromartie_high_school_-_23_-_stone_cold_crazy__ranmasaotome_[AC5956B4].mkv

Files: http://sharebee.com/ff3a1f10

At same time, I've a request, could you add a feature on the Subtitles section that discarts the SSA tangs on that kind of subs, It could be really useful to watch some subtitles that have annoying gothic fonts or extremely small sizes coded.

thx
LotharZ is offline   Reply With Quote
Old 18th September 2007, 22:24   #1982  |  Link
yesgrey
Registered User
 
Join Date: Sep 2004
Posts: 1,295
Quote:
Originally Posted by haruhiko_yamagata View Post
Is it possible to auto-detect rec and pc?
I don't think so. The real question is that the conversion from YUV to RGB should translate the Y channel [0:255] to RGB [0:255]. The video black and white at YUV [16,16,16] and [235,235,235] should be converted to RGB [16,16,16] and [235,235,235], because it still exist video info bellow [16,16,16] and above [235,235,235]. If you use rec, the whites will be crushed, because all YUV values above [235,235,235] will be converted to RGB [255,255,255]. All dvd movies should be converted with pc values. This is the same thing between overlay mixer and VMR. Overlay mixer convert YUV to RGB using rec and VMR convert using pc, the way it should be. That's why we should prefer VMR for viewing instead of overlay mixer.

If you want to read more about this subject try this thread, which is very informative:
http://archive2.avsforum.com/avs-vb/...than+AND+black
yesgrey is offline   Reply With Quote
Old 18th September 2007, 23:25   #1983  |  Link
yesgrey
Registered User
 
Join Date: Sep 2004
Posts: 1,295
haruhiko,
you have a PM.
yesgrey is offline   Reply With Quote
Old 19th September 2007, 11:27   #1984  |  Link
KoD
Registered User
 
Join Date: Mar 2006
Posts: 567
yesgrey3, what you are saying and what the Microsoft engineers speak of in that article (it's Microsoft that asked of Nvidia and ATi too implement the VMR this way) is not the proper way. Don't trust what others say so much, read about color transforms from the specs yourself.
KoD is offline   Reply With Quote
Old 19th September 2007, 11:38   #1985  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by LotharZ View Post
Hi, I found 2 sub/idx (vobsub) files that seems ffdshow can't handle.

Track1 show the first line but then freezes and Track2 isnt showed. They were merged on a mkv file but no works in and out of the file.

They come from a Cromatine (anime) episode.
[a-s]_sakigaki!!_cromartie_high_school_-_23_-_stone_cold_crazy__ranmasaotome_[AC5956B4].mkv

Files: http://sharebee.com/ff3a1f10
OK, confirmed. I can reproduce if I check "Obey positional settings from Subtitles page". If I uncheck it, I can watch the subtitles but its color is wrong.
Quote:
At same time, I've a request, could you add a feature on the Subtitles section that discarts the SSA tangs on that kind of subs, It could be really useful to watch some subtitles that have annoying gothic fonts or extremely small sizes coded.

thx
It's not too hard to implement. The problem is that the dialog is too crowded.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th September 2007, 11:40   #1986  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by yesgrey3 View Post
All dvd movies should be converted with pc values.
Is this correct? The color spaces are really confusing.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th September 2007, 15:48   #1987  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by haruhiko_yamagata View Post
Is this correct? The color spaces are really confusing.
If you want to be sure. Post the question in this forum:
Link
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.
Jeremy Duncan is offline   Reply With Quote
Old 19th September 2007, 16:24   #1988  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by yesgrey3 View Post
If we multiply the YUV->RGB matrix with the RGB->RGBdisplay matrix at the beggining, the YUV->RGBdisplay conversion could be done without any processing penalty.
Unfortunately it costs more CPU.
Quote:
BT.709 color space conversion (please check if it is correct)

R=1.164(Y-16)+1.792(V-128)
G=1.164(Y-16)-0.2128(U-128)+0.5323(V-128)
B=1.164(Y-16)-2.111(U-128)
Here, to get R, we don't have to calculate x*(U-128).
If we want to support custom matrix, we have to calculate x*(U-128) for R and x*(V-128) for G. So it means we have to modify the asm code a lot.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th September 2007, 16:29   #1989  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by Jeremy Duncan View Post
If you want to be sure. Post the question in this forum:
Link
I have converted some DVD using pc601, which have resulted poor image. I think most DVD should not be converted with pc601. And yes, there are few DVD that should be converted with pc601. MPC seems to detect automatically and does a good job.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th September 2007, 18:37   #1990  |  Link
yesgrey
Registered User
 
Join Date: Sep 2004
Posts: 1,295
Quote:
Originally Posted by KoD View Post
yesgrey3, what you are saying and what the Microsoft engineers speak of in that article (it's Microsoft that asked of Nvidia and ATi too implement the VMR this way) is not the proper way. Don't trust what others say so much, read about color transforms from the specs yourself.
Where could I read about it?
I do not trusted them. What they said in that thread makes sense and is logical. I also have tryed to perform the conversion as they suggested and realized that it made sense to be that way. Maybe I am wrong and they are wrong, I don't know, but it's strange when the "wrong" way makes sense and the "correct" doesn't,
but maybe I am not seeing the whole picture...
yesgrey is offline   Reply With Quote
Old 19th September 2007, 20:09   #1991  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@haruhiko_yamagata,

The correct formulas for YCbCr [16,235] <-> RGB [0,255] (Rec.709) are:
Code:
R=1.164*(Y-16)+1.792*(V-128)
G=1.164*(Y-16)-0.2129*(U-128)-0.5326*(V-128)
B=1.164*(Y-16)+2.113*(U-128)
as derived in http://avisynth.org/mediawiki/Color_conversions.
Wilbert is offline   Reply With Quote
Old 19th September 2007, 21:45   #1992  |  Link
yesgrey
Registered User
 
Join Date: Sep 2004
Posts: 1,295
Quote:
Originally Posted by haruhiko_yamagata View Post
I have converted some DVD using pc601, which have resulted poor image.
Yes, I also agree that using pc601 the image is less appealling that using rec601, but it does not means that is the way it should be done. With rec601 the image has more contrast, which is more appealling, but you also get a crush in the whites. Very bright scenes became all white, instead of several shades of white. I have seen it in some movies.
yesgrey is offline   Reply With Quote
Old 19th September 2007, 21:52   #1993  |  Link
yesgrey
Registered User
 
Join Date: Sep 2004
Posts: 1,295
Quote:
Originally Posted by haruhiko_yamagata View Post
Unfortunately it costs more CPU.Here, to get R, we don't have to calculate x*(U-128).
If we want to support custom matrix, we have to calculate x*(U-128) for R and x*(V-128) for G. So it means we have to modify the asm code a lot.
Yes, you are right. I forgot that without the custom matrix there are less two values to consider, which have to be considered when the matrices multiplication occur.

Maybe it's better the other option of using avisynth ConvertToRGB, since with it the code is already wrote to support the full matrix.

Thanks anyway!
yesgrey is offline   Reply With Quote
Old 19th September 2007, 22:06   #1994  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Yes, I also agree that using pc601 the image is less appealling that using rec601, but it does not means that is the way it should be done. With rec601 the image has more contrast, which is more appealling, but you also get a crush in the whites.
Yes, but that's only a little crush. On DVDs black is centered around 16 and white is centered around 235. I say centered, because 16 is not the min and 235 not the max value, but those are averages. You can see this nicely with AviSynth and Limiter(show=true).
Wilbert is offline   Reply With Quote
Old 19th September 2007, 23:09   #1995  |  Link
yesgrey
Registered User
 
Join Date: Sep 2004
Posts: 1,295
Quote:
Originally Posted by Wilbert View Post
Yes, but that's only a little crush. On DVDs black is centered around 16 and white is centered around 235. I say centered, because 16 is not the min and 235 not the max value, but those are averages. You can see this nicely with AviSynth and Limiter(show=true).
Yes, that's exactly the conclusion of the thread I have put the link. The more relevant is the data above 235, because the data bellow 16 is not supposed to be viewed, that's the reason for some people using a compromise solution, like: [14,245]->[0:255], and for this they use the filter levels. But if the conversion to RGB uses the rec mode, this cannot be done. That's why I suggest the conversion could also be done with the pc mode, so we can customize the output for our likings. ffdshow as it is now, is not very usefull for converting to RGB.

The use of the [0,255]->[0,255] is justified because they say it's a more smooth conversion from YUV to RGB which could cause less banding. For me, I think the best should be the compromise solution.
yesgrey is offline   Reply With Quote
Old 19th September 2007, 23:21   #1996  |  Link
Kado
Otaku
 
Kado's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 576
It looks like VMR9 uses the "set pixel aspect ratio in output media type" but evr and haali renderer don't.
with vmr9 video play wide but with evr and haali plays more 4:3 style with option enabled/intermediate and 4:3 for all with option disabled.
video info: size:704x480, sar:853/704, dar:853/480.
file is "[Hauu~].Higurashi.no.Naku.Koro.ni.Nekogoroshi-hen.(H264.Vorbis)[F654D046].mkv"
__________________
In the school, the three guys met. Their relation had been changed in the season, and turned into three love stories.
Kado is offline   Reply With Quote
Old 20th September 2007, 01:45   #1997  |  Link
thuan
Registered User
 
Join Date: Sep 2005
Location: Vietnam, HCM City
Posts: 262
@Kado: I can play that file perfectly fine over here with Haali with everything is default.

EDIT: Which splitter are you using? Haali or Gabest?

Last edited by thuan; 20th September 2007 at 03:20.
thuan is offline   Reply With Quote
Old 20th September 2007, 10:30   #1998  |  Link
Kado
Otaku
 
Kado's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 576
I'm using haali splitter. in your system you get wide screen video with haali renderer for that file? in mine wide is only with vmr9...
__________________
In the school, the three guys met. Their relation had been changed in the season, and turned into three love stories.
Kado is offline   Reply With Quote
Old 20th September 2007, 10:52   #1999  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by chros View Post
I tried to playback a dts-wav file (*.wav) with MPC and ffdshow v1381 , but no success ...
Filters: Wave Parser , ffdshow

in ffdshow codecs: DTS in wav is checked (nothing happens)
AC3filter can playback it (if I check PCM at system tab)

Anyone confirm it ? Or do I need something to set?
If it's a bug, can someone tell a working version number?

Thanks
I found the way.
* Enable "Uncompressed" and "Check for DTS in WAV" at the foot note of DTS.
* Raise the merit value.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 20th September 2007, 11:41   #2000  |  Link
thuan
Registered User
 
Join Date: Sep 2005
Location: Vietnam, HCM City
Posts: 262
Yeah, perfectly normal over here. Maybe you should try resetting your MPC settings for aspect ratio and related stuffs (settings under Video Frame and Pan&Scan).
thuan is offline   Reply With Quote
Reply

Tags
ffdshow, ffdshow tryouts, ffdshow-mt, ffplay, icl


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.