[Solved] External Videostream in embedded player?

General discussions.

Moderator: moderators

[Solved] External Videostream in embedded player?

Postby anders_r » Tue Nov 08, 2011 11:57 am

Ok, here goes, first post in this forum.....

I have my SS 4.6b1 installed and working brilliantly with all locally stored files. (Music and video).
I also have a TvHeadend - server (https://www.lonelycoder.com/hts/tvheadend_overview.html) installed and working on a different machine.
Tvheadend delivers mp2ts streams over http, url for a channel is: "http://tvheadend.local.net:9981/stream/channelid/225

I'd love to be able to view my tv-channels through subsonic, w/transcoding and all subsonic features.
I've noticed the "internet tv/radio" list only provides a link to the station, and thus is not of use for this.

So I ask: Is there any way i can get the stream to play in embedded player / external transcoded etc?
Will a playlist pointing to a channel cause it to be played "internally"? And if so, what format would work?

Regards
Anders R.
Last edited by anders_r on Fri Oct 12, 2012 10:20 pm, edited 1 time in total.
anders_r
 
Posts: 3
Joined: Mon Nov 07, 2011 12:31 pm

Re: External Videostream in embedded player?

Postby doeners » Fri Apr 27, 2012 9:43 am

I would really like this as well.

I will try to get some more info about the streams.
doeners
 
Posts: 1
Joined: Tue Mar 20, 2012 12:21 pm

[Solved] External Videostream in embedded player?

Postby anders_r » Fri Oct 12, 2012 10:17 pm

Ok, Here goes...

My quick solution for playing live tv from tvHeadend in embedded player.
It's simply a script that transcodes ts - stream from tvheadend to flv, and play in internal player.

Quick howto:

1. Put the "tvheadend" script in /var/subsonic/transcoders (Or whatever transcoders dir you have on your system). Set executable.

2. In Subsonic -> Settings -> Transcoders -> Add Transcoder - put:
Name: LiveTv (Or something)
Convert from: strm
Convert to: flv
Step 1: tvheadend %s %o %b %w %h
Save.

3. In Subsonic -> Settings -> General -> Video files - add "strm"

4. Create a directory for your .strm - files. Add this folder to Subsonic -> Settings -> Media folders -Add media folder

5. Create strm - files for the channels you would like to have available in subsonic
Example: "BBC_1_London.strm" containing "http://myTvhUser:myTvhPass@192.168.0.1:9981/stream/channelid/134"
(or use tvh_getChannels script to make .strm files for all channels.)
Put the strm - files in your newly created directory.

tvheadend_transcoder.zip


Good luck; enjoy.

Regards
Anders Riise
anders_r
 
Posts: 3
Joined: Mon Nov 07, 2011 12:31 pm

Re: [Solved] External Videostream in embedded player?

Postby anders_r » Fri Oct 12, 2012 10:21 pm

Oh - and it works in subsonic android app too. ;-)

./anders
anders_r
 
Posts: 3
Joined: Mon Nov 07, 2011 12:31 pm

Re: [Solved] External Videostream in embedded player?

Postby ralf667 » Wed Dec 10, 2014 2:22 am

Hi! anders_r,

Your solution work like a charm in Madsonic 5.0 , I use it in Qnap TS-251.
But when I update to version 5.1 (from standalone war and jar) it wont start anymore?
Do you have an idea or code update for the script... it display nothing in the log and video transcoding is working.
Only live stream problem... I really really like the tvheadend script because it can open any live stream that VLC can open too.

Thanks in advance!
ralf667
ralf667
 
Posts: 1
Joined: Wed Dec 10, 2014 2:14 am


Return to General

Who is online

Users browsing this forum: No registered users and 19 guests