Page 1 of 1

[Solved] External Videostream in embedded player?

PostPosted: Tue Nov 08, 2011 11:57 am
by anders_r
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.

Re: External Videostream in embedded player?

PostPosted: Fri Apr 27, 2012 9:43 am
by doeners
I would really like this as well.

I will try to get some more info about the streams.

[Solved] External Videostream in embedded player?

PostPosted: Fri Oct 12, 2012 10:17 pm
by anders_r
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

Re: [Solved] External Videostream in embedded player?

PostPosted: Fri Oct 12, 2012 10:21 pm
by anders_r
Oh - and it works in subsonic android app too. ;-)

./anders

Re: [Solved] External Videostream in embedded player?

PostPosted: Wed Dec 10, 2014 2:22 am
by ralf667
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