FAQ  •  Register  •  Login

Newbie question about Serviio usage

<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Tue Feb 11, 2014 9:37 pm

Newbie question about Serviio usage

I have satellite receiver, based on Linux (Enigma E2). It is possible to stream received programs over net using as renderer VLC for example. It works very nice in my home network. The link to stream program from satbox to PC looks like this:

http://username:password@satbox_ip_addr ... 0000:0:0:0:

I want to stream TV programs from my home satbox via Internet to Android based devices like Samsung tablet.
To do this I need several features.
- create in Serviio WEB panel, links to each TV channel under "Video" -> "Online" section
- secure access from Internet to streaming port of Serviio (user/pass is minimum)
- transcoding H.264 based video stream to MPG2
- transcoding video stream to lower bitrate and resolution to meet my upstream bandwidth limitation with automatic recognition of input stream from my satbox (H.264 or mpg2, HD or SD)
- possibility to play such stream in any Android apps.

Is it possible configure Serviio to meet my needs?
<<

Iveky

User avatar

DLNA master

Posts: 329

Joined: Thu Jan 31, 2013 5:17 pm

Location: Split, Croatia

Post Wed Feb 12, 2014 11:12 am

Re: Newbie question about Serviio usage

it will work if your vlc link with user/pass for test channel works in serviio online section.
resoltion is easy changable using proper profile, i can post you mine that i use for my android devices at home...

Sent from my LG-E440 using Tapatalk 2
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Wed Feb 12, 2014 8:45 pm

Re: Newbie question about Serviio usage

I try to add online video source, by placing url address of VLC working video stream, but "Online" option does not show that both on my Samsung TV or on PC. What I am doing wrong? See attached screenshot.
I will be glad if You post me proper profile for Android based devices.
Attachments
screen24.png
screen24.png (28.53 KiB) Viewed 14328 times
screen25.png
screen25.png (50.13 KiB) Viewed 14328 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Feb 13, 2014 12:06 am

Re: Newbie question about Serviio usage

You should probably use Live Stream, not Web Resource
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Thu Feb 13, 2014 7:02 am

Re: Newbie question about Serviio usage

I tried both. Still no presence of my new defined stream in "Online" sources.
<<

Iveky

User avatar

DLNA master

Posts: 329

Joined: Thu Jan 31, 2013 5:17 pm

Location: Split, Croatia

Post Thu Feb 13, 2014 7:22 am

Re: Newbie question about Serviio usage

can you play it using vlc?

Sent from my LG-E440 using Tapatalk 2
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Thu Feb 13, 2014 7:33 am

Re: Newbie question about Serviio usage

Yes, of course! I don know is it important but I use Linux test version of Serviio.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Feb 13, 2014 9:59 pm

Re: Newbie question about Serviio usage

What URL are you using? paste it here as a ServiioLink if possible. http://www.serviio.org/support/10-uncat ... erviiolink
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Fri Feb 14, 2014 9:23 am

Re: Newbie question about Serviio usage

This is the link, working in VLC:
http://root:lans3@pvr/web/stream.m3u?re ... me=TVN+BiS

I just place that link above as "Source URL" in Seriio console.

This is link exported as Serviio Link, by rightclick on "Source URL" in Serviio console:
serviio://video:web?url=http%3A%2F%2Fro ... me=TVN+BiS
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Fri Feb 14, 2014 9:08 pm

Re: Newbie question about Serviio usage

mackowiakp wrote:Yes, of course! I don know is it important but I use Linux test version of Serviio.


Do you have ffmpeg compiled and install in linux? Can you run "ffmpeg" from terminal and paste it here?

NPuser
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Sat Feb 15, 2014 7:17 am

Re: Newbie question about Serviio usage

Yes, I have ffmpeg installed from my Linux distro repository.

  Code:
[maciek@piotr ~]$ ffmpeg
ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 31 2013 11:45:10 with gcc 4.8.2 (GCC)
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopus --disable-libopencv --enable-libopenjpeg --enable-libtwolame --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libv4l2 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxvid
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Sun Feb 16, 2014 3:31 am

Re: Newbie question about Serviio usage

ffmpeg looks good. If it works in vlc, it should work on serviio but looks it does not for you. Lets try few things -

http://root:lans3@IP_Address/web/stream ... 0000:0:0:0: [Note: IP_address instead of pvr hostname - to rule out dns name resolve issue]

Do you have ffplay installed with ffmpeg? If so, you could simply do #ffplay "http://root:lans3@IP_Address/web/stream.m3u?ref=1:0:1:10E2:3E8:13E:820000:0:0:0:" and check to see if the link works. ffplay is a lot quicker way to check if the stream link before you add this as online source in serviio - as you know adding link and waiting for it appear becomes quite tedious when you are testing the stream. Serviio has the check stream feature but i visually like to see the stream work before adding to the online source.

