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 Search this Thread Display Modes
Old 14th January 2010, 20:12   #10301  |  Link
therealjoeblow
Registered User
 
Join Date: Jan 2004
Location: Canada
Posts: 210
@Blight

Quote:
Originally Posted by Blight View Post
What are the hardware requirement for DXVA (minimum ATI/NVIDIA/INTEL model required) ?

I have an NVIDIA 7600GT and the DXVA filter wont even connect to the EVR.
Also, why is H.264/VC1 disabled (unchecked) by default on the "Hardware Acceleration" tab, Isn't the whole purpose of a separate DXVA filter to ensure that DXVA wont interfere with standard usage of ffdshow?
For ATI Cards:

http://en.wikipedia.org/wiki/Unified...D_enabled_GPUs

For NVIDIA Cards:

http://en.wikipedia.org/wiki/Nvidia_..._.28HD.29_GPUs
__________________
Cheers,
The REAL Joe
therealjoeblow is offline   Reply With Quote
Old 14th January 2010, 20:15   #10302  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 1,302
Quote:
Originally Posted by therealjoeblow View Post
(the latter setting is what triggers DXVA to be initiated for DVD/MPEG2 decoding).
Nope, it doesn't trigger DXVA, just hardware deinterlacing.
__________________
Specs, GTX970 - PLS 1440p@96Hz
Quote:
Originally Posted by Manao View Post
That way, you have xxxx[p|i]yyy, where xxxx is the vertical resolution, yyy is the temporal resolution, and 'i' says the image has been irremediably destroyed.
STaRGaZeR is offline   Reply With Quote
Old 14th January 2010, 21:56   #10303  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
Quote:
Originally Posted by hoborg View Post
OK, i finished test right now.
The sample i posted to you works just fine in 3198 like others VC-1 samples i have.
In 3200 sample i sended to you are broken, but rest of VC-1 videos i have seems to be OK.
the "bug" is related to B frame ordering (bReorderBFrame variable),
MPC-HC filter behaves differently for each splitter,
I'm hoping for a better solution: I hope a common ground can be reached on how the splitter should behave. (reorder B frames or not).
however, I'm not sure I have a full understanding of the issue at hand, please correct me if I'm wrong in any way.

Regards,
Tal
tal.aloni is offline   Reply With Quote
Old 14th January 2010, 22:09   #10304  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
albain,
you may already know this, but:

1. I think the colorspace in the flat DXVA decoded buffer is NV12: 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.
however, it seems that each plane is drawn in blocks, I had some experience with a similar format in the past, so I can try to help in deciphering the format if all else fails.

2. I'm not sure what's the best route to convert it to FFDShow.

3. It would be indeed best to "templetize" the copy mechanism, so you could use SSE 4 / SSE 2 / memcpy, I don't know how, but I think that there are a few examples already in ffdshow.

sorry for not being of more assistance,
Tal

Last edited by tal.aloni; 14th January 2010 at 22:15.
tal.aloni is offline   Reply With Quote
Old 15th January 2010, 08:53   #10305  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by Sebastiii View Post
Jeremy Duncan for Wiki

I'll try to try
Seb.
Your welcome. I have updated the wiki again; this time I described how to build icl11 builds.

link

And to clsid, visual studio pro as described by me in the wiki can compile kerneldeint, tomsmocomp, xvidcore. libmpeg2.
I will post my ffdshow I build today, 3202 using SE't patch and where visual studio built kerneldeint, libmpeg2, tomsmocomp, xvidcore, so you can test it to see if it's ok and the wiki is fine since my build is fine.

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 15th January 2010, 09:27   #10306  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by tal.aloni View Post
albain,
you may already know this, but:

1. I think the colorspace in the flat DXVA decoded buffer is NV12: 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.
however, it seems that each plane is drawn in blocks, I had some experience with a similar format in the past, so I can try to help in deciphering the format if all else fails.

2. I'm not sure what's the best route to convert it to FFDShow.

3. It would be indeed best to "templetize" the copy mechanism, so you could use SSE 4 / SSE 2 / memcpy, I don't know how, but I think that there are a few examples already in ffdshow.

sorry for not being of more assistance,
Tal
1. The current implementation uses NV12 colorspace, but NV12 is far from being the best colorspace compared to RGB ones.
I hope that we can use others with DXVA. But for the moment indeed I assume that we have NV12 buffers

2. I have made a patch. Here is the link. I cannot test it because I am at work and my laptop does not support dxva.
The project file is updated because a new macro (DXVA_INSIDE_FFDSHOW) adds DXVA decoding and dialogs inside FFDSHow video filter.

I have copied the decompress method from TvideoCodecLibavcodec and splitted into 2 methods
.
The processFrame method is called at the end (after DXVA or software decoding for a given frame) and from the AVFrame (frame) will analyze it and create a TffPict (uncompressed picture) to process it through the FFDShow internal filters.
What I have done is to fill the AVFrame structure with the DXVA buffers that I have copied back from the GPU.
I took my inspiration from TvideoCodecUncompressed class that received flat uncompressed buffers too.
Then it should work.


