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
#41
2007-02-25, 04:36 PM (This post was last modified: 2007-02-25, 04:48 PM by pBS.)
coool, that would be great...i think writing it from scratch would work best, and i think the c# lib dshowlib has all the functions we need from what i've seen..[i think it can be used within vc++ too]
so yea, i'd love to look at the code, and add on to that...

if you want to use the sgr prog, telnet to it [telnet localhost 6969] and issue commands like:
"START |26||e:\test.mpg|" will start recording ch 26 to that file...
"STOP" stops all activity, "SWITCH" starts the recording over,like a changed channel..i still don't have the details for the sage commands, and the channels can't be changed within the plugin it seems unless using a external exe or girder..so not usable for tuning..Sad
oh and it shuts down if no comm every 15 mins,so you have to deriodically send a "NOOP" to keep it alive or it stops recording..

so you see it's got a few things in there that we don't need, and missing a few we do..so i'd rather help work on the code you've got and add just what is needed...would be more efficient anyways..Smile

best results would be to figure out how to insert code to use graph into the wdm recorder plugin as an option, as it is already fully integrated with gbpvr...so this would be a great step towards that...Smile

no need for external tuner changers as gbpvr handles that already for us..
but do need internal changer, as loading a graph with a tuner needs to be tuned...
almost there..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#42
2007-02-25, 07:33 PM
Ok here it is,

I warn you it is a bit messy and has minimal error checking. But since it is mostly C you can probably drop it in a c compiler or a C# compiler without huge trouble.

It still needs better control so I agree with you idea about integrating it with one of the plug-ins (or making it its own).

It takes the args: graphname.grf filename.mpg.

Since the standard gbpvr filename is:
path/filenameYYYYMMDD_hhmmhhmm.mpg or path/filenameYYYYMMDD_hhmmhhmm-X.mpg

it expects that and parses it to figure end time which is simply compared to system time before it stops - that means it may break with plugins that change the filename.

To change the filename of the graph in the code I do:
pFilters->QueryInterface(IID_IFileSinkFilter, (void **) &pFileSink);
It gets the filter that is a filesink (not sure what would happen if there were 2 filesinks) - I assume there is a similar interface you get for tuner filters where you can change the channel.

I may try to recompile as a command line program to see if I can simply capture SIGINT and SIGTERM and have it release the grap resource before shutdown. Although a different interface could allow it to keep running and change filename or channel on the fly.

CarpeV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#43
2007-02-26, 02:47 PM (This post was last modified: 2007-02-26, 02:54 PM by pBS.)
hmm,can't compile that one, errors for some of the c stuff...
not sure we need the duration part actually cuz the external recorder plugin can send a stop cmdline when appropriate...
but i like the idea.. Big Grin
[just not sure that gbpvr would know it's stopped if it stops by itself..]

it would be fine if i could figure out how to insert the IAMTVTuner:: put_channel() part just before it runs the graph..
i think i'm just missing some 'uses' statement or something..
any ideas?
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#44
2007-02-26, 04:46 PM
Hmmm,

I'll repost later today (forums aren't letting me now)- not sure why it won't compile.

As to the duration stuff - I don't know how to do interprocess communication so I couldn't figure out how to get it to stop. As I said if you just kill it then it won't release the filters and you can't record anything else after that. I tried to capture a control-C but apparently with the windows main it doesn't capture them. Should take someone with some experience a few minutes but me hours to learn it get it in the code and get it to compile. For some reason the includes with this are extremely finicky.

For your tuner maybe you should insert

pFilters->QueryInterface(IID_IAMTVTuner, (void **) &pTuner);

to find the right filter, then

pTuner->putChannel(channel?);

after making sure it exists.

http://msdn2.microsoft.com/en-us/library/ms779292.aspx


CarpeV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#45
2007-02-26, 05:48 PM
interesting...i can kill it from taskman and it exts nicely for me, and re-capture right afterwards...it seems to clean up on exit even if killed...at least the original one....i got vlc to change channels before starting up the graph and it keeps the channel so it works, but vlc is too slow...and just taskkill'd it and seemed to work fine..[had to use /f tho..]