Also, try ffplay "http://root:lans3@IP_Address/web/stream.m3u?ref=1:0:1:10E2:3E8:13E:820000:0:0:0" without ":" and without name=xxxx"

NPuser
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Sun Feb 16, 2014 9:27 am

Re: Newbie question about Serviio usage

Finally I got it working, with some unwanted features.

First - Your proposal. The IP address or name is not important in my installation because I have DNS server in my home network, dedicated for local network nodes.

So You have the result of using ffplay (ffplay is taken from repo of my Linux distro):

  Code:
[maciek@piotr ~]$ ffplay "http://root:lans3@pvr/web/stream.m3u?ref=1:0:1:10E2:3E8:13E:820000:0:0:0"
ffplay version 2.0.3 Copyright (c) 2003-2013 the FFmpeg developers
  built on Feb  9 2014 23:12:38 with gcc 4.8.2 (GCC)
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopus --disable-libopencv --enable-libopenjpeg --enable-libtwolame --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libv4l2 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxvid
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
http://root:lans3@pvr/web/stream.m3u?ref=1:0:1:10E2:3E8:13E:820000:0:0:0: Operation not permitted


I defined "Live stream" as http://pvr:8001/1:0:1:10E2:3E8:13E:820000:0:0:0. Now it is listed in "Online" section of Serviio WEB console in is playable on my tablet in local network using DLNA Android client.
But it takes a lot of time between defining new "Live stream" and it presence in "online" section of Serviio WEB console. I want to use Serviio only for streaming TV content from satbox via internet to my tablet. For local network I use Twonky Media for streaming disk stored files.
So transcoding and authorisation is major problem for me at this time. If it will be possible, I will buy several activations for my customers.

As it is noticeable, Serviio streams over port 8895:

  Code:
[maciek@piotr bin]$ netstat -at|grep tablet
tcp        0      0 piotr:8895                  tablet:34614                ESTABLISHED
tcp        0  42264 piotr:8895                  tablet:54492                ESTABLISHED
tcp        0      0 piotr:8895                  tablet:39361                ESTABLISHED


Lets start with transcoding. The stream I present in this post is SD, 576i mpg2 type. But different channel uses different resolution and encoding. So I have:
- SD, 576, mpeg2
- SD, 576, X.264
- HD 1080, X264

I want to define profile to transcode all above streams to SD, 576, mpg2 as first option or lower necessary bandwidth to aprox 0,7 Mbps, by lowering resolution and/or quality.

Next problem is authorisation of access from Internet to avoid unwanted usage. Keep in mind that it is practically impossible to use (for my customers) mechanisms like OpenVPN or SSH because of necessity of rooting Android devices. I use rooted devices but warranty is lost.

How can I reach my goal?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Feb 16, 2014 9:46 am

Re: Newbie question about Serviio usage

MediaBrowser (web app) and ServiiGo (android app) which are available to Serviio Pro users are both designed to work over the Internet and include password protection and Original / Medium / Low quality options. They are much easier to use for what you want than trying to get DLNA to work over a VPN etc...
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Sun Feb 16, 2014 10:52 am

Re: Newbie question about Serviio usage

Is it possible to get limited time activation (1 day is OK) key to test ServiiGo?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Feb 16, 2014 11:11 am

Re: Newbie question about Serviio usage

When did you first install Serviio? You get a 14 day trial each time you install a new version of it.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Sun Feb 16, 2014 7:29 pm

Re: Newbie question about Serviio usage

OK. THX. I got it fully working/transcoding in my home network. What ports I have to open to the World on my router to access Serviio via Internet (with authorisation)?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Feb 16, 2014 7:56 pm

Re: Newbie question about Serviio usage

23424, in most cases you can tick the box in the Serviio Console under the remote tab to automatically configure your router.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Sun Feb 16, 2014 8:39 pm

Re: Newbie question about Serviio usage

Got it! So two more question:
- You wrote about Android dedicated profile for transcoding. Can You send me one? At this moment I found H264 profile on ServiiGo as better but it does not save proportions of screen (16x9) so - as I understand - it is necessary to install proper profile on server side.
- What is Your proposal about remote access (via internet) by Linux based laptop? Any dedicated client or browser plugin?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Feb 16, 2014 8:51 pm

Re: Newbie question about Serviio usage

The profile is part of Serviio already, it's in the application-profiles.xml file and has the id serviigo_hls. I guess that the aspect ratio isn't correct because of missing info in the live stream.

Not sure about linux, which browsers have you tried?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 70 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.