Page 1 of 1

Video Quality Issue

PostPosted: Sat Apr 27, 2013 10:44 am
by dexterjani
Hi,
Am a newbie, started trying this fantastic Platform since few days now, have faced a problem for which am posting here for help. Considering recommendations of http://forum.subsonic.org/forum/viewtopic.php?f=2&t=5506, here is the summary of the problem:

Problem Description
Quality of Video on Android 4.1 Full AOSP on Rk29sdk, that is G-Box Android TV box (as can be seen in attachement 1, even at the bit of 1000kps and up, as can be seen in attachment 2). Brightness/Constrast/Gamma issues with big boxes all over the picture, specially the dark portions of video pictures.
attachment1.jpg

attachment2.jpg


Troubleshooting Steps
Have no concerns regarding quality, having same transcoding settings while viewing on Laptops/Desktops running Windows XP/Windows 7. Even on my Android phone gingerbread 2.3.6, all videos run fine. But on GBox, there is this quality issue. Have tried changing transcoding presets (-superfast etc) or (-vf lutyuv=y) as well, but no help. Tried different resolution, different file types (mkv, mp4s etc) but the issue is same. Have tried jwplayer on various other websites for online videos, and found this problem to be specific to Subsonic.

Playback Application and version
Subsonic 3.7 for Android
Stock Internet Browser / Dolphin Browser HD 9.4.1
Flash Version 11.1

Subsonic Version
4.8 (build 3434) – 17 April 2013

Server Version
jetty-6.1.x, java 1.7.0_17, Windows XP (44.9 MB / 79.6 MB)

Hardware Platform
Windows XP Professional Service Pack 3

Hardware
Intel Pentium Dual E2140 @ 1.60GHz with 2GB RAM

Java Memory Limit
150 MB

Problem Filename
All video files

ffmpeg version
N-52233-gee94362 Apri 18 2013 02:50:33

Output from ffmpeg -i
Code: Select all
C:\subsonic\transcode>ffmpeg -i "E:\Movies4Kidz\Despicable Me [2010]\Despicable
Me.mp4"
ffmpeg version N-52233-gee94362 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 18 2013 02:50:33 with gcc 4.8.0 (GCC) configuration:
--enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 56.103 /  3. 56.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Movies4Kidz\Despicable Me [2010]\Despicable Me.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.32.0
  Duration: 01:28:00.07, start: 0.000000, bitrate: 626 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 548 kb/s, 15 fps, 15 tbr, 15 tbn, 15 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 75 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
At least one output file must be specified


Last ten log file lines
Code: Select all
[27/04/13 07:00:03 UZT]    INFO   PlaylistService   Starting playlist import.
[27/04/13 07:00:03 UZT]    INFO   PlaylistService   Completed playlist import.
[27/04/13 07:00:03 UZT]    INFO   PlaylistService   Starting playlist statistics update.
[27/04/13 07:00:03 UZT]    INFO   PlaylistService   Completed playlist statistics update.
[27/04/13 11:16:15 UZT]    INFO   PlayQueueInputStream   android listening to "Despicable Me [2010]\Despicable Me.mp4"
[27/04/13 11:16:15 UZT]    DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [E:\Movies4Kidz\Despicable Me [2010]\Despicable Me.mp4] [-async] [1] [-b] [500k] [-s] [480x270] [-ar] [22050] [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [0] [-]
[27/04/13 11:43:28 UZT]    WARN   RESTFilter   Error in REST API: EofException
[27/04/13 11:43:28 UZT]    INFO   PlayQueueInputStream   android listening to "Despicable Me [2010]\Despicable Me.mp4"
[27/04/13 11:43:28 UZT]    DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [1629] [-i] [E:\Movies4Kidz\Despicable Me [2010]\Despicable Me.mp4] [-async] [1] [-b] [1000k] [-s] [640x360] [-ar] [22050] [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [0] [-]
[27/04/13 11:43:47 UZT]    WARN   RESTFilter   Error in REST API: EofException

Any help/suggestion/feedback for this humble request will be appreciated.

Best Regards

Re: Video Quality Issue

PostPosted: Wed May 01, 2013 6:30 pm
by dexterjani
Anybody??
Searching more on the web regarding the problem, and found same issue with others as well, like http://superuser.com/questions/514159/converting-linear-colors-to-srgb-shows-banding-in-ffmpeg.
Anyone facing the same problem?

Best Regards

Re: Video Quality Issue

PostPosted: Mon May 13, 2013 10:01 am
by dexterjani
After searching and searching the web, have come up with the following transcoding to work for this scenario:

Code: Select all
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 22050 -ac 2 -v 0 -f flv -vcodec libx264 -pix_fmt yuvj420p -partitions +parti4x4+parti8x8+partp4x4+partp8x8 -subq 6 -trellis 0 -refs 5 -bf 0 -coder 0 -aspect 16:9 -qmin 10 -qmax 51 -qdiff 4 -vf hqdn3d,gradfun,lutyuv=y=val*1.05 -preset superfast -threads 0 -

Although there are issues still left (like banding is still visible), will try to tweak these settings now to get desirable results.

Best Regards to all my readers!!!