NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 15 16 17 18 19 … 93 Next »
NEW Graphedit player

 
  • 0 Vote(s) - 0 Average
NEW Graphedit player
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2006-12-04, 08:58 PM (This post was last modified: 2006-12-06, 09:40 PM by pBS.)
new version of one of my old utils, playgrf.exe..
basically it plays graphedit graphs you've setup and can be used from command line or interactively...
i say it's hands down the fastes re-coder around!!
all directx accesses, and directx filters that will take advantage [supposedly] of accellerated hardware video cards [ATI x1300+ is what they say] but it is lightning fast on any machine...try other codecs and compare results..
also can resize video on the fly with no real delay noticable..
any graph will do..
just have to make sure your output file is outfile.mpg and the input file is dummy.mpg in your graph..[check convert.xgr as example]

currently only plays .mpg<->.mpg graphs...hope to have .avi ins n outs soon..

new features: new nice bar graph of % completed, total time and current time, size of file in nice gui...
*all files now included and will be extracted if neccesary..
*now can use 3rd param as custom graph to 'play' eg:

"playgrf.exe file.mpg file.mpg 2500"
would play the 2500.xgr on file.mpg, renaming original to file.org.mpg and new
one becomes file.mpg..[also copies :metadata.xml if it exists] or:

"playgrf.exe file.mpg file2.mpg 2500"
would play the 2500.xgr on file.mpg, outputting file2.mpg..

"playgrf.exe file.mpg file2.mpg"
would play the default convert.xgr on file.mpg and output file2.mpg..

"playgrf.exe file.mpg file.avi mpg2avi"
would convert file.mpg to a divx file.avi Smile

oh yea, and with no parameters, it will let you browse for the files..Smile

i setup the default graph [convert.xgr] with the ATI Avivo codecs but you can build your own...if you can open convert.xgr in graphedit.ex then use that as a template..

originally built to play graphs for unsupported capture cards with 'external recorder' plugin...but can be used for normal transcodes..

