NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 70 71 72 73 74 … 93 Next »
Using MPEG-VCR with Comskip

 
  • 0 Vote(s) - 0 Average
Using MPEG-VCR with Comskip
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#21
2005-05-30, 05:53 AM
WOuld it be possible to post the .txt file generated with comskip?
You can test the script also standalone and run it from a DOS window inside the gbpvr home directory like

postprocessing.bat "c:\directory\path\filename.mpg"

If you put a REM before the comskip it will use the already generated .txt file.
I will have a look at it later today.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#22
2005-05-30, 02:27 PM
I have tested your postprocessing.bat and it runs as it should!

To make sure your comskip did run and the output .txt file can be found please insert the following two lines directly after the line that runs comskip

if NOT EXIST "%~dpn1.txt" echo >>comskip.log Error: "%~dpn1.txt" does not exist
if NOT EXIST "%~dpn1.txt" goto :eof


The file comskip.log (if existing afterwards) will tell you what file could not be found.
Hope this helps....

Anyway, in your post of yesterday you quoted the following .wme file

#
CLIPLIST: #1 show
CLIP: D:\Boy Meets World\Boy Meets World_20050529_10391104.mpg
6 0 19693 1 192 0 1 224 0 0 0 0 0 0
CLIPLIST: #2 commercial
CLIP: D:\Boy Meets World\Boy Meets World_20050529_10391104.mpg
6 19693 7917 1 192 0 1 224 0 0 0 0 0 0
CLIPLIST: #3 show
CLIP: D:\Boy Meets World\Boy Meets World_20050529_10391104.mpg
6 27610 1000000 1 192 0 1 224 0 0 0 0 0 0

This is a correct.wme file!!!!


You have to load it into MPEG-VCR from the menu
File/Load editor project to clipboard
After loading you see three clips on your clipboard.
Use the command View/Details view to get a better readable list of clips.
Now you can review each of the clips and combine them in one.

But watch out!!!!!
The part of the lines in .wme that says "1 192 0 1 224 0 0 0 0 0 0" depends on the content of the MPEG file.
Please use MPEG-VCR to find out if they are correct. (the file information (+) button at the right bottom part of the clip window when you open the .mpg file in MPEG-VCR)
The 192 stands for MPEG layer-2 audio
The 224 stands for MPEG-2 variable bitrate video
If you record something else you must change these numbers otherwise MPEG-VCR will try to read the incrrect stream from the MPEG file and your clips will appear to be empty.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#23
2005-05-30, 02:50 PM
I opened Womble, and selected File, Load editor project, and it does nothing.
I will run another test, including the code above, and post back with the comskip log and the txt.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#24
2005-05-30, 03:11 PM
I think I have found the problem.
The .wme file contains the original mpg name, such as: d:\mytvshow\mytvshow_20050530_0800-0830.mpg
Rename recording then renames it to something like this:
d:\mytvshow\episodename.mpg
The .wme file does not find the file, because it's been renamed.
I may have to run renamerecording BEFORE the .wme bat...
This should work (I think).
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#25
2005-05-30, 03:22 PM
make sure the you change the %~dpn1 to something where the renamed file can be found.
Otherwise it will fail...
If you can not predict the new name it all becomes very difficult.....
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#26
2005-05-30, 04:23 PM
Just how would I do that?
I really need the episode name, so I do need to have renamerecording running.
Preferrably BEFORE comskip.
I tried renamerecording before the .bat and it didn't work, because the .bat couldn't find the renamed file (I guess).
Is there a way to run these two together somehow?
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#27
2005-05-30, 04:45 PM
I also added this:

rem this Should delete the x.tmp file...
IF EXIST x.tmp DEL x.tmp |y


right before the REM DONE line, to delete the x.tmp
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#28
2005-05-30, 06:40 PM
I would recommend then to first run renamerecording.
Then to scan all your directories for .mpg files without a .txt file.
Run comskip on those .mpg files and run the .txt to .wme script.

An example script to scan a direcory see below
You can run it from postprocessing.bat, does not take much CPU time. (I did not test it, just typed it....)
-------------------------------------------------------
for %%f in (c:\mydirectory\*.mpg) do call :menc "%%f"
goto :eof

:menc
if EXIST "%~dpn1.txt" goto :nocomskip
comskip.exe "%~dpn1.mpg"
:nocomskip
if EXIST "%~dpn1.wme" goto :nowme
Rem this is your old postprocessing.bat without the comskip or the renamerecording
convert2wme "%~dpn1.txt"
:nowme
:eof
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#29
2005-05-30, 06:59 PM
That may work, however...I must save shows, each in their own folder (the gbpvr setting).
I suppose I could add multiple lines to scan multiple folders, but it would be nice if it just scanned all SUB-folders of the main recording folder.

Call me an idiot, but I have no idea how to implement the code you just typed.
Where does it go?
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#30
2005-05-30, 07:53 PM
OK,

In your new postprocessing.bat you have (excuse the typo's)
---------------------------------- postprocessing.bat start
comskip.exe %1
renamerecording %1

rem The next For command will recursively walk all subdirectories below c:\root_of_video and execute the :menc for all .txt files present.
rem Kind of brute force approach, who cares....
for /R d:\root_of_video\ %%f (*.txt) do call :menc "%%f"
goto :eof

:menc
rem Don't do anything if the .wme is already present.
if EXIST "%~dpn1.wme" goto :eof
Rem this is your old postprocessing.bat without the comskip or the renamerecording
convert2wme "%~dpn1.txt"


:eof
---------------------------------- postprocessing.bat end

YOur old postprocessing.bat is renamed to convert2wme.bat and with deleted comskip, renamerecording or others.
Its sole purpose in life is to convert a found .txt file into a .wme file.

Walking the subdirecftories of your video collection will not take too much time (unless you have 1000+ directories Smile )
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mpeg-dash bgowland 2 2,291 2013-09-26, 05:43 PM
Last Post: bgowland
  Any interrest for a Comskip version that can decode VBI/CC from TS or DVR-MS? erik 10 4,120 2008-05-17, 08:10 PM
Last Post: erik
  Determining the comskip rate. pastro 2 1,577 2007-10-07, 08:05 PM
Last Post: pastro
  DVD to MPEG - target drive other than C:? MarkD 2 1,465 2006-11-12, 10:29 PM
Last Post: MarkD
  vb6, get WxH of Avi and Mpeg zehd 2 1,809 2006-06-13, 11:39 PM
Last Post: zehd
  Comskip: Can some upload short DVR-MS exmaples to test the DVR-MS input of Comskip erik 1 1,391 2006-03-25, 06:21 PM
Last Post: -stattik-
  Comskip: What next? erik 0 1,514 2006-03-15, 09:51 PM
Last Post: erik
  Looking for Comskip tester for DVB or ATSC TS input erik 3 1,880 2006-01-30, 08:32 PM
Last Post: hazydave
  Looking for a logo for Comskip erik 3 1,958 2006-01-05, 12:23 AM
Last Post: jbyram2
  Connect MPEG-2 demux filter in Directshow graph? bgowland 3 6,149 2006-01-01, 04:16 PM
Last Post: funkybro_uk

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

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

Linear Mode
Threaded Mode