- October 31, 2006
- 1,972
- 539
- Home Country
- Germany
Probably most of you haven't noticed this "sneaking" in since last public SVN snapshot
As i currently didn't get much testing feedback i encourage everyone who wants to test this
Hi,
for a long time i am thinking about how to get this great feature of TVE2 back in TVE3.
The problem:
If you are watching a movie on tv for lets say 20 minutes and have to leave, you hit record but -no wonder- the recording contains only the part from were you hit "record" till the end of the movie.
How it works with my patch in TVE3 and TvPlugin:
In the above described situation, tv server adds the timeshift buffer to the movie (subfolder "buffers") right after the recording has started.
It even honors the prerecording time and should also work if the already watched spans over several ts buffer files.
It constantly checks the running program and if a channel change happened or the next show begins in e.g. 7 minutes (DateTime.Now.AddMinutes((double)preRecordInterval) >= TVHome.Navigator.Channel.CurrentProgram.EndTime) it fetches the name of the current tsbuffer file and the position inside the file and when you hit record and the recording has started it does the same again and signals TvServer to move the tsbuffer(s) to the recording dir.
The patches are already in SVN BUT DISABLED by default
If you want to test nevertheless (which would be great) do the following
- Update to latest public snapshot
- Enable TvNotifier
- Create a text file c:\\EnableRecordingFromTimeshift.txt
Please do the first tests with only one buffer file.
Attached is a small tool which copies the buffers to the recording dir and renames all files in the pattern "*_Partx.ts" in the correct order so MP will playback the whole recording gapless.
The tool has 1 mandatory parameter and 1 optional.
Just start it without parameters in a console session to see the usage.
usage: RecordingBufferMerger.exe <recording filename> /MOVE_BUFFERS
- <recording filename> is the full path and filename of the recordings and mandatory
- "/MOVE_BUFFERS" is optional. If set, the buffer files are moved from the buffers dir, otherwise they are just copied
Some notes about the tool:
if you don't use comskip
=> enable the comskip plugin and under "start prog after recording finished" enter the path and file name of the tool + "{0}"
if you start comskip at the beginning of a recording
=> in the comskip plugin under "start prog after recording finished" enter the path and file name of the tool + "{0}"
if you start comskip at the end of a recording
=> create a small batch which start comskip and after that the tool and and configure that batch under "start prog after recording finished"
The batch could like
If you have problems with this feature, post bug reports here. If you encounter other bugs ALWAYS FIRST DISABLE THIS FEATURE AND THEN POST YOUR LOGS. NOBODY WILL LOOK AFTER GENERAL BUGS WHEN THIS FEATURE IS ENABLED
As i currently didn't get much testing feedback i encourage everyone who wants to test this
Hi,
for a long time i am thinking about how to get this great feature of TVE2 back in TVE3.
The problem:
If you are watching a movie on tv for lets say 20 minutes and have to leave, you hit record but -no wonder- the recording contains only the part from were you hit "record" till the end of the movie.
How it works with my patch in TVE3 and TvPlugin:
In the above described situation, tv server adds the timeshift buffer to the movie (subfolder "buffers") right after the recording has started.
It even honors the prerecording time and should also work if the already watched spans over several ts buffer files.
It constantly checks the running program and if a channel change happened or the next show begins in e.g. 7 minutes (DateTime.Now.AddMinutes((double)preRecordInterval) >= TVHome.Navigator.Channel.CurrentProgram.EndTime) it fetches the name of the current tsbuffer file and the position inside the file and when you hit record and the recording has started it does the same again and signals TvServer to move the tsbuffer(s) to the recording dir.
The patches are already in SVN BUT DISABLED by default
If you want to test nevertheless (which would be great) do the following
- Update to latest public snapshot
- Enable TvNotifier
- Create a text file c:\\EnableRecordingFromTimeshift.txt
Please do the first tests with only one buffer file.
Attached is a small tool which copies the buffers to the recording dir and renames all files in the pattern "*_Partx.ts" in the correct order so MP will playback the whole recording gapless.
The tool has 1 mandatory parameter and 1 optional.
Just start it without parameters in a console session to see the usage.
usage: RecordingBufferMerger.exe <recording filename> /MOVE_BUFFERS
- <recording filename> is the full path and filename of the recordings and mandatory
- "/MOVE_BUFFERS" is optional. If set, the buffer files are moved from the buffers dir, otherwise they are just copied
Some notes about the tool:
if you don't use comskip
=> enable the comskip plugin and under "start prog after recording finished" enter the path and file name of the tool + "{0}"
if you start comskip at the beginning of a recording
=> in the comskip plugin under "start prog after recording finished" enter the path and file name of the tool + "{0}"
if you start comskip at the end of a recording
=> create a small batch which start comskip and after that the tool and and configure that batch under "start prog after recording finished"
The batch could like
Code:
@echo off
C:\Program files\comskip\comskip.exe "%1"
C:\Program Files\Team Mediaportal\Tools\RecordingBufferMerger.exe "%1" /MOVE_BUFFERS
If you have problems with this feature, post bug reports here. If you encounter other bugs ALWAYS FIRST DISABLE THIS FEATURE AND THEN POST YOUR LOGS. NOBODY WILL LOOK AFTER GENERAL BUGS WHEN THIS FEATURE IS ENABLED