View Full Version : ffdshow tryouts project: Discussion & Development
G_M_C
28th December 2008, 13:05
Guys i've got a strange problem;
I use MPC-HC for playing my videos. Currently i use CoreAVC for AVC playback. I've set MPC to VMR9 (renderless), and full-screen to my secondary display (TV, atm connected through S-Video). When i use CoreAVC, switching to full-screen the secondary display works fine, but i cant get subtitles to work correctly. But i want the subtitles to work on the full-screen mode ...
So i loaded the latest beta (6) of ffdshow_tryouts. Set it up to decode AVC, and set it up to generate subtitles. When in "normal PC-screen" mode, all works fine. Subs show up, and are drawn as i set up, but the problem starts when i try to switch over to full screen .... When i switch over to full screen, on my secondary display, i get a freeze-frame with subtitle (also frozen). The audio keeps playing though. Switching rendering modes give various effects, most of them the same frozen frame others dont give an image/signal at all. Overlay mode gives an image thats 1/2 hight (somehow DAR/SAR isnt transmitted properly it seems, (on CoreAVC i do get the full-screen/hight image).
What setting can i change to get full-screen video with subs through ffdshow / get the whole thing working ?
MatMaul
28th December 2008, 15:30
@h_yamagata : I think you should add the microsoft mpeg2 demultiplexer to the "h264_on_MPEG2_system" workaround because it is used by some DVB softwares (at least the OS ones like MeuhMeuhTV or PouchinTV).
patch :
Index: src/ffdshow_mediaguids.h
===================================================================
--- src/ffdshow_mediaguids.h (revision 2547)
+++ src/ffdshow_mediaguids.h (working copy)
@@ -374,6 +374,7 @@
DEFINE_GUID(CLSID_AVIDec ,0xcf49d4e0, 0x1115, 0x11ce, 0xb0, 0x3a, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
DEFINE_GUID(CLSID_EnhancedVideoRenderer ,0xfa10746c, 0x9b63, 0x4b6c, 0xbc, 0x49, 0xfc, 0x30, 0x0e, 0xa5, 0xf2, 0x56);
DEFINE_GUID(CLSID_VideoMixingRenderer9 ,0x51b4abf3, 0x748f, 0x4e3b, 0xa2, 0x76, 0xc8, 0x28, 0x33, 0x0e, 0x92, 0x6a);
+DEFINE_GUID(CLSID_MPEG2Demultiplexer ,0xafb6c280, 0x2c41, 0x11d3, 0x8a, 0x60, 0x00, 0x00, 0xf8, 0x1e, 0x0e, 0x4a);
DEFINE_GUID(CLSID_DirectVobSubFilter ,0x93a22e7a, 0x5091, 0x45ef, 0xba, 0x61, 0x6d, 0xa2, 0x61, 0x56, 0xa5, 0xd0);
DEFINE_GUID(CLSID_DirectVobSubFilter2 ,0x9852a670, 0xf845, 0x491b, 0x9b, 0xe6, 0xeb, 0xd8, 0x41, 0xb8, 0xa6, 0x13);
DEFINE_GUID(CLSID_HaaliVideoRenderer ,0x760a8f35, 0x97e7, 0x479d, 0xaa, 0xf5, 0xda, 0x9e, 0xff, 0x95, 0xd7, 0x51);
Index: src/TffdshowVideoInputPin.cpp
===================================================================
--- src/TffdshowVideoInputPin.cpp (revision 2547)
+++ src/TffdshowVideoInputPin.cpp (working copy)
@@ -265,7 +265,7 @@
connectedSplitter = Haali_Media_splitter;
else if (ref == CLSID_MPC_MpegSourceFilter || ref == CLSID_MPC_MpegSplitterFilter)
connectedSplitter = MPC_mpegSplitters;
- else if (ref == CLSID_DVBSourceFilter)
+ else if (ref == CLSID_DVBSourceFilter || ref == CLSID_MPEG2Demultiplexer)
connectedSplitter = DVBSourceFilter;
#if 0
haruhiko_yamagata
28th December 2008, 15:41
@h_yamagata : I think you should add the microsoft mpeg2 demultiplexer to the "h264_on_MPEG2_system" workaround because it is used by some DVB softwares (at least the OS ones like MeuhMeuhTV or PouchinTV).
patch :
Last time I tried it in graphedit on Windows Xp, I get video but no audio.
But if it's working, it's OK.
haruhiko_yamagata
28th December 2008, 15:43
Guys i've got a strange problem;
I use MPC-HC for playing my videos. Currently i use CoreAVC for AVC playback. I've set MPC to VMR9 (renderless), and full-screen to my secondary display (TV, atm connected through S-Video). When i use CoreAVC, switching to full-screen the secondary display works fine, but i cant get subtitles to work correctly. But i want the subtitles to work on the full-screen mode ...
So i loaded the latest beta (6) of ffdshow_tryouts. Set it up to decode AVC, and set it up to generate subtitles. When in "normal PC-screen" mode, all works fine. Subs show up, and are drawn as i set up, but the problem starts when i try to switch over to full screen .... When i switch over to full screen, on my secondary display, i get a freeze-frame with subtitle (also frozen). The audio keeps playing though. Switching rendering modes give various effects, most of them the same frozen frame others dont give an image/signal at all. Overlay mode gives an image thats 1/2 hight (somehow DAR/SAR isnt transmitted properly it seems, (on CoreAVC i do get the full-screen/hight image).
What setting can i change to get full-screen video with subs through ffdshow / get the whole thing working ?
I can't reproduce. Does it matter primary or secondary screen?
What is your video card?
v0lt
28th December 2008, 15:46
BUG: I found a bug in VFW MJPG-decoder in ffdshow-mt after rev2353. I open file in VirtualDub and get blue color instead of red.
my file - http://rapidshare.com/files/176589107/test_MJPEG.avi.html
ffdshow-mt rev2353 - no bug
ffdshow-mt rev2368 and above - bug
common ffdshow x86 - no bug
sorry for my English
yesgrey
28th December 2008, 16:34
BAG: ... sorry for my English
Just to inform you... It's BUG.;)
v0lt
28th December 2008, 17:46
Just to inform you... It's BUG.;)
facepalm
...fixed)
mark0077
28th December 2008, 18:31
Hey guys,
Im almost 100% moved to using ffdshow video and audio for everything as I find no problems with it now compared to a while ago.
The two questions I have are
ffdshow video: What de-interlacer is "best" or what do most people find the best. I have been using yadif but it is buggy especially when moving from say a progressive dvd menu, to interlaced video, I think it gets mixed up and I get ugly looking screens, or sometimes black screens for a few seconds.
ffdshow audio: Is there a way to tell the mixer, when I am playing a stereo source, mirror the front left, to rear left, and front right, to rear right. The expand surround seems to do more than this which I do not want.
THX!
TheShadowRunner
28th December 2008, 21:04
Ok thanks for your answer Haruhiko (regarding the double subtitle issue, ffdshow + VSfilter both displayed at once).
I reckon the best way to deal with this would be from within VSfilter, would you know if Casimir is still today the principal coder for VSfilter?
See you,
TSR
iSunrise
28th December 2008, 22:01
ffdshow audio: Is there a way to tell the mixer, when I am playing a stereo source, mirror the front left, to rear left, and front right, to rear right. The expand surround seems to do more than this which I do not want.
Enable the "2/0/2 - quadro" preset in the mixer tab, enable "custome matrix" and input "1" into both L -> BackL and R -> BackR fields.
That should do the trick.
mark0077
28th December 2008, 22:23
Thanks for that, but my aim is to have my complete setup automated and this is one of the final steps I need to get around.
Is there any way to automate this in the mixer?
MatMaul
29th December 2008, 00:26
Last time I tried it in graphedit on Windows Xp, I get video but no audio.
But if it's working, it's OK.
I can't test because my computer is way too slow to decode 1080 ts samples but it can't hurt to enable it : this splitter is only used for mpeg2 streams.
haruhiko_yamagata
29th December 2008, 00:41
I can't test because my computer is way too slow to decode 1080 ts samples but it can't hurt to enable it : this splitter is only used for mpeg2 streams.
Well, do you mean the patch is not tested?
It should work without your patch as long as the splitter set filename in its API context. DVBSource does not set filename, and that's why it's listed there.
MatMaul
29th December 2008, 01:11
It should work without your patch as long as the splitter set filename in its API context. DVBSource does not set filename, and that's why it's listed there.
the same applies for the microsoft demuxer in DVB playback context since no filename is available.
What I meant is that it is a MPEG2 demultiplexer only so if h264 is detected you can be sure the "h264_on_MPEG2_system" case applies, so there is no drawback to automatically activate it when this splitter is detected.
Jong
29th December 2008, 02:54
I have a problem which I am pretty sure is limited to beta6. Sometimes in TheaterTek video fails to start when ffdshow is being used as a post-processor to Nvidia's MPEG-2 decoder. Audio plays but there is a black screen.
TheaterTek says ffdshow is loaded, but its icon does not appear in systray, although it does when all is working.
It happens maybe one time in 6-8 attempts. Other times all is OK. I have just regressed to beta 5 and in 20+ attempts couldnot get it to happen. I have never seen it before upgrading.
Any ideas?
G_M_C
29th December 2008, 08:23
I can't reproduce. Does it matter primary or secondary screen?
What is your video card?
Sorry, i was out and have to go out to work again. Will help again when i return. To rule out other possibilities, i'll update drivers and MPC-HT to newest, and report back about settings etc. Thanx in advance.
turbojet
29th December 2008, 08:47
No problem at all with the playback using MPC, MPC-HC, graphstudio and ffdshow here .....
It's purely interlaced, TFF.
Oh seems to play ok in ffdshow 2537 but not in ffdshow-mt 2548 from xvidvideo.ru could someone involved with ffdshow-mt take a look at <link removed, fixed>?
EpsilonX
29th December 2008, 09:20
Hi guys !
Newbie here, currently I'm using rev2527 ICL10...
Been having grab issues from the last 4-5 builds if i recall correctly...
FFDShow would crash while grabbing screenshots using Grab...
Tried with ZoomPlayer and MPC, so it seems it's not a player related problem...
Narrowed the problem's cause, it only happens when Resize is active...
Changing the resize method didn't seem to help...
Any confirmation about this problem..?
Thanx in advance !
Still no confirmation... :(
Anyone able to reproduce this problem..?
haruhiko_yamagata
29th December 2008, 09:47
BUG: I found a bag in VFW MJPG-decoder in ffdshow-mt after rev2353. I open file in VirtualDub and get blue color instead of red.
my file - http://rapidshare.com/files/176589107/test_MJPEG.avi.html
ffdshow-mt rev2353 - no bug
ffdshow-mt rev2368 and above - bug
common ffdshow x86 - no bug
sorry for my English
I can't reproduce because unknown MJPEG decoder is used instead of ffdshow in VFW mode. I'm trying to uninstall the unknown MJPEG decoder, no success for now.
Is there other way to reproduce the bug?
haruhiko_yamagata
29th December 2008, 11:02
Hi guys !
Newbie here, currently I'm using rev2527 ICL10...
Been having grab issues from the last 4-5 builds if i recall correctly...
FFDShow would crash while grabbing screenshots using Grab...
Tried with ZoomPlayer and MPC, so it seems it's not a player related problem...
Narrowed the problem's cause, it only happens when Resize is active...
Changing the resize method didn't seem to help...
Any confirmation about this problem..?
Thanx in advance !
@tal.aloni
Could you take a look at this?
haruhiko_yamagata
29th December 2008, 13:59
Oh seems to play ok in ffdshow 2537 but not in ffdshow-mt 2548 from xvidvideo.ru could someone involved with ffdshow-mt take a look at it (http://www.mediafire.com/download.php?mvjnmva5kmn)?
It crashes because s.obmc_scratchpad is NULL in mc_part_weighted (luma-only case).
Mr VacBob, I hope you find this.
tetsuo55
29th December 2008, 15:39
I just wanted to point out that this post has revealed several problems with the Mpeg2 decoders in ffdshow
http://forum.doom9.org/showthread.php?t=143818
I do not know if these where already known, nor do i know if these are ffdshow or ffmpeg bugs
Sharc
29th December 2008, 16:00
Could someone have a look to this file? I was not able to decode it with ffdshow. It seems to consist of a mixture of progressive and frame interlaced content.
The only way I found to decode it properly was with the DGVC1IndexNV suite.
http://www.mediafire.com/?sharekey=f4754089d1b37e86d2db6fb9a8902bda
v0lt
29th December 2008, 16:15
I can't reproduce because unknown MJPEG decoder is used instead of ffdshow in VFW mode. I'm trying to uninstall the unknown MJPEG decoder, no success for now.
Is there other way to reproduce the bug?
:confused: I only chose libavcodec in settings of VFW decoder...
ffdshow-mt rev. 2530
http://img244.imageshack.us/img244/6029/bluepianoem9.th.jpg (http://img244.imageshack.us/img244/6029/bluepianoem9.jpg)
internal MJPEG decoder
http://img508.imageshack.us/img508/6230/redpianota1.th.jpg (http://img508.imageshack.us/img508/6230/redpianota1.jpg)
ikarad
29th December 2008, 21:27
I don't know if anybody know this problem with AC3 codec but I give you the link of this problem (random desynchronisation of sound with 5.1 soundtrack when AC3 codec is used with XFI titanium under xp sp3).
http://ac3filter.net/forum/viewtopic.php?p=2530#2530
If anybody know how to correct this problem or if a new version of ac3 codec will correct this bug.
haruhiko_yamagata
30th December 2008, 01:39
:confused: I only chose libavcodec in settings of VFW decoder...
ffdshow-mt rev. 2530
http://img244.imageshack.us/img244/6029/bluepianoem9.th.jpg (http://img244.imageshack.us/img244/6029/bluepianoem9.jpg)
internal MJPEG decoder
http://img508.imageshack.us/img508/6230/redpianota1.th.jpg (http://img508.imageshack.us/img508/6230/redpianota1.jpg)OK I've managed to reproduce it.
EpsilonX
31st December 2008, 12:11
Hi guys !
Newbie here, currently I'm using rev2527 ICL10...
Been having grab issues from the last 4-5 builds if i recall correctly...
FFDShow would crash while grabbing screenshots using Grab...
Tried with ZoomPlayer and MPC, so it seems it's not a player related problem...
Narrowed the problem's cause, it only happens when Resize is active...
Changing the resize method didn't seem to help...
Any confirmation about this problem..?
Thanx in advance !
A little update...
It seems it only crashed with 16:9 (Widescreen) content...
Capturing 4:3 content works fine...
But another problem arise...
The captured frame looks like this...
http://img224.imageshack.us/img224/6830/grab00600ay1.th.jpg (http://img224.imageshack.us/my.php?image=grab00600ay1.jpg)
Portion of the left part is cropped and "stitched" to the right part...
Currently using rev2547...
leeperry
31st December 2008, 13:01
is there a way to zoom the picture in ffdshow/avisynth ?
I've tried the "Crop & zoom" ffdshow filter but it doesn't seem to work like the 3/9 keys in MPC.
Haali's Renderer internal scaler also does ghost lines with nvidia cards so I can't use it.
a "zoom" slider in the resize filter would be really great, so all the postprocessing would be done on the zoomed picture :)
I also would like to request the addition of a new condition, the screen resolution.
Why? Because I use two screens with my PC, my monitor and my projector, and I want to load different presets for them and the only thing that differentiate them are the screen resolution and refresh rate.
yeah, that'd be neato, I do 1280*768 resize on my pj and 1024*768 on my CRT...atm I've got a manual DOS batch that messes with the registry :
[HKEY_CURRENT_USER\Software\GNU\ffdshow\SD]
"resizeDx"=dword:00000400
[HKEY_CURRENT_USER\Software\GNU\ffdshow\SD]
"resizeDx"=dword:00000500
Pulstar
31st December 2008, 15:50
I know this has been asked before, but why doesn't the postproc option in ffdshow affect AVC videos? Is it because postproc is "builtin" in the H.264 spec? If that's the case is there a way to "strengthen" AVC postproc?
J_Darnley
31st December 2008, 17:23
No, altering the behaviour of AVC's in-loop filter can cause horrible artefacts because the filtered frames are used as the reference frames.
Snowknight26
31st December 2008, 20:39
When seeking through MPEG-2 content, libavcodec causes garbage for a couple frames (till a keyframe?); seeking is almost instant. With libmpeg2, seeking takes longer but there is no garbage.
Atak_Snajpera
31st December 2008, 22:21
FFDshow r2547 + Yadif (double frame rate unchecked) + this mpeg2 sample (http://www.mediafire.com/?inezy2yzjgi) = jerky frame rate (something like half of 29.97) . When I check double frame rate then frame rate is ok (59.94)
Pulstar
1st January 2009, 04:54
No, altering the behaviour of AVC's in-loop filter can cause horrible artefacts because the filtered frames are used as the reference frames.
Okay thanks for clearing it up for me! I thought the Youtube/Google MP4s looked a bit blocky even for <500kbps videos.
Dark Shikari
1st January 2009, 05:02
Okay thanks for clearing it up for me! I thought the Youtube/Google MP4s looked a bit blocky even for <500kbps videos.This is because skal's Youtube h.264 encoder uses an extremely low deblocking strength (as low as -6:-6) because he thinks it "looks better."
Blame him :p
Pulstar
1st January 2009, 05:18
This is because skal's Youtube h.264 encoder uses an extremely low deblocking strength (as low as -6:-6) because he thinks it "looks better."
Blame him :p
Hehe you bet I will blame him :p
EpsilonX
1st January 2009, 07:00
The Grab issue haven't been resolved yet, and I got another "problem"... :D
I currently have a 1 TS file with AAC Audio...
The show itself is 5.1 AAC, while the commercial is 2.0 AAC...
During playback, FFDShow didn't decode the AAC 2.0 at all...
So the commercial is muted...
Any workaround to this..?
Thanx !
lych_necross
1st January 2009, 07:46
Ever since yadif was added to ffdshow tryouts, I started thinking how nice it would be if Decomb was also incorporated. It would be very handy if users were able to inverse telecine video without having to use external plugins.
I had another idea also. I would like to see an option added to ffdshow's avisynth tab that automatically sets appropriate values for the "Buffer back/ahead" settings. Simply clicking the current button will change the values to what is currently requested; however, it would be nice if these values were determined automatically.
:thanks:
haruhiko_yamagata
1st January 2009, 11:19
I currently have a 1 TS file with AAC Audio...
The show itself is 5.1 AAC, while the commercial is 2.0 AAC...
During playback, FFDShow didn't decode the AAC 2.0 at all...
So the commercial is muted...
Any workaround to this..?
Thanx !It's a know issue to me, I have tried to fix it and given up.
Now that libavcodec can decode AAC (not in ffdshow), it may be a good idea to try it with libavcodec.
lexor
1st January 2009, 17:36
So the commercial is muted...
Any workaround to this..?
Thanx !
Umm... you don't like that the commercial is muted? I'd call that a feature, personally, and a very good one.
STaRGaZeR
1st January 2009, 19:04
When seeking through MPEG-2 content, libavcodec causes garbage for a couple frames (till a keyframe?); seeking is almost instant. With libmpeg2, seeking takes longer but there is no garbage.
After reading this post I gave libavcodec MPEG-2 another chance. And I'm very pleased with it so far. Haruhiko, I remember you saying that libavcodec requires 2 keyframes to resume after seeking, but even with that as Snowknight26 says it's faster. And I confirm there are some frames with blocking here too with all renderers after seeking.
Umm... you don't like that the commercial is muted? I'd call that a feature, personally, and a very good one.
Indeed :p
tal.aloni
1st January 2009, 23:23
EpsilonX, Thanks for bringing up the grab + resize bug,
it was my own doing, sorry.
I'm also sorry for the long time it took me to check it, my monitor went dead.
commited as rev. 2559:
+ Bugfix: ffdshow would crash when using the grab filter together with the resize filter with aspect ration correction
EpsilonX
2nd January 2009, 00:25
Umm... you don't like that the commercial is muted? I'd call that a feature, personally, and a very good one.
LOL...
In some way it's amazing... :D
But I happen to like the CM in Japanese show... :D
If I wanna skip the commercial, CoreAAC handles it very well...
When I use CoreAAC, somehow the video just fast forward when playing the CM part, and resumes normal playback speed when the commercial ends... :D
Kurtnoise
2nd January 2009, 08:44
According to the SVN log it was "incomplete".
keep in mind that the current lavc aac decoder doesn't support heaac v1 & heaac v2 yet. However, it's already included in ffdshow...;) So, why not wavpack too ?
Jeremy Duncan
2nd January 2009, 13:33
link (https://sourceforge.net/tracker/index.php?func=detail&aid=2436501&group_id=173941&atid=867363)
To the ffdshow developers. I have made a thread in the sourceforge website for a requested feature
:sly:
clsid
2nd January 2009, 14:21
I don't think it is a good idea to add functionality that only works half of the time. That is why I removed Wavpack in the past. As a result people are simply forced to use an alternative filter (that does work properly) instead of complaining to us about why it doesn't work.
tal.aloni
2nd January 2009, 15:23
@developers,
I'm struggling with making the "Max. Amplification" Textbox not to be applied immediately, do you have any idea how can I make the apply button enabled without binding the Max. Amplification textbox?
Thanks,
Tal
EDIT:
parent->setChange() seems to do the trick.
fastplayer
2nd January 2009, 15:37
@developers,
I'm struggling with making the "Max. Amplification" Textbox not to be applied immediately,...
Wouldn't it be better to remove the "on-the-fly" apply?
It goes against any UI guideline there is...
Edit: Never mind. I misread.
leeperry
2nd January 2009, 15:48
:sly:
I don't think it's the proper attitude to get anything done buddy ;)
I personally would love to see :
1)-proper OzoneMP support that doesn't freeze on new files(I've even asked a friend to make a debug winamp2 plugin in order to help Haruhiko..who told me that he saw what the problem was)
2)-a "screen resolution" condition in the profiles(as yesgrey3 suggested)
3)-have the subs less blurry(maybe let you choose how blurry you want them with a slider?)
...but Haruhiko has his own priorities, live with it or learn C++ :p
besides spline64 is said to be more ringy than spline36 I think...blackmanresize I can't tell.
but hopefully MT 0.7 will be updated for Avisynth 2.58, so you'll get native support for these 2 resize algorithms in ffdshow soon enough :cool:
tetsuo55
2nd January 2009, 16:17
I don't think it is a good idea to add functionality that only works half of the time. That is why I removed Wavpack in the past. As a result people are simply forced to use an alternative filter (that does work properly) instead of complaining to us about why it doesn't work.
Are all the wavpack bugs/lack of features known with the ffmpeg devs?
I respect that you wouldn't want to enable all possible decoders for all end users.
But having the decoder available also means more bug-reports for ffmpeg
(I mean this in general for all codecs not just wavpack which i personally do not use)
tal.aloni
2nd January 2009, 16:32
Applied as rev. 2562:
+ UI Improvement: Normalization filter: max. amplification will only be applied after pressing "apply". (or OK)
Patch:
http://iknowu.net/files/public/ffdshow/2662-Max%20Anplification.patch
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.