FAQ  •  Register  •  Login

transcoding vrvideo to var's vr-player on android

<<

bumblebee

Serviio newbie

Posts: 4

Joined: Wed Jan 24, 2018 9:32 am

Post Wed Jan 24, 2018 10:03 am

transcoding vrvideo to var's vr-player on android

Hi there,

first of all a big thanks to zip for making serviio possible.
I am new to the streaming stuff and serviio was working in a few minutes on my windows machine.

At the moment i am testing the dlna streaming to play vr videos on my moto g5 plus android smartphone.
I am using anydlna (android app) for browsing the serviio files and then handing over the file to var's vr player.
So far it is working but i noticed my smartphone getting really warm while playing which would mean that the smartphone is doing all the decoding, right?
Maybe i understand something wrong but shouldnt transcoding do the decoding on the fly and the smartphone would just play?

thanks in advance for any thoughts on that.
<<

DenyAll

DLNA master

Posts: 2175

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Jan 24, 2018 1:21 pm

Re: transcoding vrvideo to var's vr-player on android

So far it is working but i noticed my smartphone getting really warm while playing which would mean that the smartphone is doing all the decoding, right?
No necessarily - it could be getting hot just playing continuous (transcoded) video for a while.

But easy to check - what profile is being assigned to your device? If its the Generic DLNA profile then Serviio is sending the files as-is, and your device is doing any decoding. If youdont like that (there's nothing wrong with it - it has the advantage that you get full control over the playback - fwd, rwd, etc, which can be lost with transcoded files) then you can change profiles manually. The Direct TV profile transcodes almost everything to MPEG2 video at a maximum bit rate of 8Mbps (Vizio TV profile likewise transcodes almost everything but without the bit rate throttle).
DenyAll
Panasonic Viera CS610A | Panasonic Viera V20A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.9 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

bumblebee

Serviio newbie

Posts: 4

Joined: Wed Jan 24, 2018 9:32 am

Post Wed Jan 24, 2018 10:16 pm

Re: transcoding vrvideo to var's vr-player on android

Thanks for the info.
Well Generic DLNA profile is assigned to my device.
I switched it to Direct TV and Vizio TV which wasnt working but i could get it to work with LaCie Cinema Media Player.
After that i could see more cpu load on my windows machine which could be the transcoding.
But this is more or less a workaround, is there a way to put an profile for my android phone into serviio?

Something else i noticed: there are files which are not playing when i tap them. There are mp4 and wmv files, some of them are playing some not.
Could this be an codec issue?
Or should i recode those fies to some other format?

i checked with mediainfo the codecs and could find the differences in bold red.
Here 2 examples, maybe someone with more knowledge about this data see's the cause for not playing and could give some info to solve.

Working one:
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/mp41)
Overall bit rate mode : Variable
Overall bit rate : 8 155 kb/s
TIM : 00:00:00:00
TSC : 30
TSZ : 1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Bit rate : 7 994 kb/s
Width : 1 920 pixels
Height : 960 pixels
Display aspect ratio : 2.000
Frame rate mode : Constant
Frame rate : 30.000 FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.145
Language : English
Encoded date : UTC 2016-09-12 08:40:11
Tagged date : UTC 2016-09-12 08:40:11
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Bit rate mode : Variable
Bit rate : 158 kb/s
Maximum bit rate : 260 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Language : English



Not working:
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
Overall bit rate : 15.1 Mb/s
Writing application : Lavf57.56.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L5.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 3 frames
Format settings, GOP : M=4, N=90
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Bit rate : 15.0 Mb/s
Width : 3 840 pixels
Height : 1 080 pixels
Display aspect ratio : 3.556
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.121
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Duration_LastFrame : -19 ms
Bit rate mode : Constant
Bit rate : 126 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Default : Yes
Alternate group : 1
<<

bumblebee

Serviio newbie

Posts: 4

Joined: Wed Jan 24, 2018 9:32 am

Post Thu Jan 25, 2018 8:06 pm

Re: transcoding vrvideo to var's vr-player on android

Okay, this seems to be something related to serviio.
I tried to open the same file via a network share directly and it is playing.
So serviio seems not to be able to open it.
<<

DenyAll

DLNA master

Posts: 2175

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Thu Jan 25, 2018 11:46 pm

Re: transcoding vrvideo to var's vr-player on android

Which profile were you using when it failed?

Serviio can stream both of those files - it will either do so natively or via transcoding. If native - it will be up to your phones app to decode the file. If being transcoded - then we need to instruct Serviio how to transcode it for your phone.

Question what your trying to achieve here?

  1. If you are looking to access your media wherever you are on the planet, then look at ServiiGo (viewtopic.php?f=17&t=6803). The app is free (donate-ware) but does require Serviio Pro (http://serviio.org/buy-pro). This app is specifically designed for Android devices and has a large community base. All the profiles - when to transcode and when not to - have been work thru. If you go down this path its all you need to do.
  2. If you want to stay in the DLNA world, you're limited to using it only when on your local LAN (home WiFi). You can then buid a profile that is suitable for your device. If you want to go down this path then I can help.
  3. Having said that, the better practice is to stream the file natively and let the end device do the decoding (ps. ServiiGo will also send the file natively in Original Quality Mode - you can lower the quality which forces transcoding). This is where you started (with the Generic DLNA Profile).
Let me know which way you want to go (path 1, 2 or 3)
DenyAll
Panasonic Viera CS610A | Panasonic Viera V20A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.9 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

bumblebee

Serviio newbie

Posts: 4

Joined: Wed Jan 24, 2018 9:32 am

Post Mon Jan 29, 2018 9:50 am

Re: transcoding vrvideo to var's vr-player on android

Thanks for the info and the description of the possibilities.
Well, i found a way to recode the files which are not playing in serviio by default so that serviio can play them.
As i am not (yet?!) want to use it everywhere i would like to try option 2 to see how transcoding with my device would work.
<<

DenyAll

DLNA master

Posts: 2175

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Mon Jan 29, 2018 10:09 am

Re: transcoding vrvideo to var's vr-player on android

To create a custom profile do the following (I assume you have Serviio 1.9):

  • Copy the following into a text file:
      Code:
    <Profiles version="1.0">

       <Profile id="myAndroid" name="Android Phone DLNA" extendsProfileId="1">
          <!-- Copied from ServiiGo HLS Medium profile -->
          <Transcoding>
             <Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac" forceStereo="true" maxVBitrate="1000" maxHeight="480">
                <Matches container="*" />
             </Video>
          </Transcoding>
       </Profile>
       
    </Profiles>
  • Save the file as an xml file named user-profiles.xml in your Serviio\config folder.
  • Restart your PC
  • On restarting, manually assign your device to the new Android Phone DLNA profile that you have created (in Serviio Console, Status - select your device and Edit. Assign the profile from the drop down list - Press OK and then Save on the next screen).
This profile will transcode all files to a medium quality format - suitable for small screens such as a phone. I have assumed your phone and app can support HLS (applehttp). If not, change the "applehttp" to "mpegts" in the above and "acc" to "ac3" (save and restart). See how this goes.
DenyAll
Panasonic Viera CS610A | Panasonic Viera V20A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.9 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 1 guest

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