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) v
« Previous 1 … 25 26 27 28 29 … 125 Next »
Help out a N00B w/skip and transcode? (I've done the research)

 
  • 0 Vote(s) - 0 Average
Help out a N00B w/skip and transcode? (I've done the research)
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#1
2007-04-27, 01:57 PM
Hi,

Just getting started with GB-PVR with an HVR-1600 (analog for now). I'm no stranger to DVRs, digital video, transcoding and such, but just wrapping my head around all of this together with GB-PVR.

In short, I want to do what everyone else wants to do:

- record a program
- rename to include episode name
- clean/cut commercials
- transcode to avi (divx/xvid)

There are many solutions on the boards, and wondering where the most success has been or if there is a recommended solution.

So far I have employed comskip, comclean, and addEpisode in my postprocessing.bat file, in conjunction with processing setting in the GB-DVR config to transcode to divx (w/custom setting in the config.xml for 320x240 for my Archos PMA400).

It's working, sort of, but I need help with the ordering of the events, I think, as I got 3 files:
- original show.mpg,
- show_cleaned.mpg and
- show.avi (not cleaned).

No files renamed, but that may be due to my test show was David Letterman (poor choice for a test, I suppose).

Insight into what a proper postprocessing.bat file should look like/ordering would be most appreciated, or if I'm barking up the wrong tree altogether. Should I be using zprocess? mencoder solution? other scripts? There's lots of choices and I simply want to benefit from the experience of others.

Thanks in advance for a helpful nudge!

Andrew
http://www.pointlisse.com/PMA430/
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#2
2007-04-28, 01:47 AM
So I got the file named, and converted to .avi, but comskip/clean is no longer working. I've incuded my .bat contents below... what am I missing?

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 rename file to include episode
addepisode %1 "{show}{[ - ]}{episode}">newfilename.txt
for /f "tokens=*" %%i in (newfilename.txt) do set new=%%i

Rem find commercials in new filename
comskip %new%

Rem new filename variable: %new%

Rem Once the commercials have been identified you can run comclean to delete the commercials from the recording.
call comclean %new%
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#3
2007-04-28, 05:40 AM
pointlisse Wrote:Should I be using zprocess?

I'll be honest. My intent for ZProcess was mostly for on the fly transcoding for use with MediaMVP. At the time, for it to work, I had to rename ffmpeg (the included transcoder) and then I realized ZProcess had to mimic all of the transcoding features. I then added a sort of all- in- one post processing thing where it would do what you want... BUT

I personally have not been perfectly satisfied with comskip's commerical detection. Erik has been excellent with his support, but I haven't felt the need to troubleshoot the occasional missed commercial.

But because I'm not perfectly happy (I am really happy though) with all the cutpoints in comskip, I won't comclean my files. I'd rather watch, and if I think it missed something, I back up and watch what was missed.

For transcoding to AVI. I don't think that quality and file size achievable is even remotely comparable to the generally accepted file size of about 350 MB for a 1 hour show (45 minutes).. And it's only standard def. FFmpeg will create a 350 but looks like #%$%^&. Get good quality and filesize is up to a gig.

Online, you can get 350 Mb Wide screen, High def rips of most shows. ZProcess with ffmpeg, mencoder or VLC, just can't get it to look like that...

And so, while ZProcess works equally or better than a standard PostProcessing.bat, since I don't use it for those processing tasks (except to test and tshoot), one should know that troubleshooting and explanations may be hard to come by...
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]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#4
2007-04-28, 05:44 AM
pointlisse Wrote:So I got the file named, and converted to .avi, but comskip/clean is no longer working. I've incuded my .bat contents below... what am I missing?

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 rename file to include episode
addepisode %1 "{show}{[ - ]}{episode}">newfilename.txt
for /f "tokens=*" %%i in (newfilename.txt) do set new=%%i

Rem find commercials in new filename
comskip %new%

Rem new filename variable: %new%

Rem Once the commercials have been identified you can run comclean to delete the commercials from the recording.
call comclean %new%

You should rename as your last step. If you rename at the beginning, then comskip and comclean won't know what the file's name is anymore...
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]
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#5
2007-04-28, 03:44 PM
Thanks, zehd, great information -- the kind I was hoping folks would share. I did figure out the naming at the end as well. This is my current PP.bat:

@echo off
echo Postprocessing.bat invoked on %1 recorded from channel %2 >>postprocessing.log
comskip %1
call comclean %1
addepisode %1 "{show}{[ - ]}{episode}">newfilename.txt
for /f "tokens=*" %%i in (newfilename.txt) do set new=%%i
"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%new%" -f avi -ab 128 -ac 2 -acodec mp3 -vcodec mpeg4 -b 710k -s 320x240 -vtag DIVX "%new%".avi


The only trouble (not huge) issue I'm having now is naming the output file. As I have it now, it names it 'show.mpg.avi'. Any suggesting for properly naming it?

Andrew
-Oz-
Offline

Posting Freak

