LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2011, 03:01 PM   #1
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Rep: Reputation: 15
IPTV streaming server on Debian


Hello all!

Well here's the thing my ISP offers IPTV that can we watched via VLC, but I was wandering how would I "restream" this for personal use?

I know VLC offeres a streaming option, but is there a simpeler way for me to just use the m3u script on my server and it rebroadcasts the signal, so converting or anything what so ever?
 
Old 08-02-2011, 03:51 PM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Hi, Which ISP and which country is this in?
Is the content encrypted?
Is this live TV? or VoD? so is the stream a multicast, or a unicast?

Then I'd like to know why you need to restream it. If it's a multicast, then you can have several pcs watching the same multicast, and only that one multicast comes into your home, so no bandwidth bottleneck there.

vlc can be run from the command line, so it's easy to script its use once you know exactly what you want to achieve
 
Old 08-02-2011, 04:05 PM   #3
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Original Poster
Rep: Reputation: 15
It's in Slovenia, Europe, the content is not encrypted and it's a multicast stream. I would would say multicast rebroadcast would be the best choice.

EDIT: forgot to anwser it's live TV.

Last edited by shorto; 08-02-2011 at 04:06 PM.
 
Old 08-02-2011, 04:18 PM   #4
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
if it's a live multicast, then why don't all your devices listen to that multicast?
That would help understand what you need your rebroadcast program to do
 
Old 08-03-2011, 02:29 AM   #5
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Original Poster
Rep: Reputation: 15
Well here is my plan basically; I'm moving to a location where this operator does not offer it's services. The only thing available there is 10/4mbit internet from another operator and that is that, so I'm keeping my apartment with my FTTH cables and a TV subscription with a server that rebroadcasts this TV programs to me so that I can watch them on my new location (the stream is 7-8mbit so with a 10mbit internet connection it shouldn't be a problem).
 
Old 08-03-2011, 03:40 AM   #6
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
ok, so outputing a multicast won't be an option. I don't expect those 2 operators to let multicasts flow between each other. actually, your ftth router probably prevents multicasts from exiting your home.

Getting the multicast into your home and resending it as unicast means roughly 15Mb/s given your input above. you may want to consider transcoding to a lower bitrate, using codec such as h264, divx, etc ... any codec that is bandwidth efficient will do.

You'll need to manage a way to reach your new home. http://icanhazip.com/ can be used to know your current IP address. Use wget to automate this in a script.

VLC can work as a server providing unicast using rtsp protocol. You'll need to research this, I did not dig deep into it.

Then you'll also need to manage the firewall on your new home's router so that the video unicast can come in.
 
Old 08-04-2011, 07:03 AM   #7
kalinski
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Smile use FreeBSD to restream

I use a FreeBSD 8.1 and converts 40 multicast channels to unicast with VLC - running on the HP d530 machine Pentium4 3GHz HT

Last edited by kalinski; 08-04-2011 at 07:09 AM.
 
Old 08-06-2011, 04:43 PM   #8
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Original Poster
Rep: Reputation: 15
Could you tell me how you did that, if a P3 can handle it my 2x Xeon 3.0 should do the job. So basically I get it I apt VLC since I'm using Debian and the what exactly (please not that I don't have a graphical interface), so basically I have a m3u list and that is it .
 
Old 08-07-2011, 12:43 AM   #9
kalinski
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
very simple, use the command screen / you need to install / and following lines:

#!/bin/bash
/usr/bin/killall -9 screen
/usr/bin/killall -9 vlc
/usr/bin/screen -A -m -d -S test-1 /usr/bin/cvlc udp://@239.255.0.30:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2000}'
/usr/bin/screen -A -m -d -S test-2 /usr/bin/cvlc udp://@239.255.0.17:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2010}'
/usr/bin/screen -A -m -d -S test-3 /usr/bin/cvlc udp://@239.255.0.50:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2020}'
/usr/bin/screen -A -m -d -S test-4 /usr/bin/cvlc udp://@239.255.0.101:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2040}'
/usr/bin/screen -A -m -d -S test-5 /usr/bin/cvlc udp://@239.255.0.103:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2050}'
/usr/bin/screen -A -m -d -S test-6 /usr/bin/cvlc udp://@239.255.0.104:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2060}'
/usr/bin/screen -A -m -d -S test-7 /usr/bin/cvlc udp://@239.255.0.106:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2070}'
/usr/bin/screen -A -m -d -S test-8 /usr/bin/cvlc udp://@239.255.0.63:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2080}'
/usr/bin/screen -A -m -d -S test-9 /usr/bin/cvlc udp://@239.255.0.40:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2090}'

