Page 1 of 1

Specify aspect ratio for a live source

PostPosted: Tue Aug 28, 2012 11:01 am
by casper
I need an ability to force a certain aspect ratio for an individual live stream.

Re: Specify aspect ratio for a live source

PostPosted: Tue Aug 28, 2012 12:50 pm
by Illico
- for an individual live stream : Not supported
- for all online resources streams : Supported (with profile editing)

Re: Specify aspect ratio for a live source

PostPosted: Wed Aug 29, 2012 12:04 pm
by casper
Illico wrote:- for an individual live stream : Not supported
- for all online resources streams : Supported (with profile editing)


For all streams - can you point me to a guide?

Re: Specify aspect ratio for a live source

PostPosted: Wed Aug 29, 2012 6:21 pm
by Illico
casper wrote:For all streams - can you point me to a guide?


You have to edit the profile.xml file:
Read this : http://www.serviio.org/index.php?option ... icle&id=24

You can use options :
maxHeight - optional; limits transcoded video height to this value. It will cause video transcoding (similar to forceVTranscoding)
DAR - optional; forces the output video to the given display aspect ratio; possible values: 16:9

What is your device, and what is the profile selected on serviio console ?

Re: Specify aspect ratio for a live source

PostPosted: Thu Aug 30, 2012 8:24 am
by casper
My device is an LG Smart TV (2012 model), currently using LG TV profile.

Re: Specify aspect ratio for a live source

PostPosted: Thu Aug 30, 2012 7:45 pm
by Illico
casper wrote:My device is an LG Smart TV (2012 model), currently using LG TV profile.


It seems that LG TV does not support transcoding but you can try this.

  Code:
   <Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>
      <!--
      Transcoding doesn't seem to work and some files can be played natively:
      http://forum.serviio.org/viewtopic.php?f=12&t=3914#p26273
      <Transcoding>
         <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" aCodec="ac3" />
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
            <Matches container="avi" vCodec="msmpeg4"/>
         </Video>
      </Transcoding> -->
      <OnlineTranscoding>
         <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" >
            <Matches container="*" />
         </Video>
      </OnlineTranscoding>      
   </Profile>


You can try with DAR="16:9" or DAR="4:3"
You can also play with maxHeight="720" option

Re: Specify aspect ratio for a live source

PostPosted: Sat Sep 01, 2012 6:24 am
by casper
I tried DAR="16:9" and maxHeight="720" - no effect. When I try 4:3, Serviio does not start at all. Any ideas?

Re: Specify aspect ratio for a live source

PostPosted: Sat Sep 01, 2012 8:21 am
by casper
OK I found that some sources are played correctly with a new LG 2012 profile, but not all.