thanx for the suggestion...could i get a copy of the compiled on you have?
just for testing...[plus to add to your addins so i don't have to do the file name thing myself]

i think c# can do all this in about 10 lines of code with directshowlib...Smile
but since almost there with c++ i'll give it a try before starting from scratch with c#..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#46
2007-02-26, 07:15 PM (This post was last modified: 2007-02-27, 04:11 AM by carpeVideo.)
OK,
I don't know C# but thought hey can I drop the VC++ into the external recorder app, then I found this:

http://www.mperfect.net/mceDirectShow/

It is examples of everything we need in C# and more LOL

You might be able to drop this in in 5 minutes if you know C#,

Also attached my player with source. (OK forums still not allowing it - you may have to send me a msg with an email and I will send it)

CarpeV.


Didn't notice a huge file snuck into my zip = here it is
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#47
2007-02-27, 12:47 AM
it won't take exe file tho it should take zips...and not too big either..
i got the code from last time, so unless changed...

i just got response from sage on the protocol...Smile
theres a couple commands i hadnt seen, TUNE and a couple others...
just not sure if the app will tune or not...if so, no further devel. needed..
i'll look into the source to see if sgr can tune, if so it has all the features needed...Wink

[filename changeable, works with firewire, duration is specifyable, and tuning while graph is in play..

[they specify duration in ms!! [no wonder i couldn't figure out why that number was so big..lol]

ill play with the new commands for sgr and see if it works..

yea, saw that mce thing already...every sample i've seen so far has wayyy too much stuff in it, so hard to pluck out the bits we need without all of it..

i barely know anything about c# also...Big Grin total newbie here...
i wrote a voice prog that's about 10 lines of code so far...lol
but my batch files run into the hundreds of lines...hehe
[see showburner2]

MS only shows you the bits and pieces, not a decent whole sample app anywhere [unless it tries to do everything and obscures code]
and directshowlib says go to MS for info...
dshowlib works with any .net language...and has lots of helper funcs..
so would be best bet, but it's slow to startup .net and we need fast start times...
i tried adding the tuning part but references are off..will look into source of other apps for clues on tuning..

too bad that virtualvcr thing is only vfw compressors and avi output only...
would have been perfect Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#48
2007-02-27, 01:03 AM
here's the commands for SGR...remember must be sent with telnet or similar terminal...

can't get tuning to work yet, but may need to specify the tuner device name to get it to know which filter to tune...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#49
2007-02-27, 01:48 AM
Great news on the sgraph stuff that will give us some flexibility.

On the other front I think I modded the external plugin to work with a graph. The funny part is the EZ stuff I don't know how to do, which is getting the GUI to return a value when I change the config screen. For the moment I put the graph name in the stopPreview section and viola it seems to play and change the filename - no channel changing but I think I know how.

I'll post it when its a bit cleaner and the forums is working again.

CV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#50
2007-02-27, 06:29 AM
Mui Excellante!! hehe that's sounds great...timing on this one is an issue, so native really is best..Smile

i'm so in over my head..lol i need to just break down and go get a book cuz i just don't get the structures of these languages yet...seems they're all pretty similar tho..trust me, there will be many thanks from many users if you get this going...Big Grin [me included!]

cuz the one thing that's lacked in gbpvr is wdm card support..
and now that we have the ati encoders and others that are as good as hardware with only a slight cpu loss, the guts are all there just need to work it in..and a flood of new users will be able to enjoy GB as well..Big Grin

the only reason wdm recorder isn't good enough is, it needs property settability for the compressors and such, as the defaults for the encoders aren't even dvd compatible...
[actually just the audio,only outs 44khz,etc.]
plus could output psp/ipod/avi/pretty much anything you want if have control over muxer/encoders,etc..] may be limited to mpeg for this tho..

with loading graph, you can preset all that stuff for each graph...Smile
[with a nice graphedit interface for building already there..]

get the new version? 99.12...that's prolly why you're seeing slowdowns...hehe
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 3 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  What music player is used? cncb 1 1,611 2011-08-01, 08:02 PM
Last Post: sub
  Extend functionality of "Video Player" HydroChronic 7 2,532 2007-05-18, 04:37 PM
Last Post: sub
  plugin idea: cd-player dottore 23 6,230 2005-10-11, 05:06 AM
Last Post: dottore
  Any developer interested in a "DV" player/viewer plugin? A_Brass 6 2,358 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