Posts: 803
Threads: 33
Joined: Aug 2006
#6
2007-04-28, 04:16 PM (This post was last modified: 2007-04-28, 04:23 PM by -Oz-.)
Yea, if anyone can figure out how they do high-def streams at 350mb/hr i'd be super grateful. Using mencoder v 0.2 and some batch processing scripts i wrote (for nightly processing) i have all my shows at about 350mb and they don't look too awful (standard cable quality isn't that great).

Regarding the file naming issue. I'm not sure what it is but there are all sort of %xxx where xxx limit what you get (directory, filename w/o extension, etc).

When I get back to my HTPC i can probably tell you which one you need.
Dan Blomberg
[SIZE="1"]HTPC 1: MSI K8NGM2-FID, AMD 64 3000+, WD 200gb HDD, 1gb ram, NSK2400, PVR-500, Harmony 659
HTPC 2: ASUS M2NPV-VM, AMD 64 3200+, WD 250gb HDD, 1gb ram, nVidia DualTV MCE, NSK2400, Harmony 720
HTPC 3: GIGABYTE GA-E7AUM-DS2H GeForce 9400, Intel E5200 Wolfdale, WD 640gb HDD, 4gb ram, Antec Fusion 2, HVR-1600, hdhomerun, Harmony 880, PCH A-110
GBPVR 1.4.7 Additions: Weather2, UltraXMLTV, Comskip
Project: Setup Logitech Harmony Remote[/SIZE]
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#7
2007-04-28, 04:59 PM
Oz, I'd be grateful if you could. Thanks! Other than that, I think I'm set.

Now how to set up the dang Hauppauge remote control... Smile
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#8
2007-04-29, 12:16 AM
When you use

Code:
%~dpn1

You are effectively isolating the path and filename, without the ext...

so

Code:
blah blah command "%~dpn1.mpg" "%~dpn1.avi"

would use the 'blah blah command' process utility and transform the first paramater which you knew to be an mpg, and into an avi...

now, as far as addepisode: I have no idea how it works. I have no idea why it wants you to output the data from addepisode to a text file and then process each entry in the text file. But maybe that's for the addepisode support forum...
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]
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#9
2007-04-29, 03:18 AM
Quote:maybe that's for the addepisode support forum

I suppose so. Since I'm using addepisode, I'm not sure I can use '%~dpn1', as '%new%' is my working reference to the filepath and name. Perhaps I'll use some windows REN commands in the pp.bat to manually change the name.

Good suggestion, though. I play with it a bit more. Thanks!

Andrew
http://www.pointlisse.com/PMA430/
pointlisse
Offline

Member

Posts: 74
Threads: 12
Joined: Apr 2007
#10
2007-04-29, 04:26 AM
I came up with a solution, maybe not so elegant, but it fixes the naming issue well-enough

My previous ffmpeg command, based on the addEpisode renamed file was:
Code:
"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%new%" -f avi -ab 128 -ac 2 -acodec mp3 -vcodec mpeg4 -b 710k -s 320x240 -vtag DIVX "%new%".avi

produces: "show - episode.mpg.avi"

The double extension created a problem for renaming, so I changed it to this:
Code:
"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%new%" -f avi -ab 128 -ac 2 -acodec mp3 -vcodec mpeg4 -b 710k -s 320x240 -vtag DIVX "%new%"_

produces: "show - episode.mpg_"

I added a rename command in the pp.bat as follows:
Code:
ren "%new%"_ *.avi

produces: "show - episode.avi"

Done!

Final postprocessing.bat file contents is a follows for reference:
Code:
@echo off
echo Postprocessing.bat invoked on %1 recorded from channel %2 >>postprocessing.log

comskip %1
call comclean %1

addepisode %1 "{show}{[ - ]}{episode}">newfilename.txt
for /f "tokens=*" %%i in (newfilename.txt) do set new=%%i

"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%new%" -f avi -ab 128 -ac 2 -acodec mp3 -vcodec mpeg4 -b 710k -s 320x240 -vtag DIVX "%new%"_

ren "%new%"_ *.avi

Andrew
http://www.pointlisse.com/PMA430/
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Playback-- no mouse!, can't pause,skip, stop via mouse james_dk 2 2,606 2010-06-16, 08:24 PM
Last Post: james_dk
  transcode from file.ts to file.mpeg in parallelproocessing alevideotestservice 4 2,938 2009-12-30, 07:27 PM
Last Post: alevideotestservice
  Transcode w/ Comskip? pduncan67 1 2,167 2009-11-25, 03:59 AM
Last Post: johnsonx42
  Transcode and copy ydekmekji 6 2,714 2009-01-14, 04:43 AM
Last Post: ydekmekji
  Need help to get Transcode to work-simple help me svesnon14 10 3,437 2007-04-25, 01:17 AM
Last Post: svesnon14
  Auto Commercial Removal and Transcode Help (newbie) slacker190 18 5,688 2007-02-19, 01:28 AM
Last Post: homerjr43
  Showburner2/Transcode trouble atmassie 1 1,317 2006-12-10, 11:45 AM
Last Post: atmassie
  Transcode button does not appear in video library Bdunkin 5 2,135 2006-11-21, 06:59 PM
Last Post: Bdunkin
  MyVideos keeps freezing when I "skip" on a DVD GoodGuys 2 2,182 2006-05-01, 09:55 PM
Last Post: GoodGuys
  xdvd transcode problem ultradennis 2 1,860 2006-04-22, 04:20 PM
Last Post: whip

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

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

Linear Mode
Threaded Mode