Author Topic: Automatic screenshots for mpeg-ts files  (Read 12463 times)

0 Members and 1 Guest are viewing this topic.

Offline marty

  • Member
  • *
  • Posts: 8
    • View Profile
Automatic screenshots for mpeg-ts files
« 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

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Automatic screenshots for mpeg-ts files
« Reply #1 on: April 04, 2013, 11:39:42 pm »
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
Gentlemen, you can’t fight in here! This is the War Room!

Offline marty

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Automatic screenshots for mpeg-ts files
« Reply #2 on: April 05, 2013, 03:04:11 pm »
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

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Automatic screenshots for mpeg-ts files
« Reply #3 on: April 05, 2013, 06:52:35 pm »
Can you upload a sample file somewhere?
Gentlemen, you can’t fight in here! This is the War Room!

Offline marty

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Automatic screenshots for mpeg-ts files
« Reply #4 on: April 06, 2013, 12:45:24 pm »

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Automatic screenshots for mpeg-ts files
« Reply #5 on: April 06, 2013, 10:31:56 pm »
Thx for the sample. I could find what was going wrong and will fix the problem in the next update.
Gentlemen, you can’t fight in here! This is the War Room!

Offline marty

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Automatic screenshots for mpeg-ts files
« Reply #6 on: April 07, 2013, 09:11:11 pm »
Thank you nostra - my donation is on its way ...
marty

Offline marty

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Automatic screenshots for mpeg-ts files
« Reply #7 on: April 13, 2013, 06:21:17 pm »
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".

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Automatic screenshots for mpeg-ts files
« Reply #8 on: April 13, 2013, 09:58:34 pm »
OK, I'll check what is going on with 4GB+ size files before release.
Gentlemen, you can’t fight in here! This is the War Room!

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Automatic screenshots for mpeg-ts files
« Reply #9 on: April 15, 2013, 10:16:38 pm »
Well, I can reproduce the problems with 4GB+ TS files, but can't find a solution yet :(
Gentlemen, you can’t fight in here! This is the War Room!

Offline Runawaygeek

  • Member
  • *
  • Posts: 1
    • View Profile
Re: Automatic screenshots for mpeg-ts files
« Reply #10 on: August 28, 2013, 04:28:05 pm »
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
« Last Edit: August 29, 2013, 10:31:04 am by Runawaygeek »

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Automatic screenshots for mpeg-ts files
« Reply #11 on: September 27, 2013, 09:43:13 pm »
I am already using the -ss parameter, so it may work in PVD itself if you use the latest ffmpeg.exe
Gentlemen, you can’t fight in here! This is the War Room!

 

anything