Page 1 of 1

Aspect ratio problem with online source

PostPosted: Thu Aug 23, 2012 1:01 pm
by casper
How can I force an aspect ratio for an individual live online source? My LG shows IPTV 16:9 streams with 4:3 aspect ratio. sorry , can't post links as they would not work for you anyway. The links were extracted from an xspf playlist I downloaded from provider (could not find a way to feed the entire list to Serviio). The xspf file contains aspect ratios for individual channels, but I can't specify this info for online source links in Serviio Console. Any ideas? I thought that maybe tweaking profiles xml would help?

Re: Aspect ratio problem with online source

PostPosted: Mon Sep 10, 2012 10:56 pm
by zip
post ffmpeg -i "stream_url"

Re: Aspect ratio problem with online source

PostPosted: Thu Sep 13, 2012 5:34 pm
by levitmic
zip wrote:post ffmpeg -i "stream_url"


i have the same problem.

ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 10 2012 03:40:45 with gcc 4.6.3
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-li
brtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-
prefix=i686-w64-mingw32- --pkg-config=pkg-config
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
[mpeg2video @ 02B700C0] mpeg_decode_postinit() failure
Last message repeated 10 times
[mpegts @ 015BC3E0] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 015BC3E0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://8****************************************':
Duration: N/A, start: 82572.653078, bitrate: 15192 kb/s
Program 1
Stream #0:0[0x44](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 192 kb/s
Stream #0:1[0x45]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 15000 kb/s, 26.96 fps, 25 tbr, 90k tbn, 50 tbc
At least one output file must be specified

I have streams in 16:9 and in 4:3. All my sources added manually in online source / live stream ->url : .......
My TV: 37LV5500

Re: Aspect ratio problem with online source

PostPosted: Thu Sep 13, 2012 6:34 pm
by Illico
The problem come from SAR 16:11, relative to this issue: https://bitbucket.org/xnejp03/serviio/i ... d-displays

Re: Aspect ratio problem with online source

PostPosted: Thu Sep 13, 2012 10:40 pm
by zip
Illico wrote:The problem come from SAR 16:11, relative to this issue: https://bitbucket.org/xnejp03/serviio/i ... d-displays

This is only related to FLV transcoding, ie MediaBrowser. He has problems on the TV AFAIK.

levitmic: Can you post detailed log of when playing the stream?

Re: Aspect ratio problem with online source

PostPosted: Fri Sep 14, 2012 4:48 am
by levitmic
Illico wrote:The problem come from SAR 16:11, relative to this issue: https://bitbucket.org/xnejp03/serviio/i ... d-displays


This is not SAP link.

Re: Aspect ratio problem with online source

PostPosted: Fri Sep 14, 2012 5:14 am
by levitmic
zip wrote:levitmic: Can you post detailed log of when playing the stream?

Re: Aspect ratio problem with online source

PostPosted: Fri Sep 14, 2012 9:56 am
by Illico
zip wrote:This is only related to FLV transcoding, ie MediaBrowser. He has problems on the TV AFAIK.

Yes, on log :
This link is delivered in native format, but it seems that the device close the connection
2012-09-14 07:55:52,772 DEBUG [VideoDeliveryEngine] Delivering file 'http://87.239.31.209:7001/?sid=b1bedcb431e445bf72e50c706dd048be' in native format
2012-09-14 07:55:52,772 DEBUG [ResourceDeliveryProcessor] Stream entity has length: 50000000000
2012-09-14 07:55:52,772 DEBUG [ResourceDeliveryProcessor] Sending file back
2012-09-14 07:55:52,772 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Fri, 14 Sep 2012 04:55:52 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.0.1,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-09-14 07:55:52,772 DEBUG [OnlineInputStream] Reading 1512000 bytes starting at 0
2012-09-14 07:55:52,878 DEBUG [WebServer] I/O error: Software caused connection abort: socket write error
2012-09-14 07:55:52,878 DEBUG [OnlineInputStream] Closing stream
2012-09-14 07:55:53,376 DEBUG [OnlineInputStream] Byte range not supported for http://87.239.31.209:7001/?sid=b1bedcb4 ... 706dd048be, returning the whole stream