script must be run under the user account. I use Linux and FreeBSD, and for different purposes, tests and trials have shown that what you want to do is best to use FreeBSD or OpenBSD.
I wish you luck,
if they are interested in something else ask!

p.s. - scripts first run is on Ubuntu server 7

Last edited by kalinski; 08-07-2011 at 12:46 AM.
 
Old 09-12-2011, 01:21 PM   #10
shorto
Member
 
Registered: Jul 2006
Distribution: Debian 6.0.2.1 i386
Posts: 111

Original Poster
Rep: Reputation: 15
Nice thank you it worked .

Now how about if I want to stream a playlist of local files to the net? Can I use a m3u playlist for local files or not?
 
Old 09-16-2011, 09:36 PM   #11
neo74
LQ Newbie
 
Registered: Sep 2011
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
to kalinski

Quote:
Originally Posted by kalinski View Post
very simple, use the command screen / you need to install / and following lines:

#!/bin/bash
/usr/bin/killall -9 screen
/usr/bin/killall -9 vlc
/usr/bin/screen -A -m -d -S test-1 /usr/bin/cvlc udp://@239.255.0.30:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2000}'
/usr/bin/screen -A -m -d -S test-2 /usr/bin/cvlc udp://@239.255.0.17:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2010}'
/usr/bin/screen -A -m -d -S test-3 /usr/bin/cvlc udp://@239.255.0.50:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2020}'
/usr/bin/screen -A -m -d -S test-4 /usr/bin/cvlc udp://@239.255.0.101:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2040}'
/usr/bin/screen -A -m -d -S test-5 /usr/bin/cvlc udp://@239.255.0.103:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2050}'
/usr/bin/screen -A -m -d -S test-6 /usr/bin/cvlc udp://@239.255.0.104:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2060}'
/usr/bin/screen -A -m -d -S test-7 /usr/bin/cvlc udp://@239.255.0.106:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2070}'
/usr/bin/screen -A -m -d -S test-8 /usr/bin/cvlc udp://@239.255.0.63:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2080}'
/usr/bin/screen -A -m -d -S test-9 /usr/bin/cvlc udp://@239.255.0.40:5500 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=10.1.45.222:2090}'

script must be run under the user account. I use Linux and FreeBSD, and for different purposes, tests and trials have shown that what you want to do is best to use FreeBSD or OpenBSD.
I wish you luck,
if they are interested in something else ask!

p.s. - scripts first run is on Ubuntu server 7
Hello friends, I have the same problem, on Debian server to re-stream 40 live TV's. Kalinski, how to start this script? how to customise 1 channel from this script? Kalinski, P.M me please. Thank you!

Shorto, just put links to your channels in a html with names of TV's

Last edited by neo74; 09-16-2011 at 09:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
red5 streaming server installation on debian squeeze failed. tkmsr Linux - Software 0 04-28-2010 06:26 AM
Darwin streaming server Video streaming local only ahmed_as8 Linux - Networking 2 05-28-2009 02:52 PM
Darwin Streaming Server 6.0.3 won't build on PPC Debian Etch Lannix Linux - Software 0 06-08-2008 03:49 AM
LXer: Streaming Satellite Channels with Linux for IPTV LXer Syndicated Linux News 0 07-25-2007 03:31 PM
LXer: Visioneering Releases Four New IPTV Set-top Boxes; Sonata IPTV(TM) Delivers Unmatched Video Quality Over Broadband LXer Syndicated Linux News 0 06-22-2006 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration