FAQ  •  Register  •  Login

Panasonic TX-55CX740E aspect ratio and codec support

<<

Excentrik

Serviio newbie

Posts: 4

Joined: Mon Oct 10, 2016 7:47 pm

Post Mon Oct 10, 2016 8:15 pm

Panasonic TX-55CX740E aspect ratio and codec support

So after a few months struggling with a varied issues (mkv, subtitles, aspectio ratios, ...), I finally decided to post here.

I'm using a "customized" profile adapted from the "Viera 2015":
  Code:
   <Profile id="vieratx55" name="Panasonic Viera (TX-55)" extendsProfileId="1">
      <!-- Panasonic Viera TX 2015 Models:
      Supports native streaming of mainstream MP4, MKV and XVid files -->
      <Detection>
         <UPnPSearch>
                <FriendlyName>VIERA TX-55*</FriendlyName>
                <Manufacturer>Panasonic</Manufacturer>
         </UPnPSearch>
      </Detection>
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <Transcoding>
         <!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="mp4" vCodec="mjpeg" />
            <Matches container="mpeg" vCodec="mpeg1video" />
            <Matches container="matroska" vCodec="vp8" />     
            <Matches container="matroska" vCodec="vp9" />
            <Matches container="ogg" />
            <Matches container="rm" />
         </Video>
         <!-- remux FLAC/TrueHD in MKV/MP4 to AC3, DTS (MP4) to AC3 -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <Matches container="*" vCodec="h264" aCodec="dca" /> <!-- Uncomment this line if DTS is not supported natively -->
            <Matches container="*" vCodec="h264" aCodec="dts-hd" />
            <Matches container="*" vCodec="h265" aCodec="dts-hd" />
            <!--Matches container="matroska" vCodec="h264" aCodec="flac" / -->
            <Matches container="*" vCodec="h264" aCodec="truehd" />
         </Video>
         <!-- Transcode DivX (XVid is supported) -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384">
            <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50,xvid" />
            <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50,xvid" />
            <Matches container="avi" vCodec="dvvideo" />
         </Video>
         <!-- unsupported audio will be transcoded into lpcm audio -->
         <Audio targetContainer="lpcm" forceInheritance="true">
            <Matches container="ogg" />
            <Matches container="asf" />
            <Matches container="adts" />
            <Matches container="mpc" />
            <Matches container="ape" />
            <Matches container="dsf" />
         </Audio>
      </Transcoding>
      <GenericTranscoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" DAR="16:9" aBitrate="384" />
      </GenericTranscoding>
      <Subtitles>
         <SoftSubs mime-type="text/srt" />
      </Subtitles>
      <ThumbnailsResolution>HD</ThumbnailsResolution>
   </Profile>


My current problem is with this movie:
  Code:
General
Complete name                            : train.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 700 MiB
Duration                                 : 2 h 8 min
Overall bit rate                         : 760 kb/s
Writing library                          : VirtualDub build 35491/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : 2
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Muxing mode                              : Packed bitstream
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 2 h 8 min
Bit rate                                 : 654 kb/s
Width                                    : 640 pixels
Height                                   : 272 pixels
Display aspect ratio                     : 2.35:1
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.157
Stream size                              : 603 MiB (86%)
Writing library                          : XviD 67

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 2 h 8 min
Bit rate mode                            : Constant
Bit rate                                 : 96.0 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Stream size                              : 88.4 MiB (13%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 42  ms (1.00 video frame)
Interleave, preload duration             : 500  ms
Writing library                          : LAME3.99r
Encoding settings                        : -m j -V 4 -q 3 -lowpass 15.1 -b 96


It plays fine EXCEPT that it shows the video surrounded by black bars in all sides.
Clicking on the (only) other Aspect Ratio option of the TV shows the video even smaller (with bigger black bars around).
Any help trying to figure out a solution, or hints on how to improve the profile, would be great.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Oct 12, 2016 12:02 am

Re: Panasonic TX-55CX740E aspect ratio and codec support

From the modification you made to the Viera 2015 profile I posted, it suggests that Xvid isn't supported by your TV? If that is the case (confirm by playing the file by using the Generic Profile) you can actually get rid of the fourcc tests:

  Code:
<!-- Transcode DivX (XVid is supported) -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384">
       <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50,xvid" />
       <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50,xvid" />
       <Matches container="avi" vCodec="dvvideo" />
</Video>
to
  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384">
       <Matches container="avi" vCodec="mpeg4" />
       <Matches container="avi" vCodec="msmpeg4" />
       <Matches container="avi" vCodec="dvvideo" />
</Video>
but that won't fix the problem (if AVI's are not supported at all you can condense this even further)....

Is it only this one file? If so, try remuxing it as this fixes a lot of issues with AVI files in particular (to remux use the command: ffmpeg -i "oldfilename.avi" -c copy -map 0 "newfilename.avi"; or use my WinHelper program).
What happens if you remove the DAR="16:9" from the lines above?
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

Excentrik

Serviio newbie

Posts: 4

Joined: Mon Oct 10, 2016 7:47 pm

Post Wed Oct 12, 2016 6:11 am

