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 … 17 18 19 20 21 … 125 Next »
Postprocessing calling question

 
  • 0 Vote(s) - 0 Average
Postprocessing calling question
dmporch
Offline

Junior Member

Posts: 20
Threads: 4
Joined: Oct 2007
#1
2007-11-21, 06:42 PM
Howdy folks -

Well, before I went digital I had a parallelprocessing batch that would comskip, comclean, and clean up afterwards. Everything was great. But now that I'm forced to use the dvr-ms mux for quality's sake, a big wrench was thrown into my batch file. Comclean doesn't work with dvrms. So, now my plan is to set up a post processing batch that will convert to mpg, run comskip and comclean, then it would be nice if I could transcode that cleaned mpg to xvid.

I know that pvrx2 has the ability to convert to mpeg from the config screen (even though it hasn't worked for me), can I call that process in my batch file, or do I need another executable? If so, what do I call for in the batch?

Next, I just installed the xvid codec, but I don't see anything that looks like a converter to call there either. What do I call in the .bat to convert to xvid?

Thanks a lot!
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#2
2007-11-21, 08:26 PM
If you look in config.xml you'll see the ffmpeg command line used by the auto conversion options. You can then take those command line and call ffmpeg yourself.
dmporch
Offline

Junior Member

Posts: 20
Threads: 4
Joined: Oct 2007
#3
2007-11-21, 09:41 PM
is ffmpeg built into pvrx2, or do I need to download that separately?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#4
2007-11-21, 09:46 PM
Its distributed with the app in the C:\Program Files\devnz\gbpvr\Third Party\FFmpeg directory.
dmporch
Offline

Junior Member

Posts: 20
Threads: 4
Joined: Oct 2007
#5
2007-11-21, 10:46 PM
Quote: <!-- Post processing -->
<AutoConvertMpgToFormat>No Conversion</AutoConvertMpgToFormat>
<AutoConvertDvrmsToFormat>No Conversion</AutoConvertDvrmsToFormat>
<CommercialDetectionScheme>1</CommercialDetectionScheme>
<ProcessCommercialsDuringRecording>true</ProcessCommercialsDuringRecording>
<ConversionProcessingStartHour>1</ConversionProcessingStartHour>
<ConversionProcessingStopHour>6</ConversionProcessingStopHour>
<AutoDeleteConvertedFiles>false</AutoDeleteConvertedFiles>
<AutoUpdateDatabaseForConvertedFile>true</AutoUpdateDatabaseForConvertedFile>
<WakeMachineForConversionProcessing>false</WakeMachineForConversionProcessing>
<ShowVideoLibraryTranscodeButton>true</ShowVideoLibraryTranscodeButton>
<CustomFFmpegConversions>
<Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b 1400 -vtag XVID {DEST_FILE}" targetExtension=".avi">-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b 1400k -vtag XVID {DEST_FILE}</Conversion>
<Conversion name="DivX" cmd="-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b 1400 -vtag DIVX {DEST_FILE}" targetExtension=".avi">-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b 1400k -vtag DIVX {DEST_FILE}</Conversion>
<Conversion name="Video Ipod" cmd="-y -i {SOURCE_FILE} -title {TITLE_SUBTITLE} -f mp4 -vcodec mpeg4 -s 320x240 -r 15 {DEST_FILE}" targetExtension=".mp4" />
<Conversion name="Sony PSP" cmd="-y -i {SOURCE_FILE} -title {TITLE_SUBTITLE} -f psp -r 29.97 -s 368x208 -b 768 -ar 24000 -ab 32 {DEST_FILE}" targetExtension=".mp4">-y -i {SOURCE_FILE} -title {TITLE_SUBTITLE} -f psp -r 29.97 -s 368x208 -b 768k -ar 24000 -ab 32 {DEST_FILE}</Conversion>
<Conversion name="Mobile .3GP" cmd="-y -i {SOURCE_FILE} -acodec aac -vcodec mpeg4 -s qcif -aspect 4:3 -hq {DEST_FILE}" targetExtension=".3gp" />
<Conversion name="WMV-1200kb/s" cmd="-y -i {SOURCE_FILE} -vcodec wmv2 -b 1200 {DEST_FILE}" targetExtension=".wmv">-y -i {SOURCE_FILE} -vcodec wmv2 -b 1200k {DEST_FILE}</Conversion>
<Conversion name="WMV-700kb/s" cmd="-y -i {SOURCE_FILE} -vcodec wmv2 -b 700 {DEST_FILE}" targetExtension=".wmv">-y -i {SOURCE_FILE} -vcodec wmv2 -b 700k {DEST_FILE}</Conversion>
</CustomFFmpegConversions>

That's the section of the xml that talks about transcoding. and I see that it deals with FFmpeg, but I don't see where it calls the .exe and I don't know which part of this I should use in my postprocessing file, or what the syntax for it should be. Sorry, but I'm trying to learn about this stuff as best I can.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#6
2007-11-21, 10:53 PM
If you want to tack some custom processing on the end of GB-PVR's automated conversion processing, then you can create a PostConversion.bat file with your custom commands.

Otherwise you can manually run ffmpeg.exe in your PostProcessing.bat file, passing command line parameters like those specified in the config.xml section you've posted above.
dmporch
Offline

Junior Member

Posts: 20
Threads: 4
Joined: Oct 2007
#7
2007-11-21, 11:11 PM
This is what I want to do in post processing:

1. Convert dvr-ms to mpg
2. run comskip and comclean on new mpg
3. convert result of comclean into xvid

I'm pretty sure I can figure out how to get part 2 done, its parts 1 and 3 that I've got no clue on

Auto conversion never runs for me, so a PostConversion.bat wouldn't ever begin. Plus, I'd like to do this all in one nice PostProcessing.bat.

I don't know which are the "command line parameters" to pass or how to manually run ffmpeg. Do I need a line with ffmpeg.exe %1?

ugh... I wish an mpg mux would work for me, or that comclean would run on dvr-ms files...
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#8
2007-11-24, 11:30 PM (This post was last modified: 2007-11-25, 04:13 AM by idkpmiller.)
here is my line from postprocessing.bat:

"c:\Program Files\devnz\gbpvr\Third Party\ffmpeg\ffmpeg" -y -i %1 -f avi -ab 224 -ac 2 -acodec mp3 -deinterlace -vcodec xvid -qscale 5 -vtag xvid "%~dpn1.avi" targetExtension=".avi"

as you can see I have used the line from config.xml and changed the source and destn filenames to match the batch files syntax.

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#9
2007-12-01, 10:04 PM
hmm.. but if we run ffmpeg ourselves in PostProcessing.bat, how can we update the file location in the database? i guess a nifty little script for sqlite3 to mess with recording_schedule in gbpvr.db3 would do the trick... but is that the best way to update the db?
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#10
2007-12-01, 11:15 PM
I don't think there is any need to do this.

if the mpeg file is missing and gbpvr detects an avi with the same name, it will play that instead, without deleting the entry from the database (as normally happens with a missing recording).
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Vertical Menu skin question Northpole 4 3,949 2010-12-11, 05:12 PM
Last Post: Northpole
  quick question about irremote.ini teookie 2 2,810 2010-06-27, 06:25 PM
Last Post: teookie
  Comskip.exe Question spector9 17 9,262 2008-10-28, 03:02 AM
Last Post: reboot
  Shutdown plugin question frankmcg 8 2,992 2008-09-04, 06:41 PM
Last Post: YoMoose
  Calling all moderators dmanindfw 16 5,340 2008-08-30, 02:51 AM
Last Post: mvallevand
  Graphrecorder 1.7 question blisbell 7 3,150 2008-07-20, 12:17 AM
Last Post: carpeVideo
  weather and screensaver question ryanmc 0 1,234 2008-02-10, 05:06 PM
Last Post: ryanmc
  How do I get SHowanalyzer to run automatically from the postprocessing linfor 2 1,469 2007-12-21, 08:05 PM
Last Post: linfor
  Convert dvr-ms to mpg in postprocessing.bat dmporch 0 1,291 2007-11-22, 03:15 PM
Last Post: dmporch
  Another Newbie question!! Need help with ComSkip and Comclean bimmer16 4 2,012 2007-11-02, 11:55 PM
Last Post: bimmer16

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

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

Linear Mode
Threaded Mode