Personal Video Database
English => Support => Topic started by: marty on April 01, 2013, 10:51:39 am
-
Hi everybody,
using and loving this fine piece of software one of the most useful features for me is "Automatically create screenshots". It worked fine when I recorded my TV-movies as mpeg-2 files. When I changed my current recordings to the *.ts container format (containing mpeg-2=h.262 or mpeg-4=h.264 files) the automatic screenshots don't work while manually screenshots are still possibly.
I use the latest ffmpeg static build and pvd 0.9.9.21 (also tried the pvd-beta).
Does anybody has an idea?
Thanks!
Marty
-
Try updating the ffmpeg utility
http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-latest-win32-static.7z
Copy ffmpeg.exe to the [PVD Installation folder]\ffmpeg
-
Nostra, thanks for your reply - but nothing changed. It still only works for *.mpeg, not for *.ts.
Renaming my *.ts files to *.mpeg doesn't work neither (ts-containers contain mpeg files as far as I know).
marty
-
Can you upload a sample file somewhere?
-
Here is a 5-minute MPEG-2 sample:
http://freakshare.com/files/ubq9zhgj/Sample_MPEG-2_TS.ts.html
-
Thx for the sample. I could find what was going wrong and will fix the problem in the next update.
-
Thank you nostra - my donation is on its way ...
marty
-
Just downloaded today's RC 1.0.2.5 and tried it on 30 movies taking 6 screenshots each movie.
"Automatic Screenshots" works fine on ts-files (mpeg-2 and AVC) under 4 GB. THANK YOU!
On material over ca. 4 GB I very often got only two different pictures, the second one was repeated four times. This happened with mpeg-2 and AVC material, so I guess "size matters".
Some AVC material over 4 GB had instead of repeated pictures grey, black or green "screenhots".
-
OK, I'll check what is going on with 4GB+ size files before release.
-
Well, I can reproduce the problems with 4GB+ TS files, but can't find a solution yet :(
-
Hi, did you find a solution to this? i have 20gb .ts files, around 30 in a go and i wish to take a screen shot at 90 seconds in, i also wish to do this as a batch
I have the most up to date FFmeg a the time of this post,
my code is
IF EXIST "%~d1%~p1%#n1.jpg" GOTO exit
ffmpeg.exe -itsoffset -90 -i "%~d1%~p1%#n1.ts" -vcodec mjpeg -vframes 1 -an -f rawvideo -s 640x360 "%~d1%~p1%#n1.jpg"
:exit
i know this is prob very wrong.. can any one help?
thanks.
UPDATE:
To work with the bigger files you need to have -ss before the -i, this stops it trying to cache the media before your time point and it just skips it and goes direct.
My code (which now works) is:
FILEPUSH.BAT (this pushes the files with .ts extension to the FFMPEG batch)
FOR %%i IN (*.ts) DO (FFMpegBatch_V1.0.bat "%%i")
FFMpegBatch_V1.0.BAT
IF EXIST "%~d1%~p1%~n1.jpg" GOTO exit
@echo ————————— >> “%~d1%~p1%convert.log”
@echo Conversion for %1 started on %DATE% %TIME% >> “%~d1%~p1%convert.log”
ffmpeg.exe -ss 45 -i "%~d1%~p1%~n1.ts" -vcodec mjpeg -vframes 1 -an -f rawvideo -s 640x360 "%~d1%~p1%~n1.jpg"
@echo ————– DONE – SUCCESS ———————- >> “%~d1%~p1%convert.log”
:exit
@echo ——————————– >> “%~d1%~p1%convert.log”
@echo “%~d1%~p1%~n1.mpg” already exists >> “%~d1%~p1%convert.log”
You dont really need all the log stuff, just the line with ffmpeg.exe (you only need the .exe if in xp) you also dont need the %~d1%~p1 as this is only for the log, but you will need %~n1 as this creates the jpeg in the same name as the video file.
All this is run in the same folder as the videos, saves having to write about paths etc.. and you need to make sure that ffmpeg.exe is in the same folder as the video and these 2 batch files.
Thanks
PS worked on 50x20gb+ .ts files in about 40seconds
-
I am already using the -ss parameter, so it may work in PVD itself if you use the latest ffmpeg.exe