FAQ  •  Register  •  Login

1920x800 not correctly aspect ratio ( on Panasonic )

<<

Cju

Serviio newbie

Posts: 4

Joined: Mon Dec 12, 2011 2:37 pm

Post Mon Dec 12, 2011 2:43 pm

1920x800 not correctly aspect ratio ( on Panasonic )

Hello and sorry for my bad english,

I have an Panasonic TX P50GT30 and a HTPC on this runs Serviio (Serviio is great)

and i have a problem



I have a *.mkv video its 1290x800 aspect ratio
if I register the following in the profiles.xml then this runs in the correct aspect ratio. the video with 1920x800
become logical black bars above and down.

<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
</Video>

However some other mkv videos do not run any longer (anyhow not all)


if I write this in my profile.xml than runnig all *.mkv video, but the files with 1920x800 no black bars have more and are stretched represented

<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="matroska" vCodec="h264" />
</Video>


as I get all formats correctly indicated ???

one file (video) has 1920x800; Format profile: High@L4.1 Display aspect ratio : 2.40:1
other one videos has 1920x1080 Format profile: High@L5.1 Display aspect ratio : 16:9
and 1920x1080 Format profile : High@L4.1 Display aspect ratio : 16:9

please help ...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 12, 2011 5:03 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

enable detailed log, try to play the file again, find the ffmpeg command used for the transcode and run it manually. Also post it here. Then try to add the file to your library and play natively. It'll probably still show incorrectly but we can take it from there and try to tweak the FFmpeg command so that it works correctly in next version.
<<

Cju

Serviio newbie

Posts: 4

Joined: Mon Dec 12, 2011 2:37 pm

Post Tue Dec 13, 2011 1:39 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

I'm probably too stupid

so step by step

i edit the log4j.xml under \Program Files\Serviio\config

<category name="org.serviio">
<priority value="info"/>
</category>


to


<category name="org.serviio">
<priority value="debug"/>
</category>



then I write in my Profile.xml following

<Video targetContainer="mpegts">
Matches container="matroska" vCodec="h264" />
</Video>


Now I start servioo and play my video with 1920x800


Now I look at Program Files\Serviio\servio.log
I find there the ffmpeg command with the following content


-> ffmpeg.exe -i E:\Video\Test\my video.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts

The picture off my Pana is stretched (aspect ratio no correct)

i stop serviio .....




I delete my library and put it on new

now I write in my Profile.xml following

<Video targetContainer="mpegts">
Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
</Video>



Now I start servioo again and play my video with 1920x800 (The picture off my Pana has black bar (aspect ratio correct)
and look the servio.log !

now the ffmpeg command with the following content


ffmpeg.exe -i E:\Video\Test 2\my video.mkv -vframes 1 -vcodec copy -f h264 -vbsf h264_mp4toannexb -an pipe:
ffmpeg.exe -ss 120 -i E:\Video\Test 2\my video.mkv -an -vframes 1 -f image2 pipe:


and now ???
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 13, 2011 5:33 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

the second addition to the profiles.xml means you're not transcoding the file any more as it only transcodes files with level above 4.1. So this file plays ok natively.

try to run this

  Code:
ffmpeg.exe -i "E:\Video\Test\my video.mkv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts e:\video\Test\output1.mpg


It'll produce output1.mpg video which (after adding to serviio library) should play with wrong aspect (confirm that).

Then try to run this

  Code:
ffmpeg.exe -i "E:\Video\Test\my video.mkv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -aspect 16:9 -acodec copy -map 0:0 -map 0:1 -sn -f mpegts e:\video\Test\output2.mpg


and add output2.mpg to the library - any difference?
<<

Cju

Serviio newbie

Posts: 4

Joined: Mon Dec 12, 2011 2:37 pm

Post Tue Dec 13, 2011 8:03 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

no, no difference ... every two have the wrong aspect ratio
<<

andreas

Serviio newbie

Posts: 2

Joined: Wed Dec 14, 2011 12:57 am

Post Wed Dec 14, 2011 1:03 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

I'm having the same problem.
My suspicion is that DAR is completely ignored in transport streams and 16:9 is always assumed by the renderer.
In this case probably only something like the pad filter will help.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Dec 14, 2011 10:14 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

Zip, I think that "-aspect 16:9" option has no result when "-vcodec copy" is used
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
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Dec 14, 2011 10:15 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

andreas wrote:In this case probably only something like the pad filter will help.

Probably, but that means that h264 should be transcode into mpeg2video with padding filter...
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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 14, 2011 11:11 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

hmm that sucks, looks like they are not writing the DAR to the container header (if mpegts even supports this). Maybe someone can ask at the ffmpeg mailing list if this is possible? ;-)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 14, 2011 2:14 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