This should work but what I am not sure about what the MPC patch affect or not : there may be some missing parameters in the AVFrame (I have set a few such as the pix_fmt, the type of frame).

If you have time to review the patch thank you !
albain is offline   Reply With Quote
Old 15th January 2010, 10:13   #10307  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by _xxl View Post
libmpeg2_ff.dll shouldn't be compiled by MinGW GCC because they are slower than MSVC 2008.
I ran a test using the timecodec on the ffdshow wiki and here are the test result.
One build using the visual 2008 compiler the other one uses msys, both built in xp mce.

Code:
icl 11, 3202, vmr7, 720p, libmpeg2 built in msvc
user: 5
kernel: 3
total : 8
real: 91
fps: 492.7
dfps: 47.7

icl 11, 3202, vmr7, 720p, libmpeg2 built in gcc msys
user: 5
kernel: 3
total : 8
real: 89
fps: 500.7
dfps: 48.8
ffdshow video codec settings
Code:
Codecs tab
Set Mpeg2 to Libmpeg2, and check "DVD decoding".
Set Avisynth to Avisynth, Raw video to All supported

Subtitles tab, Unchecked
Uncheck "Decode closed captions"
Uncheck "Accept embedded subs"
Uncheck "Accept SSA, ASS, ASS2 Subtitle (experimental)
Vobsub subpage, uncheck Vobsub Enable.

Avisynth tab checked
YV12 checked,
Add FFdshow Video source Unchecked,
3:2 Pulldown box: Ignore Pulldown checked,
check Buffer back/Ahead: 3, 3

setmtmode(2)
Last=ffdshow_source()
setmemorymax(550)
setmtmode(2)
a= last
b=a.Spresso()
SeeSaw(a,b)
LimitedSharpenFaster(strength=11)
LimitedSharpenFaster(strength=11)
distributor()

Resize & aspect tab checked
Process whole image checked
Specify horizontal and vertical Resize: 1280, 720
Process Pixel aspect ratio internally checked
No aspect ratio correction checked
spline
Luma Sharpen: 0.00
Luma Guassian Blur 0.50 
Accurate rounding checked

Output tab
rgb32 checked
high quality yv12 to rgb conversion checked

rgb conversion tab
ycbcr: itu-bt 601
high quality yv12 to rgb conversion checked
Dithering checked
contrast: standard 
Output levels: Tv/Projector
The test clip was a mpeg2 made into a avi using virtual dub, standard definition resolution for ntsc movies.

ffdshow libmpeg2 built using msys
ffdshow libmpeg built using msvc
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.

Last edited by Jeremy Duncan; 15th January 2010 at 10:16.
Jeremy Duncan is offline   Reply With Quote
Old 15th January 2010, 23:09   #10308  |  Link
Cheesegeezer
Registered User
 
Join Date: Oct 2009
Posts: 23
Hey there guys, I could really do with some help.

I'm using win 7 32bit and i'm trying to use FFDShow Video to decode both SD Live TV and BBC HD.

I've disabled the M$ DVD-DTV video and audio decoders along with the MP3 one. I've set merit of FFDShow to max in Radlight filter manager.

In the FFDShow Video Config, I have set MPEG2 to libmpeg2 and MPEG in AVI to libmpeg2 and Raw Video to all Supported.

Im using graph studio and remotely connecting to win7MCE, I'm using a DVB-S2 TV Card, but for the life of me FFDShow can't be inserted into the graph for MPEG2 streams or the h264 stream. Graphstudio simply refuses to insert the FFDShow Video Filter.

Have I missed something or is FFDShow not compatible with live TV in win7.

Any help would be greatly appreciated.

Many Thanks

Dave
Cheesegeezer is offline   Reply With Quote
Old 16th January 2010, 05:05   #10309  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by albain View Post
2. I have made a patch. Here is the link. I cannot test it because I am at work and my laptop does not support dxva.
The project file is updated because a new macro (DXVA_INSIDE_FFDSHOW) adds DXVA decoding and dialogs inside FFDSHow video filter.
I can build a ffdshow for you using the patch and post it here for people to test. But I have a few questions first.

Reading the diff file it goes into the folder where the ffdshow_2008.vcproj is?
And I would build ffdshow_2008.vcproj not ffdshow_2008.sln?
May I ask that you supply a patch that's built with the sln version as I know I can do that easily?
__________________
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 16th January 2010, 09:01   #10310  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
@Jeremy,
1. Thanks for the offer, but the patch is not doing anything significant right now, it was only meant for review.

@everyone
unfortunately, the reading speed of the decoded DXVA frame is not fast enough to process 720p24 on CPUs without SSE 4.1, so Phenom, Athlon and Pentium 4 could not use full frame DXVA post processing.

however, writing speed to the frame is much faster,
so it seems we can overlay osd / subtitles (write only)
or blend them (little read involved) fast enough for the older CPUs to handle.

Last edited by tal.aloni; 16th January 2010 at 09:49.
tal.aloni is offline   Reply With Quote
Old 16th January 2010, 16:43   #10311  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Yes, afterwards we will make performance tests to figure out if :

