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

Reply
 
Thread Tools Display Modes
Old 19th May 2009, 10:11   #7401  |  Link
swalker
Registered User
 
Join Date: Apr 2003
Posts: 15
Quote:
Originally Posted by clsid View Post
autocrop has been broken for a long time
Can it (I'd suggest along with anything else that is broken/severely malfunctioning if nobody is working on it presently or recently) get disabled or removed then since I doubt it's a priority with the limited amount of developers ffdshow has at the moment?

Relnoting what is or isn't functional would be nice, well if ffdshow actually had release notes, I suppose a wiki page and/or changelog item would have to suffice.
swalker is offline   Reply With Quote
Old 19th May 2009, 10:59   #7402  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,281
Quote:
Originally Posted by BatKnight View Post
How does it work? Is it like the DeBand filter?
Is it supposed to give better picture quality when checked or the other way around?

Bat
The calculation of YCbCr->RGB conversion is done in 11bit or higher, and the output is dithered to 8bit.
In the end of calculation, RGB values are 12bit for each. Dithering is done by adding 4bit single dice random noise (different values for R,G,B). Finally, the values are shifted to the right by 4 bits.
Thus 100.8125 is mapped to 101 in 81.25% probability and to 100 in 18.75%.

The objective is the same as deband, but the method is different. I actually don't know how deband works though.
The picture quality is better with dithering checked.

Thanks to madTestPatternSource by madshi, the image comparison is easy.

grayramp.ytp none dithered


grayramp.ytp dithered


colors.ytp none dithered


colors.ytp dithered


Hope you can find any real world videos that you can perceive the visual change.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th May 2009, 12:29   #7403  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,281
Quote:
Originally Posted by mark0077 View Post
haruhiko, apologies for 3 bugs I posted a few posts ago, I found all reproducable without ffdshow in the chain.
no problem.
Quote:
Glad to see dithering in rgb conversion, just wondering could I ask have you thought about adding the workaround for DVD's when resizing. You may remember the problem I and others have had, where some DVD's show the wrong aspect ratio when passing through ffdshow's resize?
Did you try this?
Quote:
Also just while on the topic of resize, I found a bug (not a critical one) within "Border" section of Resize. After setting one of the dividing borders, for example "Horizontal" to Left 100, Right 0, and hitting apply. Then dragging the slider for "Vertical" resets the "Horizontal" slider to centered on 50:50 again. Just strange. I want dividing borders set to right and bottom because of the way the LED backlight works on this LCD. Keeping black bars to one side or fully to top or bottom can give me blacker blacks.

Thanks.
I can't reproduce. The sliders work for me.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th May 2009, 15:49   #7404  |  Link
mark0077
Registered User
 
Join Date: Apr 2008
Posts: 677
Quote:
Originally Posted by haruhiko_yamagata View Post
no problem.

Did you try this?

I can't reproduce. The sliders work for me.
Hi Haruhiko.

Disabling mpc-hc's own aspect ratio correction seemed to do the trick. I don't think any combination of these settings should break the final aspect ratio though if all of the flags are sent and interpreted correctly.

Do you think mpc-hc doesn't interpret the flags sent by ffdshow correctly, if so I can make a bug report. Or does ffdshow not yet send the flags correctly. I would love to see the resize feature work without any manual changing of settings like this as it will only add to the manual settings to configure when setting up a machine.

Thanks for the link.
mark0077 is offline   Reply With Quote
Old 19th May 2009, 16:04   #7405  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,281
MPC-HC expects the pixel aspect ratio in the original DVD is not changed in ffdshow. However, resize with "Process pixel aspect ratio internally" changes PAR. It's the spec of MPC-HC and ffdshow.
You could submit a report to MPC-HC. The solution would be an new API which both should implement.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 19th May 2009, 16:30   #7406  |  Link
mark0077
Registered User
 
Join Date: Apr 2008
Posts: 677
Ah I understand. Its like both are trying to do the same fix and neither knows whether the other has already performed the fix or not.?

I have posted a bug in mpc-hc bug tracker. Hopefully some discussion will come up with a solution.
http://sourceforge.net/tracker/?func...61&atid=854651
mark0077 is offline   Reply With Quote
Old 19th May 2009, 17:15   #7407  |  Link
ipanema
Registered User
 
Join Date: Apr 2009
Posts: 46
AVC/H264 decoding

I'm trying to connect from my own source filter to the ffdshow video decoder which has H.264/AVC enabled, but I can't seem to discover the correct media type.

The following subtype which I've not found a symbolic name for

8D2D71CB-243F-45E3-B2D8-5FD7967EC09B

seems to work well with other decoders, but EnumMatchingFilters() can't even find the ffdshow video decoder, so I guess ffdshow does not support this subtype.

This Microsoft page:

http://msdn.microsoft.com/en-us/libr...08(VS.85).aspx

says that for a "H.264 Bitstream without Start Codes" you should use MEDIASUBTYPE_AVC1. I've noticed that when Media Player Classic uses the ffdshow video decoder to play m2ts files, the input media type of the ffdshow video decoder is MEDIASUBTYPE_AVC1 and this is confirmed by the sequence-header part of the media type having no start codes.

I assume that to use MEDIASUBTYPE_AVC1 you would have to parse the whole bitstream, replacing start codes and shifting lots of data around in memory before it is sent to the ffdshow decoder. I would rather just send the data as-is (with start codes) which does work fine with other decoders.

What AVC media type (WITH start codes) works best with the ffdshow video decoder?
ipanema is offline   Reply With Quote
Old 19th May 2009, 20:22   #7408  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 2,100
has there been any recent change in the Avisynth filter? coz I'm getting BSOD after BSOD when I enable it

usually it simply stutters a bit and reboots the system! I can run 10 passes of IntelBurnTest and my system is not o/c.

it used to work fine, I just updated to the latest build from xvidvideo.ru, I'll try older builds...but anyway, when I disable the Avisynth filter everything works fine! using whatever KMP or MPC, HR or Overlay, Sonic 4.2 or AC3Filter, Reclock or DirectSound....I believe I've narrowed down the problem to the Avisynth filter(I use Avisynth-MT 2.57 on XP SP3)

Last edited by leeperry; 20th May 2009 at 00:30.
leeperry is offline   Reply With Quote
Old 19th May 2009, 23:48   #7409  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 2,100
ok I'm running a 2 months old build, and everything seems to work just fine!

I can't even enable CUDA in CoreAVC(on top of the Avisynth filter) w/ the latest builds...I get a IRQL_NOT_LESS_OR_EQUAL stop msg right away.

sounds like there's been some changes in the internal buffering of ffdshow lately? anyway, w/ this old build I can get CoreAVC CUDA and Avisynth working apparently.

that's one of the numerous stop msg I got :

0x0000000A
~5
~1C
0x804DC2C5

does the adress of the instruction ring any bell? http://support.microsoft.com/kb/314063

my PC works fine(3 days of foobar in KS, 10 passes of IntelBurnTest, etc etc), just the very latest builds of ffdshow give crazy BSOD's

I'd say the problem arised in the <7 days builds.

Last edited by leeperry; 20th May 2009 at 00:04.
leeperry is offline   Reply With Quote
Old 19th May 2009, 23:50   #7410  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 850
Haruhiko, corruption fixed. However I don't know why it doesn't work with 2941, when the code you reverted was like it's now.
__________________
Specs, with: ATI HD5850 - Lastest Catalyst - Vista x64 - MPC-HC x86, EVR Sync
STaRGaZeR is offline   Reply With Quote
Old 19th May 2009, 23:58   #7411  |  Link
Inspector.Gadget
--crf 18 --tune film
 
Join Date: May 2008
Posts: 1,411
Quote:
I can't even enable CUDA in CoreAVC(on top of the Avisynth filter) w/ the latest builds...I get a IRQ_LESS_OR EQUAL stop msg right away.
I had this problem plus random lock-ups after updating to NVIDIA 185.85 drivers, by the way.
__________________
DVD Decrypter -> PGCDemux -> DG* -> Avisynth -> HCEnc -> Muxman -> PGCEdit -> IMGBurn
DG* -> Avisynth -> x264 + Subrip -> mkvmerge
AnyDVD HD -> eac3to -> DG* -> Avisynth -> x264 + SupRip -> mkvmerge
Inspector.Gadget is offline   Reply With Quote
Old 20th May 2009, 00:50   #7412  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 1,195
in how far does yadif's frame duplication option use CPU and GPU sources (e.g. more CPU than GPU based?)
Thunderbolt8 is offline   Reply With Quote
Old 20th May 2009, 04:50   #7413  |  Link
FredThompson
Registered User
 
FredThompson's Avatar
 
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,908
Quote:
Originally Posted by haruhiko_yamagata View Post
If it is related to rev 2666, MMXEXT and 3DNOW! may matter.
Could you uncheck them?
I assume you mean the VirtualDub CPU functions? I turned all of those off and the problem still exists for build 2954.
__________________
Curator of links at http://neuron2.net
(Yes, I know it's woefully out of date...)
Collecting 9/11, Afghan/Iraq, Mail Call, Trains, Cooking, Woodworking, Fighting Illini
FredThompson is offline   Reply With Quote
Old 20th May 2009, 08:51   #7414  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,447
Quote:
Originally Posted by Thunderbolt8 View Post
in how far does yadif's frame duplication option use CPU and GPU sources (e.g. more CPU than GPU based?)
Considering that all ffdshow uses is the CPU - all CPU, no GPU?

(Unless you consider that the renderer will have to upload twice the amount of frames to the graphics card for display, of course...)
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 20th May 2009, 11:22   #7415  |  Link
swalker
Registered User
 
Join Date: Apr 2003
Posts: 15
Given the following from the March 10, 2009 news on http://www.ffmpeg.org/.
Quote:
# AAC with ADTS support and >2x the speed of FAAD! (no HE AAC support yet)
Should the libavcodec AAC decoding choice be uncommented in the installer script and be offered along with libfaad2, noting libavcodec's lack of HE AAC support?
Quote:
# AC-3 that is faster than liba52 in 5.1, up to 2x faster in stereo and also supports E-AC-3! Hence liba52 is now obsolete.
Should a default switch be made to using libavcodec for AC-3 decoding with eventual removal of liba52 if no problems are found?

Are there that many bugs/efficiency differences in each MPEG-1 audio decoder to warrant having a choice of three of them?

Last edited by swalker; 20th May 2009 at 11:40.
swalker is offline   Reply With Quote
Old 20th May 2009, 11:48   #7416  |  Link
tetsuo55
MPC-HC Project Manager
 
Join Date: Mar 2007
Posts: 2,052
I use libvacodec for everything, i have encountered no problems (any issue i find can be reproduced with the alternative codec)

I agree that we should think about moving out as many of the extra codecs as possible and focus on getting libvacodec as compatible as possible (most of the alternatives are no longer being updated)
tetsuo55 is online now   Reply With Quote
Old 20th May 2009, 12:13   #7417  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 1,195
Quote:
Originally Posted by Leak View Post
Considering that all ffdshow uses is the CPU - all CPU, no GPU?

(Unless you consider that the renderer will have to upload twice the amount of frames to the graphics card for display, of course...)
is it optimized for multi core cpus?
Thunderbolt8 is offline   Reply With Quote
Old 20th May 2009, 13:01   #7418  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,281
Quote:
Originally Posted by ipanema View Post
I'm trying to connect from my own source filter to the ffdshow video decoder which has H.264/AVC enabled, but I can't seem to discover the correct media type.
Please read
http://ffdshow-tryout.sourceforge.ne...pic.php?t=1138
You could write to the thread for more discussion.
Quote:
8D2D71CB-243F-45E3-B2D8-5FD7967EC09B
What does this subtype indicate?
Quote:
I assume that to use MEDIASUBTYPE_AVC1 you would have to parse the whole bitstream, replacing start codes and shifting lots of data around in memory before it is sent to the ffdshow decoder. I would rather just send the data as-is (with start codes) which does work fine with other decoders.
Yes, MPC and haali's splitter does this, as older ffdshow couldn't do without it. Current version doesn't require full access unit parsing by the splitter.
__________________
[ Download ffdshow | Wiki ]

Last edited by haruhiko_yamagata; 20th May 2009 at 13:03.
haruhiko_yamagata is offline   Reply With Quote
Old 20th May 2009, 13:08   #7419  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,281
Quote:
Originally Posted by FredThompson View Post
I assume you mean the VirtualDub CPU functions? I turned all of those off and the problem still exists for build 2954.
Nope, I mean CPU in ffdshow.
It is placed in "ffdshow (DirectShow) video decoder configuration", Info & CPU page.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 21st May 2009, 15:39   #7420  |  Link
ipanema
Registered User
 
Join Date: Apr 2009
Posts: 46
Thanks haruhiko.

Quote:
What does this subtype 8D2D71CB-243F-45E3-B2D8-5FD7967EC09B indicate?
I don't really know. I found it mentioned a few times when searching for H.264 media types. There didn't seem to be consistent "name" for it but it does seem to work OK with other decoders. Perhaps it is just a duplication of MEDIASUBTYPE_H264.

Quote:
Current version doesn't require full access unit parsing by the splitter.
That's fine. So if I use the H264 subtype instead of the AVC1 subtype then I shouldn't have to replace start codes with lengths or shift data around.

Anyway, I've managed to get the connection to the ffdshow video decoder to succeed now using either the above 8D2D... subtype or MEDIASUBTYPE_H264. But when I attempt to play I get no frames delivered for a while and then occasional decoded frames which look fine apart from a small amount of corruption.

I've concluded that the connection media type is OK, so it's likely that the way the data is being presented to the ffdshow video decoder is the problem.

As I was familiar with the Microsoft MPEG-2 Demultiplexer and it works OK with other H.264 decoders, that's what I am using to feed the ffdshow decoder. The Microsoft Demux doesn't look at the PES payload contents - it just seems to extract the video PES payload bytes from consective TS packets, concatenate them and output it in samples of 8192 bytes in length. It carries on doing this until it reaches the next frame and then starts sending a new series of 8192 byte samples. The first 8192 byte sample of a frame has a start and end stream time (but no media times) and Sync Point set; and subsequent samples have no timestamps at all and Sync Point is not set.

You mentioned in the other thread

Quote:
If you use 'H264' as fourcc, ffdshow can parse access units if the stream has AU delimiter. If the stream does not have AU delimiter, please parse access units at your side.
What do you mean by a AU delimiter? Does the above description of Microsoft's demux behaviour seem to satisfy ffdshow's requirements? I think it may not because of the problems I'm having getting perfect decoded frames.
ipanema is offline   Reply With Quote
Reply

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

Thread Tools
Display Modes

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 15:27.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.