Could you try to remux the video from mkv to mpegts using TsMuxer to see if you get correct aspect ratio?
<<

andreas

Serviio newbie

Posts: 2

Joined: Wed Dec 14, 2011 12:57 am

Post Thu Dec 15, 2011 1:21 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

I tried remuxing with tsmuxer to ts and m2ts, but it did not make any difference. Both display the same as remuxed with ffmpeg.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 15, 2011 10:47 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

Ok, I wonder if it's something with the container (like mpegts cannot hold this aspect ration information) or the original video has not been encoded with the correct parameters.
<<

Gate33

Serviio newbie

Posts: 3

Joined: Wed Dec 14, 2011 10:50 pm

Post Thu Dec 15, 2011 10:48 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

I have a Panasonic TC-P50S30 Viera TV (2011 American Model) and also encounter the same issue. I normally stream MKV files natively as the TV supports it, but if the audio is DTS or something other than AC-3 I let Serviio transcode the file. If the file is transcoded, I too get an incorrect aspect ratio. Tried TSMuxer and received the same incorrect AR. If I use another program to convert the DTS audio to AC-3 and remux it into a MKV container I get the correct AR. This leads me to my question. Is it possible for Serviio to support transcoding the audio and repackaging it into a MKV container?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 15, 2011 11:50 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

no it can't, it stores some data at the end of the file so it's not suitable for on-the-fly transcoding. Can you change the aspect via your TV remote?
<<

Neoromancer

Streaming enthusiast

Posts: 27

Joined: Wed Jun 01, 2011 10:58 am

Location: Lithuania

Post Fri Dec 16, 2011 6:46 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

zip wrote:Can you change the aspect via your TV remote?


On Panasonic TX-P42G20E aspect with TV remote does not change. My opinion does not change and newer models.
Panasonic TX-P42G20E | Ubuntu server 10.04.3 64-bit | Serviio 0.6.2
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 16, 2011 9:48 am

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

Looks like these guys are having the same problem.

http://www.ps3mediaserver.org/forum/vie ... 07&start=0

From what I see we'd have to transcode the video instead of remux which would introduce huge CPU load, especially on HD videos.
<<

Cju

Serviio newbie

Posts: 4

Joined: Mon Dec 12, 2011 2:37 pm

Post Fri Dec 16, 2011 8:13 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

quote from a German forum


" Häufig wird die Auflösung geändert, die schwarzen Balken entfernt (gecropt), die Bitrate verringert und der Codec geändert.
Durch das entfernen der Schwarzen schwarzen Balken ensteht zum Beispiel eine Auflösung von 1280x544.
Wie viel der Höhe gecroppt/entfernt wird, hängt mit dem >Seitenverhältnis< des Films zusammen.
Dadurch kann es vorkommen das ein Film mal mehr, mal weniger an Höhe hat.
Das ist im Prinzip aber egal, da die schwarzen Balken automatisch von der Abspielsoftware wieder hinzugefügt werden.
StandAlone Geräte wie die PS3 oder BD-Player verlangen aber meist die volle Bildhöhe, sprich 720p bzw. 1080p."






ich finde, es wäre genial wenn die schwarzen Balken von der Serviio Software "automatisch" wieder hinzugefügt werden oder
wenn diese trotzdem im richtigem Aspect Ratio wiedergegeben werden könnten.


I mean, It would be cool if the black bars from the Serviio software "automatically" would add
or is there a possibility to play those formats anyway in the correct aspect ratio


kind regards
<<

Gate33

Serviio newbie

Posts: 3

Joined: Wed Dec 14, 2011 10:50 pm

Post Fri Dec 16, 2011 9:14 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

Neoromancer wrote:
zip wrote:Can you change the aspect via your TV remote?


On Panasonic TX-P42G20E aspect with TV remote does not change. My opinion does not change and newer models.


Unfortunately I can't correct the AR via the tv remote either. My tv allows me to choose between Original, Aspect 1, and Aspect 2 modes but all they do is zoom or stretch the image.

@zip
What program can I use to view the various aspect ratios of a given file. MediaInfo gives resolution and DAR but not PAR or FAR. Also when using MediaInfo to view the video properties, I'm assuming it's just giving the video stream info. How can I view the MKV header information?
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Dec 16, 2011 9:22 pm

Re: 1920x800 not correctly aspect ratio ( on Panasonic )

mkvmerge
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 31 guests

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