1/ DXVA decoding + copy back to system memory + FFDShow software processing

is faster than

2/ FFDSHow software decoding + processing

So at the end the DXVA filter will still be useful to develop dedicated DXVA internal postprocessing filters

Status : FFDSHow postprocessing work now on DXVA decoded picture copied back to system memory (including resize) but there is a deadlock
albain is offline   Reply With Quote
Old 16th January 2010, 16:50   #10312  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
Perhaps I'm missing something, but does anyone know where the OSD-profile bar has gone? I've had rev.1341 installed untill today (today I updated till latest one) and already with rev.1341 the ability to save OSD-profiles has been removed as well.
I'd like to know why it has been removed and if it's coming back at all?
__________________
My hobby website
Reino is offline   Reply With Quote
Old 16th January 2010, 17:24   #10313  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,643
OSD settings are now stored as part of your Profile/Preset.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 16th January 2010, 17:51   #10314  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
Quote:
Originally Posted by albain View Post
1/ DXVA decoding + copy back to system memory + FFDShow software processing

is faster than

2/ FFDSHow software decoding + processing
my phenom is fast enough for 2, but can't handle 1. (I'm guessing it will be different for SSE 4.1 capable CPUs)

however, overlaying OSD / Subtitles works quite well.

Last edited by tal.aloni; 16th January 2010 at 17:54.
tal.aloni is offline   Reply With Quote
Old 16th January 2010, 22:08   #10315  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
The svn is not downloading the files properly, please fix it.
I have a question, if I make a 64 bit ffdshow.ax, does the gcc files need to be 64 bit also, or can I use the custom mingw 32 bit to build the gcc files and use them with a 64 bit ffdshow.ax?
__________________
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 16th January 2010, 22:14   #10316  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,643
Everything must be 64-bit. You need MinGW64.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 16th January 2010, 22:27   #10317  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by clsid View Post
Everything must be 64-bit. You need MinGW64.
If I installed your 64 bit ffdshow then took the gcc files:libavcodec, mplayer, ffmpeg and put the in the bin folder to build my ffdshow would that work?

Edit, and if I used mingw64 myself, which would I install? Can you please link to the one I would use in Windows 7 64 bit, the download link? I don't use mingw usually so I have no clue on which one I need.

Edit, I found these instructions by Casimir666,

Quote:
Originally Posted by Casimir666 View Post
I have finally find a way to compile x64 edition with GCC .

To do this, you should have :
- Download MingW64 chaintool for i686-mingw platform
(http://sourceforge.net/project/showf...ease_id=546049)
- Download MSys, and configure it with MingW64 with postinstall script (http://sourceforge.net/project/showf...?group_id=2435)
- Patch MSys with latest release of CoreUtils and Bash
- Install Subversion command line client from http://subversion.tigris.org (and add path in msys.bat if necessary)

To compile ffmpeg, start MSys and execute script : ..\mpcvideodec\ffmpeg_x64\buildffmpeg.sh

DO NOT copy manually libgcc.a and libmingwex.a to mpc "lib64" folder, the script will do it for you. The reason it's so complicated is that MingW64 libraries should be compiled with -fno-leading-underscore option to be link statically with Visual Studio.

If somebody want to compare performance between VS build and GCC build i have uploaded a release here :
http://www.zshare.net/download/17954266d7edd8f9/
link

I have a few questions. Do I install mingw 64 before downloading the "MingW64 chaintool for i686-mingw platform". If so please link to the download fo both files because I don't know which one to choose.
Once I get that step down I'll try to figure the rest out myself.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.

Last edited by Jeremy Duncan; 16th January 2010 at 22:54.
Jeremy Duncan is offline   Reply With Quote
Old 16th January 2010, 23:01   #10318  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,643
Those instructions are not needed for ffdshow.
Just unzip MinGW64 and add its /bin dir to your PATH environment variable.
I am using the 4.4.0 MinGW64 build.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 17th January 2010, 00:34   #10319  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by Jeremy Duncan View Post
The svn is not downloading the files properly, please fix it.
I have a question, if I make a 64 bit ffdshow.ax, does the gcc files need to be 64 bit also, or can I use the custom mingw 32 bit to build the gcc files and use them with a 64 bit ffdshow.ax?
I had problems too with the repository lately when trying to work on a branch (too many files to deal with)
So I gave up on branching
albain is offline   Reply With Quote
Old 17th January 2010, 04:42   #10320  |  Link
Andy o
Registered User
 
Join Date: Mar 2009
Posts: 962
Hey guys does the Dolby Digital Plus decoder support 7.1 right now? I'm playing a Dolby test bluray and ffdshow only outputs 5.1:



Not a big deal since there's virtually no DD+ blurays besides that test disc AFAIK. Just wanted to know.

Using MPC-HC 1453 and ffdshow 3181. Could it be the splitter? I'm using the internal one.
Attached Images
 

Last edited by Andy o; 17th January 2010 at 04:44.
Andy o is offline   Reply With Quote
Reply

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 20:41.


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