Hardware transcoding of PAL produces squashed images

This discussion was created from comments split from: Plex Media Server Hardware Transcoding on Synology DS216+II.

@ChuckPA
Hi, just used hardware transcoding on my DS216PLUSII since its usage is possible with plexpass. with HD content it works great, but with Pal DVD content, ripped with Makemkv and transcoded with Handenbrake (high quality, 4.1, mp4,h264), the picture is squeezed. aspect ratio isnt wright. is this a bug. with software transcoding everything is fine.

is this a bug?

bedt regards
Ekomax

If you re-encoded with HandBrake, it’s more likely you omitted something which sets the display size correctly.

I will need to know more about the input as well as the output

Can you hover over the item, click the ellipsis, click Get Info, then click View XML and paste that XML here with Code paragraph formatting (top of the reply window)

@ChuckPA

You mean this?
Medien

Video Resolution 576p
Dauer 41:13
Bitrate 1655 kbps
Width 720
Height 576
Aspect Ratio 1.78
Container MP4
Video Frame Rate PAL
Web Optimized Ja
Has 64bit Offsets 0
Video Profile high
Teil

Dauer 41:13
File CHICAGO Justice S01E01.mp4
Size 488.01 MB
Container MP4
Has 64bit Offsets 0
Web Optimized Ja
Video Profile high

Codec H264
Bitrate 1267 kbps
Anamorphic 1
Bit Depth 8
Chroma Subsampling 4:2:0
Color Range tv
Color Space smpte170m
Frame Rate 25 fps
Height 576
Level 4.1
Pixel Aspect Ratio 64:45
Profile high
Ref Frames 4
Stream Identifier 1
Width 720
Codec AC3
Sender 5.1
Bitrate 384 kbps
Sprache Deutsch
Audio Channel Layout 5.1(side)
Sampling Rate 48000 Hz
Stream Identifier 2

best regards
Ekomax

That’s the ‘Get Info’ results. When at that display, in the lower left corner, you see View XML. please click that.

It will open a browser tab. Copy/paste all that text into the reply window.
After pasting, highlight all of it and click the paragraph formatting symbol at the top (backwards P) and then click Code . This gives Code formatting and prevents the forum from obscuring the info.

@ChuckPA
Could say it in German ?

@ChuckPA
the browser tab opens but it is empty

@ChuckPA

you mean this?

https://10-0-1-11.05b49b57019e4c9aa0eacbddfed1f10d.plex.direct:32400/library/metadata/1740?checkFiles=1&includeExtras=1&X-Plex-Token=QBdyr9TkqU7xpEqM3UxV

Bilder sind besser und einfach :slight_smile:

Eins:

Zwo:

Drei:

Erfolg

MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="dc24fcfb-2019-4397-9222-9fe20229ddb8" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1506431992">
<Video ratingKey="588" key="/library/metadata/588" guid="com.plexapp.agents.imdb://tt1972591?lang=en" librarySectionID="1" librarySectionKey="/library/sections/1" studio="Weed Road Pictures" type="movie" title="King Arthur: Legend of the Sword" contentRating="PG-13" summary="Robbed of his birthright, Arthur comes up the hard way in the back alleys of the city. But once he pulls the sword from the stone, he is forced to acknowledge his true legacy - whether he likes it or not." rating="7.0" viewCount="1" lastViewedAt="1505168591" year="2017" tagline="From nothing comes a King" thumb="/library/metadata/588/thumb/1507872508" art="/library/metadata/588/art/1507872508" duration="7573504" originallyAvailableAt="2017-04-27" addedAt="1504148339" updatedAt="1507872508" chapterSource="mixed" primaryExtraKey="/library/metadata/3102" ratingImage="imdb://image.rating">
<Media videoResolution="1080" id="588" duration="7573504" bitrate="24498" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="592" key="/library/parts/592/1504148339/file.mkv" duration="7573504" file="/share/movies2/King Arthur Legend of the Sword (2017)/King Arthur Legend of the Sword (2017).mkv" size="23192243408" container="mkv" videoProfile="high">
<Stream id="29630" streamType="1" default="1" codec="h264" index="0" bitrate="24050" language="English" languageCode="eng" bitDepth="8" chromaSubsampling="4:2:0" frameRate="23.976" hasScalingMatrix="0" height="1080" level="41" profile="high" refFrames="4" scanType="progressive" width="1920"/>
<Stream id="29631" streamType="2" selected="1" codec="ac3" index="1" channels="6" bitrate="448" language="English" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000"/>
</Part>
</Media>