could also be used for MVP transcoder...Big Grin
it can be decompiled and edited if anyone has any improvements..
[anyone have any ideas how to check an in-progress file's current media length?]

Enjoy! Smile

UPDATE: forgot about some changes that broke the 'no parameters' interactive method, now working again..re-download.

UPDATE2: added mpg to avi, [.avi output] processing...[for the life of me i can't seem to save a .avi input graph and reload it..may not be possible...]
included a sample mpg2avi profile for example..

UPDATE3: now with tray icon and tray tooltip showing precentage...let me know if that is a problem for anyone..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#2
2007-01-01, 11:05 PM
Can this play capture device graphs? I have a capture graph the converts firewire to mpeg and if I could use this then firewire capture to gb-pvr would be a cake, currently I can only record to a TS file scheduled from gb-pvr.

Also graphedit doesn't recognize the .xgr extenstion am I missing something obvious? Thanks for the cool tool,

carpeV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2007-01-02, 06:16 AM
the new version of graphedit doesn't support the xml based files, so i include the old one...it will self extract it if it doesn't find it upon running...
i needed the xml based ones cuz they are manipulatable text files..
and far as i can tell they didn't add anything usefull to the new one..
just make sure new version isn't in current dir and it'll spit out the right one..Smile

so yea, it can play output only files,that's what i made it for originally...
tho i have another one that would probably be better for use within gbpvr, without the gui and stuff...tho it should work fine..[it minimises itself]
[same underlying code tho]
you could also make channel .xgr files and use it as a tuner in gbpvr, eg: play 11.xgr to watch channel 11 using 'external recorder' plugin..

one graph for every channel,manually tuned in each graph to that channel on tuner..Smile
when i made it originally, there wasn'tenough delay in the external recorder plugin for it to work very well...but that has been fixed...
it's an auto-it executable so you can get auto-it3 and decompile and modify it yourself...Big Grin [please post any mods you make tho]

plus now it uses ffmpeg to get in-progress recording's playtime info....
[for % complete stats]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#4
2007-01-03, 03:08 PM
Thanks for the info. I'll give it a whirl and see how it works.

Is their anything I should know for the graph and command line?

For example with no input file what how should the command line look?
, and in the graph what text is replaced by the program for the output file?

Also I am uses the external channel changer so I only need one graph which is nice. Currently using VLC but this approach may be faster and use less CPU power.

Thanks,

carpeV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2007-01-04, 06:40 AM
i'll have to do some testing of changes to see if any new stuff broke the external recording functions...otherwise i'm sure i have one of the old ones around here somewhere..[i think if you don't specify the input file it'll currently ask you for one, not what you need] look in convert.xgr for the names to replace..
[i think outfile.mpg and dummy.mpg]

yea,will be much easier with the external channel changer...Smile
you'll wanna set the external recorder's delay as high as you can get it for this...
[or around 15 secs if infinite possible] so gbpvr will wait for the file to be created b4 giving up..

i'll post a good one for external recorder tomorrow...Big Grin
should be more efficient than this one for general recording..
p.s. you can output .asf instead of avi. and just name it .avi so you can seek recording while in progress...[basically they're the same internally,but avi not seekable while in progress...asf is..]
but really mpg is way to go...most compatible..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#6
2007-01-05, 04:13 PM
Thanks for the help, I found the utility you mentioned and decompiled. Certainly helps my understanding of what you are doing.

Also autoit seems to be a very a useful tool I might be able to user later for other things.

Thanks,

cv
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2007-01-06, 06:23 AM
yep, it can be very usefulll and i've found all sorts of tools out there made with it...Smile can make tiny [or large] gui's too...
someone made a sqlite3 graphical browser with it..Big Grin [looks like excel]

it's messy code, but works for me...lol
i wish more people would share code like that...i'm not losing anything sharing it, and it can do someone tons of good as a starting point and example in real life..

i'm always dissapointed when people don't share their gbpvr plugin code, since it's doubtfull anyone will ever make money on a gbpvr addon, and considering gbpvr itself is donationware..

you should be able to take out alot of the file picking gui stuff, and the info checking and display...you just need the graphedit to run, the file edit of xgr,

and not sure how gbpvr stops the recording, but some sort of way to stop it when program over...
[i made a fake ffmpeg that gbpvr could stop, and it would end the spawned processes in turn..tricky]
there may be a 'length' param in extern. recorder which you can use better tho....then setup timer to kill in exe...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#8
2007-01-06, 08:39 AM (This post was last modified: 2007-01-06, 11:07 AM by pBS.)
try this...use the latest one and just give for input file name a dummy..
like for parameters use:
dummy {fullname} {channel}
[only put channel if using that for something]
it does a search and replace but if it doesn't find it in your .xgr then nothing will happen..[no error] and it will continue on happily..Smile
it just needs the placeholder inthe command line input to be there..
cuz the output file needs to be just "outfile.mpg" or "outfile.avi" and it must exist in order to open and edit graph...

let me know how you get along and i may be of help..

EDIT:
use for start recording parmeters :
dummy.mpg {fullname} {channel}
{channel} will end up being the first name of the .xgr you want to use..
so the sizing routines will have something for an input file to compare with...
i fixed it so if you run a second instance with /stop for parameter, it will kill the original one nicely and cleanup..
try this one with playgrf.exe for exe and /stop for stop recording parameters..
edit2:
i took out the traytip that popped up, would popup over video on 1 monitor systems..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#9
2007-01-07, 05:36 PM
hmmm,probably won't work cuz i can't seem to re-open graph saved as xgr when using a tuner...unless it has all the options set right by default..
[on mine a pin defaults to wrong colorspace]
even tho i set it right in the graph...same with saving .avi input files...something dynamic going on there..
works with the grf files but i can't edit those Sad
[unless you know of a command-line binary editor...anybody?]
i'm looking into using autoit to edit it but it's gonnna be interesting...lol
[i just need to patch the filename used by filewriter]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#10
2007-01-08, 12:32 AM
Yep, I am having the same problem - I took out the input file code but it doesn't like the XML, I was going to ask you for advice on it. Hmmm. I'll keep trying, I have several graphs that re-encode the HD stream at a decent pace but without the right output file name I am stuck.

I'll look into binary replace.

Of course you could use auto it to do perhaps by opening the dump properties and replacing it that way, not sure how well it would work of course. I'll give a few things a try and if any work I will let you know,

CarpeV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): 1 2 3 4 5 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  What music player is used? cncb 1 1,602 2011-08-01, 08:02 PM
Last Post: sub
  Extend functionality of "Video Player" HydroChronic 7 2,507 2007-05-18, 04:37 PM
Last Post: sub
  plugin idea: cd-player dottore 23 6,165 2005-10-11, 05:06 AM
Last Post: dottore
  Any developer interested in a "DV" player/viewer plugin? A_Brass 6 2,349 2005-07-28, 02:39 PM
Last Post: A_Brass

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

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

Linear Mode
Threaded Mode