Post Thu Nov 22, 2012 1:01 pm

My Panasonic G15B Profile - help needed

First of all the TV's Spec.
------------------------------
PANASONIC G15B (2009 model) only supports MPEG-2 (PS format) and DivX over DLNA.
Furthermore, DivX files support...
* Extension: "*.divx" and "*.avi"
Video
- Image Resolution: upto 720 x 576 pixels
- Codecs: DivX3, 4, 5 and 6
- Frame rate: upto 30 fps
Audio
- Streams: upto 8
- Format: MP3, MPEG and AC3
- Multichannel AC3 possible; MPEG multi is 2 channel conversion

My Profile (so far)
-----------------------
<Profile id="viera2009" name="Panasonic Viera G15B" extendsProfileId="1">
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="128" maxVBitrate="17000" DAR="16:9">
<Matches container="matroska" />
<Matches container="mp4" />
<Matches container="asf" />
<Matches container="avi" vCodec="h264" />
<Matches container="avi" vCodec="msmpeg4" />
<Matches container="avi" vCodec="wmv2" />
<Matches container="avi" vCodec="dvvideo" />
<Matches container="avi" vCodec="mpeg4"/>
<Matches container="mpeg" vCodec="mpeg1video" />
<Matches container="ogg" />
<Matches container="flv" />
<Matches container="3gp" />
</Video>
<!-- unsupported audio will be transcoded into mp3 audio -->
<Audio targetContainer="mp3">
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="lpcm" />
<Matches container="asf" />
<Matches container="adts" />
</Audio>
</Transcoding>
</Profile>


Reasons for some of the <video> parameters...
aBitrate="128" was added as higher values seem to end up with no audio.
maxVBitrate="17000" was added as one movie (Promethius) peaked over 50,000kbps (about 8 mins in), which caused major stutters.
DAR="16:9" made stargate SG-1 episodes display correctly. Otherwise, the right hand side of the TV image was like it had been stretch to fit screen. However, when this parameter is added another movie suffers from the same effect. It plays OK without the DAR parameter.

It is here I need some help. I think it is due to the Aspect Ratio or Bits/(Pixel*Frame) of the affected movies but cannot work out how to differentiate between them so the DAR parameter can be selectively applied. Here are the details of two affected movies/series...

1 Stargate SG-1 - Stretched image (about 25%) on right hand side without DAR parameter. Works OK with it.
Media Info...
General
Unique ID : 171835139794062457277230505471201479636 (0x81463E7ED3DBB9A698CF901312938BD4)
Complete name : C:\Users\David\My Movies\Stargate SG-1\Series 3\Stargate.SG1-s03e01.Into.the.Fire.mkv
Format : Matroska
Format version : Version 2
File size : 600 MiB
Duration : 44mn 12s
Overall bit rate : 1 896 Kbps
Encoded date : UTC 2010-05-08 23:57:55
Writing application : mkvmerge v3.3.0 ('Language') built on Mar 24 2010 14:59:24
Writing library : libebml v0.8.0 + libmatroska v0.9.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 44mn 12s
Bit rate : 1 447 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.175
Stream size : 446 MiB (74%)
Writing library : x264 core 88
Encoding settings : cabac=1 / ref=9 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=64 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1447 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Color primaries : BT.601 NTSC
Transfer characteristics : BT.709
Matrix coefficients : BT.601


Log Report...
ffmpeg.exe -i D:\Users\David\My Movies\Stargate SG-1\Series 3\Stargate.SG1-s03e01.Into.the.Fire.mkv -y -threads 6 -copyts -c:v mpeg2video -b:v 17000k -maxrate:v 17000k -bufsize:v 17000k -vf pad=854:480:67:0:black,setdar=4:3 -r 24000/1001 -g 15 -c:a copy -map 0:0 -map 0:1 -sn -f vob D:\TEMP\Serviio\transcoding-temp-41-viera2009-ORIGINAL.stf


2 The Expatriate - Works OK without DAR parameter. Stretched image (about 25%) on right hand side with DAR parameter.
Media Info...
General
Unique ID : 212854932966801909320597543165060620321 (0xA0225E719D7CD902BE77FD45A786A021)
Complete name : C:\Users\David\My Movies\The Expatriate2012 [720p].mkv
Format : Matroska
Format version : Version 2
File size : 4.36 GiB
Duration : 1h 40mn
Overall bit rate : 6 220 Kbps
Encoded date : UTC 2012-09-25 17:06:28
Writing application : mkvmerge v5.8.0 ('No Sleep / Pillow') built on Sep 2 2012 15:37:04
Writing library : libebml v1.2.3 + libmatroska v1.3.0

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 : V_MPEG4/ISO/AVC
Duration : 1h 40mn
Bit rate : 4 717 Kbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.271
Stream size : 3.22 GiB (74%)
Writing library : x264 core 125 r2208 d9d2288
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=9 / 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=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=4717 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No


Log Report...
ffmpeg.exe -i D:\Users\David\My Movies\The Expatriate2012 [720p].mkv -y -threads 6 -copyts -c:v mpeg2video -b:v 20000k -maxrate:v 20000k -bufsize:v 20000k -r 25 -g 15 -c:a ac3 -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f vob D:\TEMP\Serviio\transcoding-temp-63-viera2009-ORIGINAL.stf


Welcome all comments.