NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 9 10 11 12 13 … 93 Next »
On-the-fly transcoding for streaming recordings / videos

 
  • 0 Vote(s) - 0 Average
On-the-fly transcoding for streaming recordings / videos
bgowland
Offline

Posting Freak

Posts: 4,535
Threads: 376
Joined: Dec 2004
#1
2012-06-03, 01:07 AM
@sub - Related to this post by dark_half and my answer, do you have any tips for how I could rewrite my nDroid Service streamer to transcode video/recordings on-the-fly and any ideas for what to use to do it.

I'm assuming the .../transcode url for live tv transcodes to a buffer file but what tools are you using? Is it a custom directshow graph or are you using ffmpeg? Or something else?

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#2
2012-06-03, 01:15 AM
The URL formation mentioned by dark_half can be used. Be warned though, it's not super reliable. It uses ffmpeg to do the transcoding. It generally works, but when it fails, there isnt much I can do other than shrugging my shoulders - I really dont want to get into debugging inside ffmpeg and making changes to ffmpeg etc. Newer versions of ffmpeg.exe might help with some of those situations though.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,318
Threads: 865
Joined: May 2006
#3
2012-06-03, 01:22 AM
To use a newer ffmpeg you are going to need to open up the command line. The one that is hardcoded hasn't worked for a while.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#4
2012-06-03, 01:51 AM
I've made the command line configurable for the next release.
bgowland
Offline

Posting Freak

Posts: 4,535
Threads: 376
Joined: Dec 2004
#5
2012-06-03, 01:59 AM
sub Wrote:It generally works, but when it fails, there isnt much I can do other than shrugging my shoulders - I really dont want to get into debugging inside ffmpeg and making changes to ffmpeg etc.
Fair enough - I was going to leave the default for live tv as the /live formation but add an option in the nDroid client settings to use /transcode. I'm happy to put a disclaimer in for reliability issues etc.

Martin's comment about a 'command line' is part of my question. Are you firing ffmpeg using something like a 'shell' command? I was assuming if I want to transcode for videos/recordings I was probably going to have to do that anyway to a temp transcode file, buffer for a few seconds then have my streamer thread start writing it out in the response.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#6
2012-06-03, 02:40 AM
Yes, behind the scenes it launches an instance of ffmpeg.

For the next release, the web server /transcode url can also stream recordings using http://<server>:8866/transcode?record=1234&resolution=720x406&bitrate=900k format, where 1234 is the recording OID. With this change, you should be able to stream either recording or live tv, so should be set.
bgowland
Offline

Posting Freak

Posts: 4,535
Threads: 376
Joined: Dec 2004
#7
2012-06-03, 03:10 AM
sub Wrote:For the next release, the web server /transcode url can also stream recordings using http://<server>:8866/transcode?record=1234&resolution=720x406&bitrate=900k format, where 1234 is the recording OID. With this change, you should be able to stream either recording or live tv, so should be set.
OK, that's great thanks.

Generally as things are with nDroid it works fine for me with SD recorded with UK DVB-T but I can see it will be a useful option for people streaming HD to whatever platform.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 722 2021-10-22, 06:58 PM
Last Post: sub
  Import/export recordings via API? whurlston 4 2,997 2019-02-19, 11:48 AM
Last Post: Graham
  Conflict recordings scJohn 1 2,102 2018-03-23, 07:43 PM
Last Post: sub
  API / web call for setting recordings Pbathuk 2 2,633 2018-01-13, 05:17 AM
Last Post: Pbathuk
  API access to artwork and deleting recordings cncb 29 12,432 2016-11-06, 02:20 AM
Last Post: mvallevand
  Transcoding service mvallevand 27 9,931 2016-08-26, 07:43 PM
Last Post: sub
  How to move recordings without them getting deleted from db drmargarit 4 3,116 2015-09-27, 05:33 PM
Last Post: sub
  Best approach to creating recurring recordings from c# drmargarit 0 2,172 2015-09-27, 01:32 AM
Last Post: drmargarit
  How to get edl information for videos in a web client? fred250 27 7,980 2014-12-10, 12:39 AM
Last Post: fred250
  Changing the recording priority on recurring recordings cbgifford 4 2,781 2014-08-17, 03:13 PM
Last Post: Kiwi

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

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

Linear Mode
Threaded Mode