@ChuckPA

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV-Serien" librarySectionUUID="c3d30ad8-a3b2-4f70-a1c0-ee4de8aa3e0f" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1509118861">
<Video ratingKey="1740" key="/library/metadata/1740" parentRatingKey="1739" grandparentRatingKey="1738" guid="com.plexapp.agents.thetvdb://311896/1/1?lang=de" librarySectionID="2" librarySectionKey="/library/sections/2" type="episode" title="Im Namen des Volkes (3)" grandparentKey="/library/metadata/1738" parentKey="/library/metadata/1739" grandparentTitle="Chicago Justice" parentTitle="Staffel 1" contentRating="TV-14" summary="Bei einem verheerenden Lagerhausbrand sind 39 Menschen ums Leben gekommen. Die Polizei hat einen Verdächtigen verhaftet, der mittlerweile in Untersuchungshaft sitzt. Die Staatsanwaltschaft wirft ihm sowohl Brandstiftung als auch mehrfachen Mord vor. Jetzt ist es an Peter Stone und Chef-Ermittler Antonio Dawson, den Hinterbliebenen der Opfer Trost zu spenden. Als sich das Team einem Spitzenanwalt gegenübersieht, muss es sich Überlegungen zu einem riskanten Geständnis, erdrückenden Beweisen und einem fragwürdigen Motiv stellen." index="1" parentIndex="1" rating="7.7" viewCount="1" lastViewedAt="1509727182" year="2017" thumb="/library/metadata/1740/thumb/1509730458" art="/library/metadata/1738/art/1509730459" parentThumb="/library/metadata/1739/thumb/1509730458" grandparentThumb="/library/metadata/1738/thumb/1509730459" grandparentArt="/library/metadata/1738/art/1509730459" grandparentTheme="/library/metadata/1738/theme/1509730459" duration="2473920" originallyAvailableAt="2017-03-01" addedAt="1508953874" updatedAt="1509730458" chapterSource="media">
<Media videoResolution="576" id="4058" duration="2473920" bitrate="1655" width="720" height="576" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" container="mp4" videoFrameRate="PAL" optimizedForStreaming="1" has64bitOffsets="0" videoProfile="high">
<Part accessible="1" exists="1" id="4058" key="/library/parts/4058/1508953874/file.mp4" duration="2473920" file="/volume1/video/Serien/Chicago Justice/Chicago Justice Season 1/CHICAGO Justice S01E01.mp4" size="511711107" container="mp4" has64bitOffsets="0" optimizedForStreaming="1" videoProfile="high">
<Stream id="8865" streamType="1" default="1" codec="h264" index="0" bitrate="1267" anamorphic="1" bitDepth="8" chromaSubsampling="4:2:0" colorRange="tv" colorSpace="smpte170m" frameRate="25.000" hasScalingMatrix="0" height="576" level="41" pixelAspectRatio="64:45" profile="high" refFrames="4" streamIdentifier="1" width="720" />
<Stream id="8866" streamType="2" selected="1" default="1" codec="ac3" index="1" channels="6" bitrate="384" language="Deutsch" languageCode="ger" audioChannelLayout="5.1(side)" samplingRate="48000" streamIdentifier="2" />
</Part>
</Media>
<Extras size="0">
</Extras>
</Video>
</MediaContainer>

@Ekomax

Zeig mir, wie du HandBrake kodierst? Was sind die Videogrößen?

@ChuckPA
Ich schicke dir morgen die Bilder meiner Einstellungen. Heute ist es schon zu spät dafür - lebe in Österreich.
Vielen Dank für deine Hilfe.

I will send you pictures of my settings tomorrow. Today its to late - i‘m from Austria.
Thank you very much for your help.

Best regards
Ekomax

Danke,
Ich kenne Innsbruck, Axams, Seefeld, and Mösern (Telfs) als Schuler.

Bis Morgen

@ChuckPa

Schön das du Teile von Österreich kennst.
Was brachte dich hier her?

Here are my settings for PAL DVDz

best regards Ekomax

Ich habe in Koenigstein gewohnen. Ich war in USA geboren. Meine Tante und Unkle leben in Koenigstein. meine Eltern wollten, dass ich eine ordentliche deutsche Ausbildung habe. In diesen Jahren verbrachten wir viel Zeit in unserer Ferienwohnung im Mösern. Von dort bin ich überall hingegangen :slight_smile: Die HoheMunde ist mein Lieblingsort. Morgens zu klettern, Mittagessen auf dem Gipfel und am Abend herunterzukommen gab mir immer beruhigend und erfrischend. Jetzt spreche ich nicht so viel Deutsch. Ich versuche immer mit mir selbst zu sprechen damit ich nicht vergesse. Es ist viele Jahre her, seit ich zu Hause bin. Ich muss reisen und mich wieder erinnern, bevor ich nicht mehr in der Lage bin.

Jetzt, Handbrake. (bitte Englisch entschuldigen)

Your display size and storage size cause the distortion you see.

Geometry is 720x576 but you display as 1024 x 576. This causes your distortion. It stretches the horizontal to fit the display size. These must be the same ratio or same value. Either 720x675 or 1024x576 for both. Bitte niemals vermischen :slight_smile:

@ChuckPA
i will give it a try. but it works with software transcoding and also with synologys hardware transcoding.

best regards

edit

cant change these settings

@ChuckPA

cant change handbrake setting this way. and they are 720x576 - 1024x576. with software transcoding and video station hardware transcoding the picture isnt squeezed so it must be correct. there must be a problem with plex hardware transcoding with Pal DvDs an anamorphic material?

best regards

@Ekomax

Would you have time to make screen captures? The finer points of the HW transcoding matricies is something I haven’t done in a long time. I would like to present your information to the transcoder team and let them look. Once they see what’s happening for you, we’ll know.

From what you’re showing (I have no PAL source to test with myself), it probably has something wrong. If you can create a sample file (20 MB?) that would be great as well.

@chuckPa

ok. i will sent you a link to download in a privat message an put pictures in here.

best regards

@ChuckPa

I will send you a link in a PM with the sample file shortly - please contact me if downloading was successful.

Both images taken on Web App on my Mac - but its on every other player the same

With hardware transcoding:

Without hardware transcoding:

best regards