NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 486 487 488 489 490 … 1231 Next »
thumbnails from video files

 
  • 0 Vote(s) - 0 Average
thumbnails from video files
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#21
2007-07-31, 02:52 PM
pBS Wrote:ahhh,it's cuz you had the vframes 1 after the input file..
as i understand it, the new ffmpeg syntax changed to having all parameters before their intended target, so the input options have to be before the -i and all output opts just before the output, or at least has to be after the input..

[input opts] -i file [output opts] outputfile
so the vframes needs to be before the input, and sizing after the input..

glad it works well for you now..really comes in handy..Big Grin

My gawd man, do you have a life? Big Grin

(like I'm really one to talk)

It's something that I never knew or paid attention to. I'll be updating my commandlines. Thanks
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#22
2007-07-31, 08:18 PM
of course not...especially now that my car is in the shop...again...grrr..
had someone replace the clutch, and it would have helped if they knew what they were doing, so they screwed my gearbox up too..
so back into another shop to fix that...Sad

i knew i shoulda just done it myself..

[and that batch didn't take 5 mins, i already had it worked out for showburner..hehe]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
gkovacsp
Offline

Member

Posts: 62
Threads: 15
Joined: Mar 2007
#23
2007-08-17, 09:41 PM
pBS Wrote:usage: save as snap.bat and type [snap.bat filename.mpg]

Would this work, if I simply put it into my PostProcessing.bat file?

Would it be a simple copy-paste?
gkovacsp
Offline

Member

Posts: 62
Threads: 15
Joined: Mar 2007
#24
2007-08-17, 10:03 PM
Appearantly it does, but it is not executed, if I STOP the recording, only if it ends naturally.
gkovacsp
Offline

Member

Posts: 62
Threads: 15
Joined: Mar 2007
#25
2007-08-25, 12:52 PM (This post was last modified: 2007-08-25, 04:21 PM by gkovacsp.)
Now I may look stupid after my two previous posts, but the previews are not created automatically after a recording, if I copy/paste the script lines into the postprocessing.bat file's end.

Anyone any idea, why doesn't it work?

here is the complete script:
Code:
@echo off
Rem PostProcessing.bat
Rem This script will be run automatically by GBPVR when found after a recording is finished
Rem To enable it put this file inside your GBPVR default program directory (C:\Program Files\devnz\gbpvr\)
Rem together with Comskip.exe, Comskip.ini and Comskip.dictionary
Rem The script is called with two parameters
Rem %1 is the fully qualified name of the recorded mpeg file.
Rem %2 is the channel number of the recording
echo Postprocessing.bat invoked on %1 recorded from channel %2 >>postprocessing.log

Rem The part below can be used to not run Comskip on certain channels, please modify for your conveniance.
Rem The channel numbers that should be skipped are the numbers between the double quotes ("").
Rem You can add "if" lines as much as you want
Rem To disable this behaviour use channel numbers outside the normal range, put a "rem" before the "if" or delete the "if" lines

Rem list of channels to not run comskip on
rem if "%2" == "27" goto eof
rem if "%2" == "36" goto eof

Rem this trick also makes it possible to have dedicated comskip.ini file for certain channels.
rem if "%2" == "79" goto channel79
rem if "%2" == "72" goto channel72
rem if "%2" == "65" goto channel65
Rem use the default comskip.ini for all other channels
goto generic

:channel79
comskip --ini=channel79.ini %1
goto continue
:channel72
comskip --ini=channel72.ini %1
goto continue
:channel65
rem This is an example of how to reuse a previously learned logo to prevent Comskip from learning the wrong logo
comskip --ini=channel65.ini --logo=channel65.logo.txt %1
goto continue

:generic
Rem The actual run of Comskip. Only one parameter, the name of the mpeg file to process.
Rem Comskip will read its settings from the Comskip.ini found in the same directory as Comskip.exe
Rem Both are supposed to be in the GBPVR default program directory. (C:\Program Files\devnz\gbpvr\)
comskip %1
:continue

Rem Once the commercials have been identified you can run comclean to delete the commercials from the recording.
Rem Do this only when you are not using the Skip function in the GBPVR viewer.
Rem To enable comclean remove the word "Rem" from the following line.
rem call comclean %1
:eof

rem auto creare snapshot about movie
@echo off
cls
rem     Set "line" to comskip break # you want, starting at line 3 for first commercial..4 for second,etc..
set line=4
set seconds=120
if exist "%~dpn1.txt" for /f "usebackq tokens=1,2 skip=%line%" %%c in ("%~dpn1.txt") do (
::          Adjust below line for exact snap time, i use + 2 as + 0 usually is black frame..
set /a seconds= %%d * 100 / 2997 + 2
goto :next
)    
:next
echo.
Echo Snapping from %seconds% into movie.
echo.
"C:\Program Files\gbpvr\Third Party\FFmpeg\ffmpeg.exe"  -y -ss %seconds% -vframes 2  -i "%~1" -f image2  "%~dpn1.jpg"
echo.
echo Done! "%~dpn1.jpg" %seconds%
rem START "image" "%~dpn1.jpg"
rem use the START image line to auto-view it afterwards...

My GBPVR is in "C:\Program Files\gbpvr".

In case I put it in a separate bat file and drop a video file on it, then the preview is created.

I'm puzzled.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#26
2007-08-25, 05:18 PM (This post was last modified: 2007-08-25, 05:30 PM by JavaWiz.)
Not sure about your setup, but if it is like mine, then it looks like your path may be wrong:


"C:\Program Files\gbpvr\Third Party\FFmpeg\ffmpeg.exe"

should be:

"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe"

[EDIT]: just read the bottom of your post, looks like the directory is ok,

You may have to log some detail to figure out what's going on.

I would suggest the following changes:
Code:
"C:\Program Files\gbpvr\Third Party\FFmpeg\ffmpeg.exe"  -y -ss %seconds% -vframes 2  -i "%~1" -f image2  "%~dpn1.jpg" [B]>>postprocessing.log 2>&1[/B]

This will cause all the output from the FFMPEG program to be put into postprocessing.log thus allowing you to see better what is going on.
gkovacsp
Offline

Member

Posts: 62
Threads: 15
Joined: Mar 2007
#27
2007-08-26, 08:29 AM
I downloaded ffdshow and installed it separately from gbpvr, I have the screenshots now.

I'll see if it keeps on working.

Thanks for the help on the logging, that might be good later.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  Composite Source using Hauppauge PVR500 gives sound but no video DukeBrymin 1 3,051 2012-02-03, 02:41 AM
Last Post: slowtech
  Two Channels Without Video skycyclepilot 5 3,523 2011-10-29, 07:49 PM
Last Post: sub
  Zehd's Video Library Slick Skin Snooze 0 2,237 2011-09-03, 01:09 AM
Last Post: Snooze
  New Machine (probably old problems), Video Render Options jvcleave 12 5,406 2011-02-01, 08:37 AM
Last Post: stustunz
  No Video in PVRX2 GUI TonySmith35 13 4,962 2011-01-09, 10:31 PM
Last Post: steevo
  0 sized files pjm460 4 2,045 2010-12-17, 05:15 PM
Last Post: sub
  Zero-size recording files rawlings471 1 1,652 2010-12-05, 04:12 PM
Last Post: sub
  original files not deleting David B 2 1,716 2010-11-28, 07:22 PM
Last Post: David B
  Attempts to play .dvd files in Video Library results in PVRX2 not responding Jwbrit 2 2,036 2010-11-04, 11:37 PM
Last Post: Jwbrit
  Resolution Issues when re-encoding captured video bgrieb 5 2,934 2010-11-02, 03:52 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode