Page 1 of 1

Video is stretched on Bravia (Serviio 0.5)

PostPosted: Fri Jan 28, 2011 6:39 pm
by wdata
Hi,
just installed the new 0.5 and now able to use both BD-Player and TV for watching the videos. And really grateful for this great piece of software.
However, I've found out that all the avi files I have with non-standard resolution are stretched vertically to 16x9 when played on '09 SONY Bravia (KDL-40W5500), while on BD-S370 they are fine. Any chance to fix it by configuration? Thanks for your advices. The media data are below
  Code:
# ffmpeg -i Pohorony.v.Berline.1966.DivX.DVDRip_\(da88dabd68fc17a5ec9d325e72cc695f\).avi
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Nov 25 2010 19:03:37 with gcc 4.4.3
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-decoder=aac --enable-encoder=aac
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpeg4 @ 0x91096b0]Invalid and inefficient vfw-avi packed B frames detected
                                                                                                                       
Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
Input #0, avi, from 'Pohorony.v.Berline.1966.DivX.DVDRip_(da88dabd68fc17a5ec9d325e72cc695f).avi':
  Metadata:
    ISFT            : VirtualDubMod 1.5.10.1 (build 2439/release)
  Duration: 01:37:58.68, start: 0.000000, bitrate: 999 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 672x272 [PAR 1:1 DAR 42:17], 25 fps, 25 tbr, 25 tbn, 30k tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Fri Jan 28, 2011 11:49 pm
by zip
not now... and in future it'd have to be transcoded into a different resolution. Is there not a setting on the TV for different 'zooms' ?

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Sat Jan 29, 2011 5:17 am
by wdata
Of course, I've tried all of them, none had black bars, and some were even worse distorted.
Anything I can help?
(I'll try a bit later with the older version to see how was it before)

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Sat Jan 29, 2011 6:22 am
by wdata
wdata wrote:(I'll try a bit later with the older version to see how was it before)

I did on 0.4.2 and it's the same. Then I recalled suddenly I've seen something like this before on the board and here you are http://forum.serviio.org/viewtopic.php?f=7&t=699
UPD: To make a clean determination I've tried also PMS but it looks the same there. Looks like it's model specific. Could we unlucky guys have something like uncrop in the future?

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Sat Jan 29, 2011 12:16 pm
by zip
If you work out the ffmpeg command and what files it should be applied to then anything is possible for future ;-)

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Sat Jan 29, 2011 12:27 pm
by patters
The way some of these Sony devices render stuff can be quite surprising. As an aside, I've noticed that the BDP players seem to forcibly stretch 4:3 DVD disc content to 16:9. Then if you try to correct it with the TV, it will crop the edges off. A pretty huge oversight really...

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Sat Jan 29, 2011 12:54 pm
by wdata
zip wrote:If you work out the ffmpeg command and what files it should be applied to then anything is possible for future ;-)

I've made some digging and found e.g. http://linuxers.org/tutorial/how-pad-videos-using-ffmpeg. In short, there are two switches in ffmpeg to make the bars, --padtop and --padbottom, so this part is quite easy.

As to decision here is quite complicated. Playing with different DLNA servers I realized now that this particular TV model wants to have only standard resolutions, like, what is it by heart, 720x576 for PAL MPEG2 and 1920x1080 for h264. I am sure it's quite impossible to do h264 padding/uncropping on the fly (this functionality is included in multiAVCHD, the BluRay "mastering" program, and for average movie takes about 5 hours of Core Duo 2.8G). But I believe it may make sense to realize kind of global setting of like "switch on the padding to standard resolution" which actually will help to increase the Serviio compatibility list :)

Re: Video is stretched on Bravia (Serviio 0.5)

PostPosted: Sat Jan 29, 2011 1:10 pm
by wdata
patters wrote:The way some of these Sony devices render stuff can be quite surprising. As an aside, I've noticed that the BDP players seem to forcibly stretch 4:3 DVD disc content to 16:9. Then if you try to correct it with the TV, it will crop the edges off. A pretty huge oversight really...

Absolutely agree. I hit this on my BDP-S370, but managed to fix it with "Screen format" parameter in its Screen setup. The "Fixed Aspect Ratio" works fine, while when set to value misleadingly named "Original" it does like you said.