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 … 4 5 6 7 8 … 125 Next »
Graph/ External Recorder - Ability to record to TS stream

 
  • 0 Vote(s) - 0 Average
Graph/ External Recorder - Ability to record to TS stream
Dancasper
Offline

Junior Member

Posts: 15
Threads: 2
Joined: May 2008
#1
2009-04-18, 11:08 PM
My ISP provides an IPTV feed with h264 video and mpeg audio.

I have setup the external component of the Graph/ External recorder plugin to record this however the plugin appears to only want to write an mpg-ps stream.

In this case, I have to transcode the h264 to mpeg2 and write to mpeg2-ps file. Unfortunately I have a lower spec htpc (P4@2gHz + Radeon 9250 video) and it is struggling...I've had to resize the incoming stream to 272 x 288 and the whole transcode -> write file -> decode and display maxes out the cpu to 100% and provides a greatly reduced video quality.

I've looked at the settings for graphrecorder and did not come across any options that enters this.

If the incoming stream could be dumped to a ts file, this would greatly reduce cpu utilisation and the video quality is far better. Is it possible that the plugin could have an option or accomodate the possibility of the external/ graph component writing to a TS file?

I greatly appreciate the effort of carpeVideo, NormanR and Ubu in creating and developing the external/ software recorder plugins. Out of all Windows PVR software, this plugin gives GB-PVR the greatest flexibility to adapt to any source. As there are more h264 video feeds and as IPTV becomes more popular, the ability for this plugin to write to a ts file would greatly enhance GB-PVR.
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#2
2009-04-19, 02:06 PM
If your file writer file extension in the graph is ".ts" then that is what it will write (as long as your graph filters really produce a transport stream) Sometimes there are issues with malformed streams or true transport streams that have multiple programs so you may still need some intermediate filters (for example from my stb the raw stream doesn't work to well, but if I put it through nvidias ts parser it works.)

In your case perhaps the ISP is really write a program stream, since that is a component of a transport stream (warning I am not an expert on this) the raw program stream should still be playable by gbpvr and other programs.

CV
Dancasper
Offline

Junior Member

Posts: 15
Threads: 2
Joined: May 2008
#3
2009-04-20, 01:11 PM
Thanks carpeVideo for your response.

I had no success after changing the extension to ts as my GBPVR-Recording Service log indicated it was still searching for a file with mpg extension and not ts. It may be because GB-PVR thinks the external recorder is an analog source?

Dont know how to program or GB-PVR operates but; Normans source of the external recorder gives a hint that the extension could be altered?
.........
public override string getFinalFileName()
{
// you can return a different name here - e.g. if you're recording to a .avi file instead of .mpg
return filename;
}
...........

My ts files that I have dumped from the stream play ok when I play them through the video library. I've also tried them in graphedit using the GB-PVR TS reader and MPEG2 Demultiplexer and they play fine so I'm pretty sure they would work.

Any chance you could have a look at this if you have any future revisions of the plugin? ..please.. :o
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#4
2009-04-20, 04:22 PM
Post your recording logs and I will take a look
Dancasper
Offline

Junior Member

Posts: 15
Threads: 2
Joined: May 2008
#5
2009-04-21, 07:10 AM
I did a fresh install of 1.3.11 and Graphrecorder plugin from the website wiki.

Using mplayer with the default settings and -dumpstream option will write a ts stream that the GBPVR TS reader and MPEG2 Demultiplexer likes however mplayer does not appear to work with your plugin for me. It does take a while for it to start from the commandline (> 10 sec!), this may be why.

Using vlc works in the plugin but I cannot render the resulting ts stream in GBPVR for some reason. It possibly messes with the ES id's.. I will have to dig into the commandline options of both of these to get a solution. At the moment, I'm using VLC's own ts muxer (mux=ts)...I may try just seeing if it can dumping the raw stream to disk which I think mplayer does...

Attached are my logs, I appreciate you having a look for me. The GBPVR Recording service log indicates the temp file will be *.mpg however I have configured the plugin to write a *.ts file. ..and I think this is where it is going wrong.

Note, the plugin states on the help tab that {directory} is the variable for the directory the recorded file will write to however this does not work so I use {directoryname}. The variable does not include the drive letter so this precludes using seperate drives for the buffer and recording directories...which i can live with.

When running, PVRX2.exe freezes indefinitely...and requires to kill process in task manager.

If I set up vlc to transcode and write a mpeg2 ps stream it all works.

Thankyou muchly.
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#6
2009-04-21, 01:47 PM (This post was last modified: 2009-04-21, 01:51 PM by carpeVideo.)
Ah, I see the issue - I thought you were using the graph functionality, you are using the external recorder functionality via VLC so the plugin doesn't really know the type of file being written since the command could be anything. Let me think about how I would do a setting for that I should be able to come up with something.

CV
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#7
2009-04-21, 02:32 PM (This post was last modified: 2009-04-21, 02:37 PM by carpeVideo.)
Try this dll - change the extension on the first tab to .ts.

Also if mencoder takes > 10 seconds then it will likely never work - graphRecorder tests file sizes and if its not growing it returns an error. You can change some of the times it waits but GBPVR also expects a growing file in a certain time frame for it to work and 10 seconds is too much.
Dancasper
Offline

Junior Member

Posts: 15
Threads: 2
Joined: May 2008
#8
2009-04-22, 01:38 PM
Thankyou, thankyou, thankyou Carpevideo.

Will test tonight and report back...
mikeh49
Offline

Posting Freak

Posts: 1,129
Threads: 81
Joined: Apr 2005
#9
2009-04-22, 02:45 PM
@Dancasper

Take a look at this thread from a few years ago.

http://forums.nextpvr.com/showthread.php?t=22563&page=6

It discusses using vlc in the external recorder to capture a TS stream. The discussion is about firewire capture from a STB in the US, but it includes info on the vlc commandline in external recorder. Carpe was a significant contributor to the thread.

I'm interested in the vlc command line for firewire, since the graph version is not working well for me: ATI mux is unreliable, and GBPVR can't read most of the TS streams from my box. So post back with any of your successes.

Mike
HTPC: Optiplex 7010, HDHR Prime/Avermedia Duet A188, NPVR 4.2.5, Win10 Pro
Test:
Dancasper
Offline

Junior Member

Posts: 15
Threads: 2
Joined: May 2008
#10
2009-04-22, 04:41 PM
carpeVideo, its nay with the plugin but yay with VLC.

I'm using VLC 0.8.6h to dump the IPTV stream to disk...it writes a valid ts stream and PVRX2 opens it in video library ok Smile

PVRX2 crashes though when trying to view "tv". In window mode I can see the file being dumped to the TV buffer directory so vlc is executing. As GBPVR crashes it does not delete this file, I can actually open it in video library when I restart PVRX2 so the dumped ts file appears ok.

The attached logs are similar to that previous as they look for the temp file with mpg extension (refer to GBPVRRecordingService.exe-1.log)...
-----------------------
2009-04-23 01:54:46.734 VERBOSE [7] Temporary live TV filename: D:\TV_Buffer\News_1_20090423_01000200.mpg
-----------------------

I would guess that GBPVR registers it as an analog capture source and assumes it will write mpg files...but that is a guess (from someone who has no idea about the inner works of GBPVR).

Mike --> for some reason, the recent vlc version would not let me dump the rtp: stream directly however I could save the stream with vlc's own ts mux. Using the ts mux, it appeared that it did not transfer the PIDs or PMT of the stream properly and I ended up with a stream that was not friendly with the MPEG2 Demultiplexer filter. Oh joy.

I'm sure the ability to fix this is within VLC somewhere but the documentation is minimal and forum support likewise. I'll have a look at it later on as I intend to checkout vlc's capture abilities...and stuff...it does alot. If I get it working, I will write a guide to this later on as my googling found little on IPTV pvr solutions.
« 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
  software recorder, any plugin like it for npvr? chesterusob 2 14,837 2011-04-11, 07:28 AM
Last Post: chesterusob
  Graph and TVPI external recorder beta carpeVideo 348 157,529 2011-02-14, 03:53 AM
Last Post: cathrynm
  Newbie needs help with renaming external plugins and making some plugins to work Chris79 2 2,420 2009-06-14, 05:36 AM
Last Post: Chris79
  GraphRecorder External via Executables Tab Ignored observer_11 0 1,713 2009-05-02, 09:44 PM
Last Post: observer_11
  DBox Recorder Plugin Trouble junkiepilot 2 2,328 2008-12-06, 09:04 AM
Last Post: alibert
  Web Radio graph problem ACTCMS 7 3,783 2008-10-05, 12:50 AM
Last Post: ACTCMS
  Problem xternal Recorder Plugin and GraphRecorder Captain-DJ 6 3,692 2008-09-14, 06:12 PM
Last Post: Captain-DJ
  Cannot record JimmyA 1 1,736 2008-08-05, 01:50 AM
Last Post: JimmyA
  Web stream plugin Immorak82 3 2,347 2008-06-26, 08:59 PM
Last Post: McBainUK
  Use PowerDVD or other external player Deusxmachina 3 2,064 2008-01-09, 08:02 AM
Last Post: stustunz

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

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

Linear Mode
Threaded Mode