FAQ  •  Register  •  Login

Mpeg2 aspect ratios

<<

elsalvador

Serviio newbie

Posts: 12

Joined: Tue Oct 23, 2012 5:29 pm

Post Fri Feb 08, 2013 8:00 am

Mpeg2 aspect ratios

Hi Guys,
Probably a newb question, but I'm v.confused.
I have a bunch of .ts files in mpeg2 format, from a PVR. For some reason there are two formats, 544x576 and 704x576.
I never noticed before because I as playing them with Qnap and NMT, or with VLC on windows, they just play OK.
My LG "smart tv" (2012) is probably being a bit too clever & shows the 544x576 as a tiny squashed picture which is unwatchable.

Is there any way to tell serviio how to change/force the aspect ratio like VLC does?
I have tried the 2012 LG profile, which doesn't seem to make a difference.
Thanks in advance :?:
elsalvador

ffmpeg -i output of "bad" file:
ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:51:33 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[mpeg2video @ 0x821fe0] mpeg_decode_postinit() failure
Last message repeated 7 times
[mpegts @ 0x7e79c0] max_analyze_duration reached
[NULL @ 0x824700] start time is not set in estimate_timings_from_pts
[mpegts @ 0x7e79c0] PES packet size mismatch
Input #0, mpegts, from 'GhostsOfChristmasPast.ts':
Duration: 02:12:54.21, start: 73771.216078, bitrate: 1803 kb/s
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Feb 08, 2013 8:36 am

Re: Mpeg2 aspect ratios

- First, could you update your ffmpeg : http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

- You can add DAR="16:9" option on transcoding definition (look at Sony profile)
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

elsalvador

Serviio newbie

Posts: 12

Joined: Tue Oct 23, 2012 5:29 pm

Post Mon Feb 11, 2013 6:15 am

Re: Mpeg2 aspect ratios

Hi Illico,

Thanks for the suggestions. I had read that it was better to compile your own ffmpeg, but a bit beyond me so I avoided it!
("It's called a 'comfort zone' for a reason" - Sheldon Cooper)

So I followed the instructions (and the special Ubuntu instructions elsewhere too), and think it's probably successful, bot sure how to tell.
I added the DAR="16:9" to all of the profiles for LG (2012) which is my telly, but they all refer to transcoding not to watching mpeg-2 files without transcoding...

Two results:
1. Serviio-web php has broken, and re-install of that hasn't helped
2. The Mpeg-2 files I'm trying to watch are still squashed.

Any other suggestions?
Thanks in advance
<<

elsalvador

Serviio newbie

Posts: 12

Joined: Tue Oct 23, 2012 5:29 pm

Post Tue Feb 12, 2013 7:47 am

Re: Mpeg2 aspect ratios

Hi Guys

After some searching about, it seems PHP5 got broke during the "compile ffmpeg" process.
So "apt-get install php5" fixed it, mostly, but marked php5-curl to be removed, so that had to be re-marked.
Now serviioweb-php is working again...

Still rubbish mpeg2 aspect ratio though.
Grateful for any suggestions on that score!

;-)
<<

elsalvador

Serviio newbie

Posts: 12

Joined: Tue Oct 23, 2012 5:29 pm

Post Sun Feb 17, 2013 1:09 pm

Re: Mpeg2 aspect ratios

Hi Guys

In my family tradition of "sort yourself out" I've worked out a blunt way of fixing the aspect ratio issue:
Squashed picture, wrong size, small picture, LG Smart TV, 16:9 not working

Use ffmpeg to convert the files permanently. Not (I think) the idea of a media server, doing the work beforehand, but it'll work:
Option 1: Force the size (to the same as the working files, around 4:3, let's not get ahead of ourselves)
-s:v 704x576

Option 2: Force ffmpeg not to lose quality (choose a number, I chose 1, sue me).
-qscale:v 1

Option 3: Automate it:
Use a bash script to find all the files, force them through the sausage machine & spit them out the other end.
http://ubuntuforums.org/showthread.php?t=1157644

And then sit back & enjoy the results.
This is only written in case someone googles the same question I had. :mrgreen:

Return to LG

Who is online

Users browsing this forum: No registered users and 9 guests

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