Page 1 of 1

DLNA and Display Aspect Ratio?

PostPosted: Thu Mar 01, 2012 2:54 pm
by Knaldgas
Hi

I've just bought an LG 42LW650W on which I get videos through DLNA with incorrect aspect ratio (USB playing of the very same file works perfectly).
I wrote an email to LG asking how to solve this, and gets the response that the TV is showing what is feed to it. Before I reply, I would like to know how DLNA is specified with regard to Display Aspect Ratio - Is DAR send over DLNA? In other words, does the TV get the needed information?

Even if I somehow manage to convince LG that this should be fixed (right now I presume it is a flaw in the LG TV), I still would like the TV to show my movies with the correct aspect ratio, using the full screen estate.
Serviio can do that as far as I've learned, but how is different TVs handled? - I mean if this TV requires media in "this" format and that TV requires media in "that" format, how is this accomplished in a seamless way?

~Per

Re: DLNA and Display Aspect Ratio?

PostPosted: Thu Mar 01, 2012 8:57 pm
by Cerberus
Knaldgas wrote:Hi

I've just bought an LG 42LW650W on which I get videos through DLNA with incorrect aspect ratio (USB playing of the very same file works perfectly).
I wrote an email to LG asking how to solve this, and gets the response that the TV is showing what is feed to it. Before I reply, I would like to know how DLNA is specified with regard to Display Aspect Ratio - Is DAR send over DLNA? In other words, does the TV get the needed information?

Even if I somehow manage to convince LG that this should be fixed (right now I presume it is a flaw in the LG TV), I still would like the TV to show my movies with the correct aspect ratio, using the full screen estate.
Serviio can do that as far as I've learned, but how is different TVs handled? - I mean if this TV requires media in "this" format and that TV requires media in "that" format, how is this accomplished in a seamless way?

~Per


sadly LG dlna support on old models is CRAP so im not supprised but i have just seen sink information for a brand new LG and DLNA is perfect on it, so maybe they will update their older models firmware soon and fix all their bugs.

Re: DLNA and Display Aspect Ratio?

PostPosted: Fri Mar 02, 2012 6:59 am
by Knaldgas
Cerberus wrote:sadly LG dlna support on old models is CRAP so im not supprised...

I had hoped the LW (2011) models were not ... old :shock:

My question is: is Display Aspect Ratio delivered to the TV over DNLA?

Re: DLNA and Display Aspect Ratio?

PostPosted: Fri Mar 02, 2012 1:21 pm
by zip
LG profile doesnt anything so the file is delivered as-is. So it's up to the TV to decide on the aspect ratio. The information is usually stored in the file, so yes.

Re: DLNA and Display Aspect Ratio?

PostPosted: Fri Mar 02, 2012 4:43 pm
by Knaldgas
Where do I find information as to how to make a profile which transcodes MKV to MKV with anamorphic clipping - cutting top and bottom?

Re: DLNA and Display Aspect Ratio?

PostPosted: Fri Mar 02, 2012 4:46 pm
by will
Have a look at this thread viewtopic.php?f=11&t=2956

Re: DLNA and Display Aspect Ratio?

PostPosted: Fri Mar 02, 2012 7:26 pm
by Knaldgas
I'm not sure I understand this correctly: Do I need to recompile Serviio to achieve this?
If so, where do I get the source?

Re: DLNA and Display Aspect Ratio?

PostPosted: Fri Mar 02, 2012 7:54 pm
by will
No, you write a script (examples are provided in that thread) which adds extra parameters to fix DAR and then call ffmpeg.

You then tell serviio to call your script (rather than calling ffmpeg directly).

Re: DLNA and Display Aspect Ratio?

PostPosted: Thu Mar 29, 2012 7:37 am
by Knaldgas
Finally I've got some time again... :roll:
Thanks for the explanation. I will try to make a transcoding profile for my LG TV based on this info. :)

Re: DLNA and Display Aspect Ratio?

PostPosted: Thu Mar 29, 2012 11:54 am
by Knaldgas
Ok, let's see:
  1. Used the serviio-ffmpeg.pl script from Illico, put it in the bin-directory of serviio root.
  2. Changed the serviio.sh to include: -Dffmpeg.location=$SERVIIO_HOME/bin/serviio-ffmpeg.pl
  3. Used the profile from Cerberus: http://forum.serviio.org/viewtopic.php?f=12&t=5558&p=40142&hilit=LW550#p40142

However, serviio.log now complains with:
WARN [FFMPEGWrapper] FFmpeg is not compiled with librtmp support, RTMP streaming will not work.
WARN [FFMPEGWrapper] Could not work out FFmpeg default User-Agent

I suppose the serviio-ffmpeg.pl script causes these warnings, which seem to mean that point 2 actually works (the script gets called by serviio).

Any hints on how to proceed?

Re: DLNA and Display Aspect Ratio?

PostPosted: Thu Mar 29, 2012 6:34 pm
by Illico
Knaldgas wrote:Any hints on how to proceed?

Some informations:
1- This script is for debugging purpose and could help to resolved the aspect ratio issue on Sony Bravia TV. This is not an official script.
2- This script is only used when transcoding is applied (ffmpeg process will be wrapped), files delivered in native format or file remuxed are not concerned.
3- Do you check that the ffmpeg path on the serviio-ffmpeg.pl script, you have to use the ffmpeg delivered with Serviio installation package (.../serviio/lib).

Re: DLNA and Display Aspect Ratio?

PostPosted: Sat Mar 31, 2012 8:37 am
by Knaldgas
I am aware that the script is not production grade, but it seemed like a place to start.

I have ripped some movies with MakeMKV, and as I wrote, I'm using the profile from Cerberus: http://forum.serviio.org/viewtopic.php?f=12&t=5558&p=40142&hilit=LW550#p40142. Shouldn't that profile enable transcoding for mkv files toward my TV? - The profile is selected correctly.

I cannot find ffmpeg as part of the serviio installation.
I've downloaded and extracted the serviio-0.6.2-linux.tar.gz but the ffmpeg application is nowhere to find in that archive (just a ffmpeg license).

And
  Code:
ffmpeg -protocols 2>/dev/null |grep rtm

gives
IO. rtmp
IO. rtmpt
IO. rtmpe
IO. rtmpte
IO. rtmps

Btw, I'm running Debian Wheezy.

Thanks.

Re: DLNA and Display Aspect Ratio?

PostPosted: Sat Mar 31, 2012 7:00 pm
by Illico
Sorry, I could not help you when perl script is used on linux (mine is based on Windows OS).