#635 Action rules

Next_Release
open
nobody
None
5
2016-03-28
2016-03-28
No

Hello,

currently, if I play a movie, I have many things to configure. I change the refresh rate of my graphic cards with xrandr to the rate of the movie. Optionally, I add an additional parameter to mplayer to run 23.976 as 24hz. Because I use a multichannel sound card for 5.0 audio, I had to downmix the audio from 5.1 to 5.0. If the source is 6.1, 7.1 or 1.0, I had to change the mixing.

I think, it should be possible do these configurations automatically, based on the media encoding.

In my option the most convient method to users would be to define "action rules" comparable to filter rules in email programs.

Here is an example, how I would define a rule:

Conditions
media.video.vertRefresh = 23.976
Actions
x.refresh = 24
mplayer.addParam = -speed 1.001001001 -af scaletempo

Alternatively:

Conditions
media.video.vertRefresh = 23.976
Actions
shell.execute = xrandr -r 24
mplayer.addParam = -speed 1.001001001 -af scaletempo

I suggest following fields, operators and actions:

Fields
media.video.resolutionX
media.video.resolutionY
media.video.vertRefresh
media.audio.channels
media.audio.bitrate
media.audio.samplerate
media.file.name

Operators
=, <=, <, >=, >, contains

Actions
x.refresh = <param by="" user="" -="" changes="" the="" vertical="" refresh="" frequency="">
x.resolution = <param by="" user="" -="" changes="" the="" resolution="">
mplayer.addParam = <param by="" user="" -="" adds="" parameters="" to="" the="" mplayer="">
shell.execute = <param by="" user="" -="" command="" or="" shell="" script="" to="" do="" some="" dark="" magic="">

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks