View Full Version : ffdshow tryouts project: Discussion & Development
Casshern
7th April 2010, 18:40
DTS Spdif passthrough problems with m2ts files:
1) The DTS core does get picked up when playing the file from the beginning
2) I had MPC-HC set to remember last position, so it essentially seeked before playing -> this results in the core not being picked up
3) When seeking sound gets totally screwed, only multiple reseeking helps to get it back
Here is a small sample (which makes seeking hard, but try to play it NOT from the beginning to replicate)
http://www.mediafire.com/file/mztm2kmzu4u/testdtscore.m2ts
ikarad
7th April 2010, 19:32
Hi,
about bluray subtitles and subtitles in general, I am still working on it.
Pel (supread creator) and I are working on making a better PGS format support
The current implementation is not correct but I think I am close to the solution
There is also the new ffmpeg libs on their way, the last issues to fix
I try 3348 and there is no problem with blu ray subs. It is perfect with the sample that I give you. All subs are displayed with the correct timing. Thanks
But there is a new problem.
With 3343 you have corrected crash with YUY 2. With 3348 there are crashes with YUY2. It works only with rgb32
albain
7th April 2010, 20:00
I try 3348 and there is no problem with blu ray subs. It is perfect with the sample that I give you. All subs are displayed with the correct timing. Thanks
But there is a new problem.
With 3343 you have corrected crash with YUY 2. With 3348 there are crashes with YUY2. It works only with rgb32
The crash fix on YUY2 was not committed, but it was embedded in the test build I posted.
It is located in the new ffmpeg libraries that I am about to commit
STaRGaZeR
7th April 2010, 20:03
http://www.xtremesystems.org/forums/images/smilies/clap.gif
swordsman
7th April 2010, 20:06
Could you explain a little more ?
@All : I have fixed the last issues on new ffmpeg libraries (nv12 black screen). Now everything is working
I'm doing some code cleanings but the modifications are ready to be committed.
I mean you changed intrface unit or add some entries to it, but
version in svn repository is some months old, so I can't change my delphi units to work with last version of ffdshow.
STaRGaZeR
8th April 2010, 00:51
No problems found so far with the new libs, great work albain!
Sebastiii
8th April 2010, 07:07
Hi,
I've just made some test and it works good :) (great works)
I post some screenshot and i found on some sub this :
http://sebinternet.free.fr/ffdshow_3350-1.png
http://sebinternet.free.fr/ffdshow_3350-2.png
http://sebinternet.free.fr/ffdshow_3350-3.png
Also with Graphstudio and WMP, if i play .mkv, i can see sub (embedded or external) but if i open ffdshow windows to setup size of sub or other, the sub don't appear. (only when windows is open)
With .m2ts it's ok, i don't know why lol.
Seb and again great work :)
:thanks:
ikarad
8th April 2010, 20:46
The crash fix on YUY2 was not committed, but it was embedded in the test build I posted.
It is located in the new ffmpeg libraries that I am about to commit
I try rev3350 and it crash with rgb32 output and bluray subs. With 3348 no crash.
albain
8th April 2010, 21:53
I try rev3350 and it crash with rgb32 output and bluray subs. With 3348 no crash.
I don't reproduce the crash. Where did you get the rev3350 ?
I'll bet on a bad compilation, revision 3350 includes the new ffmpeg libraries and a clean compilation has to be made
Try this build (32 bits) (http://damienbt.free.fr/ffdshow_rev3350_20100407_dbt_.exe)
onomatopellan
8th April 2010, 22:18
rgb32 seems perfect, great work albain!
But yuy2 an dxva output still shows strange colors.
http://i41.tinypic.com/2cf9icl.png
Thunderbolt8
9th April 2010, 02:08
I have a problem with mpc-hc and ac3filter, but don't know whether its one or the other causing it (or maybe both). I used to have the problem for 1-2 years that the preferred ac3filter was just 'dropped' when I switched from one audio track inside a .mkv file to another. so basically when I had two 5.1 tracks or at least one 5.1 which was not the default one, then ac3filter was dropped after switching the track which was really bad for me, because I use ac3filter to downmix from 5.1 to 2.0 channels (because I only have 2 speakers).
since recently this problem seems to be solved though for 5.1 tracks, I can now switch between two 5.1 tracks inside a .mkv file and it's all fine, ac3filter still remains active. however, now this problem emerges when switching to 2.0 audio tracks, theres no sound at all anymore then. theoretically it's not that bad here, because I don't need ac3filter to downmix the channels. but I still use it change the gain & master volumes etc, so sometimes I still need it even for 2.0 channels. I use madlfac, ac3filter and reclock all together for video & audio decoding of movies (or at least ac3filter and reclock if no flac is involved).
the problem seems to be reclock (and/or madflac?) here, when I disable reclock, switching to the 2.0 is OK and the flac track plays with madflac only, but ac3filter becomes dropped if active. but as soon as reclock is active, it won't play any more, no matter if I use reclock + madflac or reclock + madflac + ac3filter. madflac (and ac3filter, if active as well) get dropped as active filters when switching to the 2.0 track in this situation, if reclock is active as well. they also remain dropped when switching back to the 5.1 track again so that you have to restart the player in order to get them back (this problem was the same for the 5.1 tracks back then, but only seems to apply now when switching back from the 2.0 to the 5.1 again; switching between two 5.1 tracks is fine, nothing gets dropped).
so when madflac and ac3filter are active:
from 5.1 --> 2.0 = ac3filter gets dropped. when switching back to 5.1 it remains dropped and 5.1 are not put out as 2.0 any more
when madlfac and ac3filter and reclock are active:
from 5.1 --> 2.0 = madflac & ac3filter get dropped, no sound output at all. same when switching back to 5.1 again
so which prog is to blame here, mpc-hc, ac3filter, madflac or reclock?
EDIT: actually switching to 5.1 is only fine when switching from another 5.1 track to 5.1 again. when having a 2.0 track as default, then switching to 5.1 results in dropping of ac3filter and madflac again, only reclock remains active. same when switching back to 2.0 again. seems to be some 5.1 and 2.0 track interference of filters or something like that. so I was wrong, nothing has been solved recently, unfortunately.
Casshern
9th April 2010, 03:43
I don't reproduce the crash. Where did you get the rev3350 ?
I'll bet on a bad compilation, revision 3350 includes the new ffmpeg libraries and a clean compilation has to be made
Try this build (32 bits) (http://damienbt.free.fr/ffdshow_rev3350_20100407_dbt_.exe)
With this build the dts core of dts MA tracks still does only get played over sp/dif if the file is played from the beginning (like it should if only DTS and not DTS HD is checked under output). If played from the last position (essentially seeking before starting playback) ffdshow incorrectly decodes the dts MA track and outputs according to the mixer options, instead of extracting the dts core.
Interestingly if played from beginning, further seeking is no problem ffdshow correctly picks up the dts core and outputs it over sp-dif. If playback starts in the middle of the m2ts, the dts core is not picked up (DTSMA gets decoded and output - in my case - as stereo) and further seeking does not restore the correct dts core sp/dif playback - even if seeking to the beginning of the file. Somehow the seeking code seems different from initial playback code. A couple of versions back ffdshow worked fine.
This is the behaviour with the mpc m2ts splitter. Unfortunately haali is even worse in that it plays the affected files only in stutter motion.
albain
9th April 2010, 07:49
rgb32 seems perfect, great work albain!
But yuy2 an dxva output still shows strange colors.
http://i41.tinypic.com/2cf9icl.png
I spent a lot of time on this, I don't understand why the subtitles are half transparent
The blending formula that I use with SSE instructions works perfectly for DVD subs
Maybe the problem comes from the ffmpeg scale routines
This problem was already there before.
I'll need some help from other developers on this
About DTS core decoding : I didn't work on this yet
@Sebastii : these borders are not normal. Do you have this problem in both RGB/YUV colorspace ? Could you post a sample ? Thanks
@Stargazer : do you still have border problems with DVD subtitles ? Could you send me a sample with visible results because this is very difficult to see these shadows on my DVDs. Thx
albain
9th April 2010, 07:54
Hi, I use ffdshow in delphi app, and every time you guys
change iffdecoder I had to update my prog.
But you didn't update iffdecoder.h (nor delphi interface) in time.
Please update interface units.
Thanks
This file has not been updated ok but what should be added ?
I added 3 methods to manipulate the audio/subtitle streams inside. Are you interested in those ?
STaRGaZeR
9th April 2010, 09:47
@Stargazer : do you still have border problems with DVD subtitles ? Could you send me a sample with visible results because this is very difficult to see these shadows on my DVDs. Thx
Yup, with r3350 the probem is still there. Sample here (http://forum.doom9.org/showthread.php?p=1377467#post1377467). Also see this (http://forum.doom9.org/showthread.php?p=1389462#post1389462).
swordsman
9th April 2010, 09:58
Would you update IffDecoder.h in svn repository?
I need new interface alot.
Thanks
Sebastiii
9th April 2010, 12:16
@Sebastii : these borders are not normal. Do you have this problem in both RGB/YUV colorspace ? Could you post a sample ? Thanks
Hi Albain :)
My test and setting are :
FFDshow (no DXVA) 3350, RGB32 Output.
The sample : FDSAMPLE.rar (http://sebinternet.free.fr/FDSAMPLE.rar)
I've to try in YUY to see what happen :)
I get my sample @ work to see :)
Thx,
Seb.
Edit : In YUY it's not exactly the same issue
This is the screenshot :
http://sebinternet.free.fr/ffdshow_3350-3-YUY.png
Edit2 : it's like en echo (or a shadow on sub)
clsid
9th April 2010, 14:11
@Thunderbolt8
Stream switching in Haali works by dynamically reconstructing part of the filter graph. You can avoid your problems by not using reclock. Or use the Gabest matroska splitter, which results in a graph with multiple decoders, of which just one will be actually doing active decoding if you enable the audio switcher in either MPC or ffdshow.
onomatopellan
9th April 2010, 14:31
@albain: ok, I'll try only with rgb32 output for now, thanks.
@Sebastiii: I have downloaded your sample and with rgb32 output (disabling all Yxx and nv12 colorspaces) and it works ok. Maybe it's a drivers problem? I'm using ATI Catalyst 9.2.
http://i41.tinypic.com/sw71jl.png
STaRGaZeR
9th April 2010, 16:09
http://sebinternet.free.fr/ffdshow_3350-3.png
I have the same problem with Sebastii's sample, RGB32 output.
ikarad
9th April 2010, 17:02
I don't reproduce the crash. Where did you get the rev3350 ?
I'll bet on a bad compilation, revision 3350 includes the new ffmpeg libraries and a clean compilation has to be made
Try this build (32 bits) (http://damienbt.free.fr/ffdshow_rev3350_20100407_dbt_.exe)
xvidvideo.ru
Sebastiii
9th April 2010, 17:04
Thanks guy's to test it,
I have the same issue on 3 PC(s).
ATI 5770, Nvidia 9600GT and GMA Q965.
Thanks,
Seb.
Thunderbolt8
9th April 2010, 17:36
@Thunderbolt8
Stream switching in Haali works by dynamically reconstructing part of the filter graph. You can avoid your problems by not using reclock. Or use the Gabest matroska splitter, which results in a graph with multiple decoders, of which just one will be actually doing active decoding if you enable the audio switcher in either MPC or ffdshow.disabling reclock doesnt help, as ac3filter gets dropped anyway, no matter if reclock is used or not. and I need ac3filter to downmix to 2.0 channels.
I'd like to try with the internal matroska splitter, but it seems then I cannot choose the different (audio) tracks in the .mkv file any more. so I don't know how to change the audio tracks then, it doesnt work the way as with the haali splitter anymore.
albain
9th April 2010, 17:51
This is not a driver issue but it depends on the scaler you choose in DVD & bluray settings
Some scalers will clean those shadows, but there is indeed a problem. If you use no scaler you will see them clearly
Do you have the problem in YUV mode (apart the transparency problem) ?
It may be due to the SSE algorithm
obieobieobie
9th April 2010, 22:16
I get a blurry picture with AVC in 3351. I have postprocessing enabled and disabling it makes the picture go back to normal.
clsid
9th April 2010, 22:51
disabling reclock doesnt help, as ac3filter gets dropped anyway, no matter if reclock is used or not. and I need ac3filter to downmix to 2.0 channels.
I'd like to try with the internal matroska splitter, but it seems then I cannot choose the different (audio) tracks in the .mkv file any more. so I don't know how to change the audio tracks then, it doesnt work the way as with the haali splitter anymore.
ffdshow can downmix as well.
MPC menu -> Play -> Filters -> bottom filter -> there you can switch streams
DigitalDeviant
10th April 2010, 03:06
Albain, did you finally disable jitter correction for THD? With the lastest revisions I get huge jitter (30 segs or more) that is causing crashes, silence and audio desync with m2ts files here. No issues with matroska though, jitter is always at ~0. Can anybody confirm?
I've done some testing and I believe there was an issue created between 3337 and 3342 causing silence, desynched or garbled audio when seeking. I've only tested this with AVC/TruHD Blu-ray though
DigitalDeviant
10th April 2010, 03:25
My original multiple subtitle sample plays fine now, a million thanks Albain. However, here is another problem sample I just ran into.
In addition to some fugly lines through the yellow subs at the bottom and fugly shadowing (see pic), the subtitle positions get switched around.
http://img442.imageshack.us/img442/6645/badsub.th.png (http://img442.imageshack.us/i/badsub.png/)
Sample (http://www.mediafire.com/download.php?mgztymdmdjn)
Thunderbolt8
10th April 2010, 04:57
ffdshow can downmix as well.
MPC menu -> Play -> Filters -> bottom filter -> there you can switch streamsnot sure what you mean. theres at least no field or option 'bottom filter'. all the filters for each stream are listed seperately there so like 3x madflac, ac3filter and reclock. I can click on them, but it only gives the PIN info and such, but does change the audio stream. the last one is the .mkv file, but same here, it contains all the PIN infos about all streams and I can click them seperately here, but it doesn't change which stream is being played. so how can I find the option to change the streams? ;S
EpsilonX
10th April 2010, 06:52
I get a blurry picture with AVC in 3351. I have postprocessing enabled and disabling it makes the picture go back to normal.
I can confirm this as well...
3350 exhibit the same problem...
3347 is working fine...
Maybe the changes in 3347 got reverted back again... :D
albain
10th April 2010, 09:01
I can confirm this as well...
3350 exhibit the same problem...
3347 is working fine...
Maybe the changes in 3347 got reverted back again... :D
That's right, I didn't pay attention to the automatic merge. I'll revert this in the next revision
fps
10th April 2010, 13:09
I've got a problem with the DXVA part of ffdshow/MPC-HC.
Every time I seek (H.264, 720p) the picture becomes blocky until the next keyframe. This only happens in fullscreen mode, otherwise everything is still fine.
The problem only happens with ffdshow's DXVA enabled. Exactly the same applies to the internal filter of MPC-HC (DXVA).
On my Radeon HD 4830 this bug was introduced since Catalyst 10.1, previous versions work fine.
Win 7 32 bit
Radeon HD 4830 (Catalyst 10.1 and upwards)
Intel Q9400
ffdshow_rev3350_20100407_dbt_
MPC-HC svn 1782
Sebastiii
10th April 2010, 20:22
This is not a driver issue but it depends on the scaler you choose in DVD & bluray settings
Some scalers will clean those shadows, but there is indeed a problem. If you use no scaler you will see them clearly
Do you have the problem in YUV mode (apart the transparency problem) ?
It may be due to the SSE algorithm
Hi, i have change and effectively it's better.
I have tested in RGB32 and YUY -> OK (i have put Full)
Big Thanks,
Seb.
err
11th April 2010, 14:06
hallo, I would like to ask something, I use mpc (1775) with ffdshow tryouts 20100331_clsid_x64 and I encounter two problems:
1)I cannot get the haali media splitter work with hd audio no matter what I do I get unsynchronised audio with video very slow.Is there any workaround?
2)when i play videos other than mkv, with dolby digital sound (ac3, mp3 whatever) I cannot get the sound without interruptions.Every 10-20secs the sound stops for 2 secs and starts again.the codecs I use is ffdshow or the built in mpc codecs and I always get the same result.The only way to make this work is to set it to speakers instead of spdif in the built in player just as the screenshot and I get multichannel pcm in my receiver even though it is really 2.1.What can I do?I use radeon 5850 with 10.3 drivers.Thanx in advance
mark0077
11th April 2010, 14:38
Guys, I am using ffdshow mainly to decode, convert output to nv12, and change the interlace flag manually to Force Weave or Force Bob for my badly encoded DVDs.
My question is regarding conversion to nv12. When I am choosing to output nv12, along with force weave or force bob for the interlace output flag, does the "RGB Conversion" -> "Interlace or progressive" field have any impact.
It says its also applies to yuy2 <-> yv12 conversion but I am unsure should I be manually setting this to interlace or progressive when i manually change the interlace flag field?
Thunderbolt8
11th April 2010, 17:40
@Thunderbolt8
Stream switching in Haali works by dynamically reconstructing part of the filter graph. You can avoid your problems by not using reclock. Or use the Gabest matroska splitter, which results in a graph with multiple decoders, of which just one will be actually doing active decoding if you enable the audio switcher in either MPC or ffdshow.
is the internal mpc-hc splitter the same as the gabest splitter? if not, wheres the option to reactivate the gabest splitter? (haali installation gives the me choice to deactivate it when installing, but how can I activate it again without deinstalling haali?)
I tried my .mkv file with the mpc-hc internal matroska splitter instead of haali, but essentially it was the same. ac3filter remained listed as filter for all 3 tracks, but there was only sound input and output for the default 5.1 track - no sound (modification) through ac3filter for the other track inside that file.
clsid
11th April 2010, 19:06
Options -> Internal Filters
Thunderbolt8
11th April 2010, 21:07
but is the internal filter = gabest splitter? because when installing haali, Im being asked for both, whether I want to deactivate the internal and the gabest splitter which would not be necessary if both were the same thing.
Keiyakusha
11th April 2010, 21:09
but is the internal filter = gabest splitter? because when installing haali, Im being asked for both, whether I want to deactivate the internal and the gabest splitter which would not be necessary if both were the same thing.
They are the same. It just can be internal and external.
EDIT: internal means built-in into MPC-HC, external - separate filter.
Thunderbolt8
11th April 2010, 23:35
hm, but why has the haali installation them as 2 seperate entries you can checkmark, disable internal mpc-hc spitter and also disable gabest splitter?
Keiyakusha
11th April 2010, 23:57
because even if they are technically the same, they are not connected with each other.
rica
12th April 2010, 01:00
hallo, I would like to ask something, I use mpc (1775) with ffdshow tryouts 20100331_clsid_x64 and I encounter two problems:
1)I cannot get the haali media splitter work with hd audio no matter what I do I get unsynchronised audio with video very slow.Is there any workaround?
2)when i play videos other than mkv, with dolby digital sound (ac3, mp3 whatever) I cannot get the sound without interruptions.Every 10-20secs the sound stops for 2 secs and starts again.the codecs I use is ffdshow or the built in mpc codecs and I always get the same result.The only way to make this work is to set it to speakers instead of spdif in the built in player just as the screenshot and I get multichannel pcm in my receiver even though it is really 2.1.What can I do?I use radeon 5850 with 10.3 drivers.Thanx in advance
is the internal mpc-hc splitter the same as the gabest splitter? if not, wheres the option to reactivate the gabest splitter? (haali installation gives the me choice to deactivate it when installing, but how can I activate it again without deinstalling haali?)
I tried my .mkv file with the mpc-hc internal matroska splitter instead of haali, but essentially it was the same. ac3filter remained listed as filter for all 3 tracks, but there was only sound input and output for the default 5.1 track - no sound (modification) through ac3filter for the other track inside that file.
Guys, you may find out some common answers to your questions here:
(even you'll find the answer of how to make Haali as easily selectable filter in MPC-HC.)
http://forum.doom9.org/showthread.php?p=1370134#post1370134
Gabest splitter and Haali are completely different filters.
Gabest comes with MPC-HC (or as an external filter).
Haali is different.
Here is the comparison of them:
http://forum.doom9.org/showthread.php?p=1382497#post1382497
btw err, pls read my post carefully and you have two options:
1) Untick internal LPCM filter in MPC-HC and leave ffdshow configuration as LPCM enabled.
2) Untick LPCM filter in MPC-HC and unable LPCM in ffdshow and try WASAPI exclusive(for PCM) via ReClock (haali needed this time) and/or untick the rest of all audio formats and bitstream with DirectSound.
Thunderbolt8
12th April 2010, 02:50
why do I have to install mpc-hc after all other filters? or even reinstall it again after having changed a version of ffdshow or reclock?
and why to untick those splitter options for gabest etc. at haali installation? as soon as I tick 'matroska' for internal filters, it uses the internal filter and not haali any more.
rica
12th April 2010, 03:16
If you install haali with its default settings, even if you select (tick) internal filters in MPC, Haali will be selected as preferred renderer.
why do I have to install mpc-hc after all other filters? or even reinstall it again after having changed a version of ffdshow or reclock?
Sorry, it's not my choice, this is a "defacto" situation.
swordsman
12th April 2010, 04:41
Yes, I do
Thunderbolt8
12th April 2010, 09:15
If you install haali with its default settings, even if you select (tick) internal filters in MPC, Haali will be selected as preferred renderer.well, what do you mean by that? when I tick the internal renderer and I play a remuxed HD movie with flac audio I cannot see haali being loaded. no taskbar icon, nothing of haali mentioned in filters. the menu & track list in mpc-hc doesnt look like haali at all then.
Sorry, it's not my choice, this is a "defacto" situation."what" is the defacto situation? I definately can install mpc-hc after installing all the filters and it still plays all my remuxed HD movies fine. Ive always done it this way so far.
swordsman
12th April 2010, 13:05
Ok, nobody wants to update lffdecoder.h, so I can't recompile my prog to use new versions of ffdshow ;-(
Another question - is where any interface description to ffdshow DXVA?
Keiyakusha
12th April 2010, 13:14
If you install haali with its default settings, even if you select (tick) internal filters in MPC, Haali will be selected as preferred renderer.
Renderer? Do you mean splitter? If so, this is not true. Enabling internal splitter will override haali splitter. Haali won't be loaded.
Thunderbolt8
12th April 2010, 15:20
^^thats what I mean as well
albain
12th April 2010, 19:05
Ok, nobody wants to update lffdecoder.h, so I can't recompile my prog to use new versions of ffdshow ;-(
Another question - is where any interface description to ffdshow DXVA?
You can do it yourself, you know delphi's coding, the effort is not huge
I don't have time for now
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.