Page 1 of 2

Newbie question about Serviio usage

PostPosted: Tue Feb 11, 2014 9:37 pm
by mackowiakp
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?

Re: Newbie question about Serviio usage

PostPosted: Wed Feb 12, 2014 11:12 am
by Iveky
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

Re: Newbie question about Serviio usage

PostPosted: Wed Feb 12, 2014 8:45 pm
by mackowiakp
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.

Re: Newbie question about Serviio usage

PostPosted: Thu Feb 13, 2014 12:06 am
by zip
You should probably use Live Stream, not Web Resource

Re: Newbie question about Serviio usage

PostPosted: Thu Feb 13, 2014 7:02 am
by mackowiakp
I tried both. Still no presence of my new defined stream in "Online" sources.

Re: Newbie question about Serviio usage

PostPosted: Thu Feb 13, 2014 7:22 am
by Iveky
can you play it using vlc?

Sent from my LG-E440 using Tapatalk 2

Re: Newbie question about Serviio usage

PostPosted: Thu Feb 13, 2014 7:33 am
by mackowiakp
Yes, of course! I don know is it important but I use Linux test version of Serviio.

Re: Newbie question about Serviio usage

PostPosted: Thu Feb 13, 2014 9:59 pm
by zip
What URL are you using? paste it here as a ServiioLink if possible. http://www.serviio.org/support/10-uncat ... erviiolink

Re: Newbie question about Serviio usage

PostPosted: Fri Feb 14, 2014 9:23 am
by mackowiakp
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

Re: Newbie question about Serviio usage

PostPosted: Fri Feb 14, 2014 9:08 pm
by npuser
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

Re: Newbie question about Serviio usage

PostPosted: Sat Feb 15, 2014 7:17 am
by mackowiakp
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'

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 3:31 am
by npuser
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

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 9:27 am
by mackowiakp
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?

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 9:46 am
by will
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...

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 10:52 am
by mackowiakp
Is it possible to get limited time activation (1 day is OK) key to test ServiiGo?

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 11:11 am
by will
When did you first install Serviio? You get a 14 day trial each time you install a new version of it.

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 7:29 pm
by mackowiakp
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)?

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 7:56 pm
by will
23424, in most cases you can tick the box in the Serviio Console under the remote tab to automatically configure your router.

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 8:39 pm
by mackowiakp
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?

Re: Newbie question about Serviio usage

PostPosted: Sun Feb 16, 2014 8:51 pm
by will
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?