Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

[solved] Control FFDShow (subtitles' delay)

If you have a question or need help, this is the place to be.
Post Reply
Bicou
Posts: 15
Joined: Tue Sep 12, 2006 2:51 pm

[solved] Control FFDShow (subtitles' delay)

Post by Bicou »

Hi.. err, I ask many questions here, I hope you don't mind :P

I watch many TV shows, most of them with subtitles, and some of them are not perfectly sync'd. Actually in a 40min episode, there are about 4 or 5 ad breaks, and each time I have to delay my subs, and I would like to do that with my remote control (of course! :P)

I saw there's a FFDShow plugin for EventGhost, but it does not seem to do what I want. Moreover, it does not find ffdshow's instance.
I tried to look at FFDShow's source code, but I did not find what I was looking for, kind of a function that listens to Windows messages that EventGhost would send.

I know that the "problem" may be that FFDShow can't be controlled, but maybe there's a way to improve the EG's plugin so that it can control subtitles delay.

I hope I made myself clear

thanks
Last edited by Bicou on Sat Jun 16, 2007 6:42 pm, edited 1 time in total.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

The ffdshow plugin was only a quick hack. I only have used it to switch presets.

I don't know if ffdshow exposes this value. The way they have implemented the API makes it very hard to be up to date of the possible settings. Maybe you can ask at ffdshow-tryout if this should be possible.
http://ffdshow-tryout.sourceforge.net/phpBB2/
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
hugbug
Posts: 1
Joined: Wed Jun 13, 2007 7:42 pm

Post by hugbug »

I watch TV shows and movies with subtitles for about two last years. So I can say I have a big expierence here :)

I would recommend to use an appropriate player.

I used BSPlayer first. Then I found KMPlayer. The author of this player was so nice to implement almoust every my request regarding subtitles support.
Now I think KMPlayer has the best support for subtitles among all other players. The most important things are:
- loading subtiles via special menu with large fonts with navigation suitable for Remote;
- syncing with large or small steps;
- converting playrate from 25fps to 23.976fps and vise versa;
All these actions can be called via hotkeys and therefore with Remote via Eventghost.
Bicou
Posts: 15
Joined: Tue Sep 12, 2006 2:51 pm

Post by Bicou »

I tested KMPlayer, and I don't really like it.. too many options, and the UI is a bit buggy.
Anyway I browsed the forum BitMonster linked and I read that topic: http://ffdshow-tryout.sourceforge.net/p ... =subtitles
I did not understand all of it... is EG able to control FFDShow-tryout atm? Is there a quick hack that would make EG able to?

Thanks again
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Well, the problem is to find the right parameter. The source is not very readable, as the constants are somewhat spread all over it. But maybe in the newer versions it is a bit easier to find them.

What I currently don't understand is how ffdshow would get the subtitles. Is there VobSub involved somewhere or does it load them itself? Zoom Player has an option to increase/decrease the delay for VobSub also, that can be controlled through the ZP plugin.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Ok, I found the constant for the subtitle delay. 0.3.6.999 includes the actions "Get/Set/Change subtitle delay". All times are milliseconds.

Note that you have to enable "Remote control API" under "Keys & remote" in ffdshow and also set the option to "ffdshow_remote_message".
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Bicou
Posts: 15
Joined: Tue Sep 12, 2006 2:51 pm

Post by Bicou »

It doesn't seem to be working : I put something like that :
- <my remote control key>
- Get Subtitle Delay
- Show OSD: Delay={int(eg.result)} ms

But it always shows 0 ms even if I change the delay myself in FFDShow configuration

I tried that :
- <key>
- Get Subtitle Delay
- Set Subtitle Delay {int(eg.result)-100}

But this doesn't change the delay. I did check Keys&Remote, Remote Control API and ffdshow_remote_message.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Which version of ffdshow are you using? Ffdshow must already be running before can be controlled. You can simply use "Change Subtitle Delay" to relatively modify the value. If you have the ffdshow configuration window open, you must switch a page to see an updated value (it doesn't live update the GUI).
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Bicou
Posts: 15
Joined: Tue Sep 12, 2006 2:51 pm

Post by Bicou »

Oh, indeed it works that way. I understood why nothing had been updated during my first test: I added the "Set Subtitle Delay" action, tried to type something like "{int(eg.value)}" but the input only accepts numbers, so I put 0; then I renamed the action to "ffdshow: Set Subtitle Delay: {int(eg.result)-100}". I believed it modified the calculation, but I think it's only a name? and inside the action it's still 0?

Would it be possible to adjust the delay by +/- 100 ms for instance? (instead of a fixed value)
Last edited by Bicou on Sat Jun 16, 2007 6:36 pm, edited 1 time in total.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Bicou wrote:Would it be possible to adjust the delay by +/- 100 ms for instance?
"Change Subtitle Delay"
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Bicou
Posts: 15
Joined: Tue Sep 12, 2006 2:51 pm

Post by Bicou »

I am such a moron...

Anyway thank you very much, it's really cool of you to help me and to add very good features.
Bicou
Posts: 15
Joined: Tue Sep 12, 2006 2:51 pm

Post by Bicou »

This feature is just awesome. I love you.
Post Reply