Could you provide ffmpeg -i "http://87.239.31.209:7001/?sid=b1bedcb431e445bf72e50c706dd048be" result ?

Re: Aspect ratio problem with online source

PostPosted: Fri Sep 14, 2012 12:11 pm
by levitmic
Illico wrote:Could you provide ffmpeg -i "http://87.239.31.209:7001/?sid=b1bedcb431e445bf72e50c706dd048be" result ?

C:\Program Files (x86)\Serviio\lib>ffmpeg -i "http://87.239.31.209:7001/?sid=b1bedcb431e445bf72e50c706dd048be"
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 10 2012 03:40:45 with gcc 4.6.3
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-li
brtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-
prefix=i686-w64-mingw32- --pkg-config=pkg-config
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
[mpeg2video @ 02CC0000] mpeg_decode_postinit() failure
Last message repeated 22 times
[mpegts @ 0138C3C0] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0138C3C0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://87.239.31.209:7001/?sid=b1bedcb431e445bf72e50c706dd048be':
Duration: N/A, start: 54642.426989, bitrate: 15192 kb/s
Program 1
Stream #0:0[0x44](rus): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 192 kb/s
Stream #0:1[0x45]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 15000 kb/s, 30.10 fps, 25 tbr, 90k tbn, 50 tbc
At least one output file must be specified

Re: Aspect ratio problem with online source

PostPosted: Mon Sep 17, 2012 6:39 pm
by zip
The file is not transcoded, therefore up to the player to properly display the DAR.

You could set up transcodng of (online) mpegts streams and force DAR="16:9", but I'm not sure how well the LG behaves with transcoded streams.

Re: Aspect ratio problem with online source

PostPosted: Thu Jan 16, 2014 10:10 am
by rm_fan
Hi,

I am a newbie using Serviio, I use a LG 42LW650S and have a similar aspect ratio issue to the one described in this topic...
I have managed to see on my TV SopCast streams using the SopCast groovy, they always play at full screen on my TV (I believe is 16:9).
I have managed to see AceStreams using the method described in http://forum.serviio.org/viewtopic.php?f=20&t=15372 the problem is that AceStreams play in 4:3 on my TV, I can see the ACE player plays at the correct ratio on my PC running Serviio, so seems to be the TV not doing a great job.
I have tried modifying the transcoding options but and broke it a couple of times :) so not sure what else to try, this is what my profiles.xml looks like now:

<Profile id="8" name="LG TV / player" extendsProfileId="1">
<Detection>
<HttpHeaders>
<friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
</HttpHeaders>
</Detection>
<ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.LGProtocolHandler</ResourceTransportProtocolHandler>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<!--
Transcoding doesn't seem to work and some files can be played natively:
viewtopic.php?f=12&t=3914#p26273-->
<Transcoding>
<Video targetContainer="mpegts" targetACodec="ac3" DAR="16:9" >
<Matches container="matroska" aCodec="dca" />
</Video>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" >
<Matches container="flv" />
<Matches container="asf" vCodec="wmv2"/>
<Matches container="rm" />
<Matches container="wtv" />
</Video>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpegts" targetACodec="ac3" DAR="16:9">
<Matches container="mp4" vCodec="h264" />
<Matches container="flv" vCodec="h264" />
<Matches container="applehttp" vCodec="h264" />
<Matches container="asf"/>
<Matches container="rtp"/>
<Matches container="rtsp"/>
</Video>
</OnlineTranscoding>
<HardSubsTranscoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" />
</HardSubsTranscoding>
<Subtitles>
<SoftSubs mime-type="text/srt" />
</Subtitles>
</Profile>

Thanks in advance.