Hi,
I've added some stuff to PostProcessing.bat to generate a preview image of the recorded show. The resulting jpg image is stored in the same directory as the recording, and shows up nicely in the recording list view (if in "large" mode).
However, when I delete the show, the image is not deleted. Not a big problem, but would it be possible to delete everything that has the same base-name as the show (e.g. CSI_20070701_22002300)? It does delete all comskip related files (.log and .txt) so I thought that when deleting a show it deleted <showname>.*...
TIA
P.S
For those of you that are interested, and know your way around a batch file, this is in my PostProcessing.bat to generate the preview image. (This has maybe already been posted, but what the hey...)
As you can see I select a snapshot image 8 minutes into the show, so you may want to change that to your liking. You need ffmpeg for this, but I think it is (was?) distributed with gbpvr, correct me if I'm wrong sub...
The resulting image is in the same resolution/size as the video, but it is scaled down when displayed in the recordings view. If you're picky, you could of course process the image further with some other tool to resize it to use less disk space...
@echo off
REM Enable Command Extensions
SETLOCAL ENABLEEXTENSIONS
REM Extract show name
REM Expand argument to get rid of any quotes
set tmpshow=%~1
REM Strip .mpg from filename
set show=%tmpshow:~0,-4%
REM Call ffmpeg
REM -i = input mpg
REM -f = output file type
REM -ss = where to start in mpg (hh:mms) Higher value means longer processtime,
REM since ffmpeg seems to process up to this point first...
REM -t = how long part of mpg to process
"d:\programs\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -i "%show%.mpg" -f mjpeg -ss 00:08:00 -t 0.001 "%show%.jpg"
I've added some stuff to PostProcessing.bat to generate a preview image of the recorded show. The resulting jpg image is stored in the same directory as the recording, and shows up nicely in the recording list view (if in "large" mode).
However, when I delete the show, the image is not deleted. Not a big problem, but would it be possible to delete everything that has the same base-name as the show (e.g. CSI_20070701_22002300)? It does delete all comskip related files (.log and .txt) so I thought that when deleting a show it deleted <showname>.*...
TIA
P.S
For those of you that are interested, and know your way around a batch file, this is in my PostProcessing.bat to generate the preview image. (This has maybe already been posted, but what the hey...)
As you can see I select a snapshot image 8 minutes into the show, so you may want to change that to your liking. You need ffmpeg for this, but I think it is (was?) distributed with gbpvr, correct me if I'm wrong sub...
The resulting image is in the same resolution/size as the video, but it is scaled down when displayed in the recordings view. If you're picky, you could of course process the image further with some other tool to resize it to use less disk space...
@echo off
REM Enable Command Extensions
SETLOCAL ENABLEEXTENSIONS
REM Extract show name
REM Expand argument to get rid of any quotes
set tmpshow=%~1
REM Strip .mpg from filename
set show=%tmpshow:~0,-4%
REM Call ffmpeg
REM -i = input mpg
REM -f = output file type
REM -ss = where to start in mpg (hh:mms) Higher value means longer processtime,
REM since ffmpeg seems to process up to this point first...
REM -t = how long part of mpg to process
"d:\programs\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -i "%show%.mpg" -f mjpeg -ss 00:08:00 -t 0.001 "%show%.jpg"