Re: Panasonic TX-55CX740E aspect ratio and codec support

Hi

Actually, that change that I made was an experiment to see if I could get the Aspect Ratio fixed with transcoding .
I've removed the xvid, since my TV does actually support it.

Regarding when it happens, it also happens to other videos with same enconding settings as:
  Code:
General
Complete name                            : movie.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom)
File size                                : 999 MiB
Duration                                 : 2 h 13 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 048 kb/s
Encoded date                             : UTC 2016-02-12 09:55:32
Tagged date                              : UTC 2016-02-12 09:55:32

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 h 13 min
Bit rate                                 : 949 kb/s
Maximum bit rate                         : 3 966 kb/s
Width                                    : 1 280 pixels
Height                                   : 536 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.058
Stream size                              : 903 MiB (90%)
Writing library                          : x264 core 148 r2638 7599210
Encoding settings                        : cabac=1 / ref=5 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=949 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2016-02-12 09:52:08
Tagged date                              : UTC 2016-02-12 09:55:51
Color range                              : Limited
Color primaries                          : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 2 h 13 min
Source duration                          : 2 h 13 min
Bit rate mode                            : Variable
Bit rate                                 : 96.0 kb/s
Maximum bit rate                         : 142 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 91.3 MiB (9%)
Source stream size                       : 91.3 MiB (9%)
Default                                  : Yes
Alternate group                          : 1
Tagged date                              : UTC 2016-02-12 09:55:51


If the DAR="16:9" is present, then there are black bars all around the video.
Without the DAR="16:9", then the video fills the whole screen, but is vertically stretched.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Oct 12, 2016 9:37 am

Re: Panasonic TX-55CX740E aspect ratio and codec support

So when you play that XVid (without transcoding) is it being stretched? Does the aspect button on the remote do anything in the case where the video is played natively?

For transcoded video, the DAR statement will add black bars top and bottom. The other thing it does is put the video in a 4:3 frame/aspect ratio. Normally your TV will stretch this out to fill the screen, so that you end up with the correct aspect - on a 16:9 TV displaying a 2.4:1 video this mean you will have black bars top and bottom.

For some reason your TV isn't stretching the 4:3 frame out. This stretching is normally just an option on your aspect/zoom button but you have tried that. The other thing to perhaps look for in your TV menu is what options exist for 4:3 video if any and play with them.

Other than that, the only thing I can think of is to look deeper at what Serviio is doing. To do that, set detailed logging on and paste the ffmpeg command that gets executed when you play the video to here, and lets play with it.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

Excentrik

Serviio newbie

Posts: 4

Joined: Mon Oct 10, 2016 7:47 pm

Post Wed Oct 12, 2016 6:44 pm

Re: Panasonic TX-55CX740E aspect ratio and codec support

DenyAll wrote:So when you play that XVid (without transcoding) is it being stretched? Does the aspect button on the remote do anything in the case where the video is played natively?


Without transcoding, the (1st) video actually plays fine. Pressing the aspect ratio button just shrinks the image, keeping the aspect ratio.
So that solves that one (no idea why I added the xvid since it seems to work now).

DenyAll wrote:For transcoded video, the DAR statement will add black bars top and bottom. The other thing it does is put the video in a 4:3 frame/aspect ratio. Normally your TV will stretch this out to fill the screen, so that you end up with the correct aspect - on a 16:9 TV displaying a 2.4:1 video this mean you will have black bars top and bottom.

For some reason your TV isn't stretching the 4:3 frame out. This stretching is normally just an option on your aspect/zoom button but you have tried that. The other thing to perhaps look for in your TV menu is what options exist for 4:3 video if any and play with them.

Yeah, I've tried searching and playing with every option, but the TV seems not to want to stretch the video. No options anywhere, except even smaller video.


DenyAll wrote:Other than that, the only thing I can think of is to look deeper at what Serviio is doing. To do that, set detailed logging on and paste the ffmpeg command that gets executed when you play the video to here, and lets play with it.

Ok, I'll try to see if I can figure the detailed logging. In the meantime, do you happen to know the settings to not transcode that second video, just to see if TV supports it.
I don't see that that video matches any of the transcode settings but it's still being transcoded for some reason.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Oct 12, 2016 11:44 pm

Re: Panasonic TX-55CX740E aspect ratio and codec support

I don't see that that video matches any of the transcode settings but it's still being transcoded for some reason.
Check your subtitle settings - if "Enable Burned-in subtitles" is checked the video will be transcoded according to the GenericTranscoding block.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

Excentrik

Serviio newbie

Posts: 4

Joined: Mon Oct 10, 2016 7:47 pm

Post Thu Oct 13, 2016 6:04 am

Re: Panasonic TX-55CX740E aspect ratio and codec support

DenyAll wrote:
I don't see that that video matches any of the transcode settings but it's still being transcoded for some reason.
Check your subtitle settings - if "Enable Burned-in subtitles" is checked the video will be transcoded according to the GenericTranscoding block.


OMG, you tha man. Both videos work great now. Time to actually enjoy watching them :)

Return to Panasonic

Who is online

Users browsing this forum: No registered users and 3 guests

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