[mythtv] [PATCH] Video delay filter

Bryce Poole compengr3 at gmail.com
Fri May 6 23:56:14 UTC 2005


When I first got my Dish Network satellite, I immediately noticed that
the video was leading the audio.  So when myth was up and running I
wrote this filter to fix the problem and slow down the video.

The basic idea is that the filter gets passed a size from the TV
Playback screen along the lines of "delay=10" which translates into a
10 frame delay.  The filter then creates a dynamic ring buffer to hold
10 frames.  Each time the filter is called the oldest frame is
returned.

The file patch.diff includes the modification to the filters.pro file
which resides in the filters directory.  It just adds the delay
subdirectory to the project file.  The rest of the files are new and I
have added them in the delay.tgz file.  It contains the source in
filter_delay.c and the qt "pro" file.  They belong in the directory
filters/delay/.  Just run qmake in the directory to create the
makefile, then run make in the same directory and the library will be
created.  Then copy the library into the filters library, which is
/usr/lib/mythtv/filters for me.

Suggestions for improvement are welcome.

Bryce Poole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: delay.tgz
Type: application/x-gzip
Size: 1515 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050506/7ded6b55/delay.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 542 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050506/7ded6b55/patch.obj


More information about the mythtv-dev mailing list