NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 47 48 49 50 51 … 56 Next »
New plugin: Convert2wme 0.0.0 for MPEG-VCR

 
  • 0 Vote(s) - 0 Average
New plugin: Convert2wme 0.0.0 for MPEG-VCR
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#1
2005-06-01, 09:37 AM
This is my second plugin
it can be downloaded here

The plugin will convert the .txt file generated by comskip to a .wme file used by Womble MPEG-VCR as a cliplist.

When a new comskip (or ShowAnalyzer) is available that can generate .wme files there will be no more need for this plugin.

The plugin includes a convert2wme.bat file that can be used to convert already existing comskip .txt files to .wme files.

Instalation:

Copy convert2wme.bat to your gbpvr home dir and study the example postprocessing.bat on how to use this script.

Thanks to reboot for the testing Smile
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
#2
2005-06-01, 04:13 PM
Now...another request...could you do the same thing for a Cuttermaran project file? (*.cpf)
It uses xml...here's an example of a movie, containing two audio tracks, with two chunks edited:
Quote:<?xml version="1.0" standalone="yes"?>
<StateData xmlns="http://cuttermaran.kickme.to/StateData.xsd">
<usedVideoFiles FileID="0" FileName="G:\!Videowork\video.m2v" />
<usedAudioFiles FileID="4" FileName="G:\!Videowork\video.ac3" StartDelay="0" />
<usedAudioFiles FileID="5" FileName="G:\!Videowork\video.wav" StartDelay="0" />
<CutElements refVideoFile="0" StartPosition="2222" EndPosition="3424">
<cutAudioFiles refAudioFile="4" />
<cutAudioFiles refAudioFile="5" />
</CutElements>
<CutElements refVideoFile="0" StartPosition="7642" EndPosition="14722">
<cutAudioFiles refAudioFile="4" />
<cutAudioFiles refAudioFile="5" />
</CutElements>
<CurrentFiles refVideoFiles="0">
<currentAudioFiles refAudioFiles="4" />
<currentAudioFiles refAudioFiles="5" />
</CurrentFiles>
</StateData>
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
#3
2005-06-01, 05:39 PM
It looks rather simple but.....

I tried cutterman but the problem is that its so time consuming to use.
You first have to split, then to use cuttermaran and then to combine again.
What's te advantage against womble?

The fact that cuttermaran does have a cut list is good but for me its slower.
Or is there a better way to use cuttermaran?

I would be more motivated if I understand why I should work on it.
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
#4
2005-06-01, 06:19 PM
Cuttermaran is free (something that's always good!), and does an excellent job at frameaccurate cuts.
It's not any more difficult to use than womble, once you get used to it.
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
#5
2005-06-01, 07:41 PM
Reboot,

This shoud do it.
Put the code text inside a convert2cpf.bat file (just like conver2wme.bat)
To test it I demuxed a file with woble into a .mpv video file and a .mpa audio file.
I assume them to be in the same directory as the .txt file.

When i try this with cuttermaran if starts to scan the files on loading the project (VERY slow on my 400mHz gbpvr system), how to skip this?
Then when trying to preview the cuts is say "missing filename" so no preview.
And I can;t get the output to work. I fooled the mixer to use profile 3 (generic MPEG) but no sound in the output file.
Help please?


Code:
rem Convert2cpf.bat Version 0.0.0

rem Initialize the variables
set start=1
rem Create the cliplist
echo ^<?xml version="1.0" standalone="yes"?^>  >x.wme
echo ^<StateData xmlns="http://cuttermaran.kickme.to/StateData.xsd"^> >>x.wme
echo ^<usedVideoFiles FileID="0" FileName="%~dpn1.mpv" /^> >>x.wme
echo ^<usedAudioFiles FileID="2" FileName="%~dpn1.mpa" StartDelay="0" /^> >>x.wme

rem Process all the lines from the Comskip output file
for /F "usebackq tokens=1,2,3*" %%i in ("%~dpn1.txt") do call :processline %%i %%j "%%~dpn1"

rem Last part of the file
echo   ^<CurrentFiles refVideoFiles="0" ^> ^<currentAudioFiles refAudioFiles="2" /^> ^</CurrentFiles^> ^</StateData^> >>x.wme
rem Rename the output file
move x.wme "%~dpn1.cpf"
rem Done.

goto :eof

:processline
rem Skip useless lines
if "%1"=="FILE" goto :eof
if "%1"=="-------------------" goto :eof
rem Output the clip information for the show part
echo ^<CutElements refVideoFile="0" StartPosition="%start%" EndPosition="%1" ^> ^<cutAudioFiles refAudioFile="2" /^> ^</CutElements ^> >>x.wme
rem Remember start of next clip
set start=%2
goto :eof

:eof
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
pwtenny
Offline

Junior Member

Posts: 49
Threads: 11
Joined: Apr 2005
#6
2005-06-10, 09:19 PM
erik Wrote:This is my second plugin
it can be downloaded here

The plugin will convert the .txt file generated by comskip to a .wme file used by Womble MPEG-VCR as a cliplist.

When a new comskip (or ShowAnalyzer) is available that can generate .wme files there will be no more need for this plugin.

The plugin includes a convert2wme.bat file that can be used to convert already existing comskip .txt files to .wme files.

Instalation:

Copy convert2wme.bat to your gbpvr home dir and study the example postprocessing.bat on how to use this script.

Thanks to reboot for the testing Smile


I wrote a similar but stand alone command-line program for the people on the SageTV forums back in April. It creates both the .wme project file and also the .vls clip list. The latter list creates a single video in MPEG-VCR with the commercials already cut so you don't have to assemble it yourself.

You can get it in any of three formats: zip, rar, or self-extracting EXE. This program is GPL'ed and the source code (it's in C) is included accordingly.

http://dock.nevernet.com/comskip2vls/1.2/
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  New plugin - MovieTrailers imilne 11 6,195 2014-09-25, 08:16 AM
Last Post: imilne
  HD Logos for the NPVR WebRadio Plugin Lao Pan 3 3,381 2014-02-09, 01:32 PM
Last Post: Lao Pan
  Files plugin tmrt 13 7,431 2014-01-09, 11:16 PM
Last Post: mvallevand
  Plex Plugin - first release psycik 141 59,240 2013-06-16, 08:59 PM
Last Post: JonnyCam
  Web Cams plugin for NextPVR McBainUK 37 15,651 2012-10-19, 07:35 AM
Last Post: McBainUK
  PhotoFilter: New Photos/Videos plugin to browse using metadata cncb 1 2,001 2012-08-10, 04:06 PM
Last Post: cncb
  Any interest in a Spotify Plugin for NextPVR? McBainUK 38 14,180 2012-05-22, 05:37 AM
Last Post: McBainUK
  Repairing the timeline of an MPEG erik 49 22,377 2012-04-07, 05:05 PM
Last Post: mvallevand
  System Plugin - CPU Temperature Monitoring imilne 1 2,033 2012-03-28, 07:59 PM
Last Post: LegioX
  System Plugin - 2nd Test Release (4th Feb) imilne 31 10,809 2012-02-24, 12:22 PM
Last Post: Reddwarf

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

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

Linear Mode
Threaded Mode