Page 1 of 1

0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Sun Sep 25, 2011 11:42 am
by NX3
0.6 installed and working well generally a questions for zip ?

1, Playing a 2010 Bravia set MKV return as AVC, in the tmp folder on Ubuntu I have a 35gb mpeg2 file, source file is 6gb. Just to understand, even thought the file isn't being trancsoded with the new profile the transcode output still takes place or this is just for the audio stereo downmix which I have enabled ?

I can cause audio sync issues as others reported on the beta now. When installed clean the default was to 1 cpu core and downmix. On a HD mkv sync goes within minutes as serviio / server can't keep up. Changing to mulitple cores solves the problem but I had downmix still on. The next issue (perhaps specific to linux) is the tmp folder on the OS partition files up very quickly and as soon as it does I get sync issues. I've now created a new partition, symbolic link for tmp to the 40gb space and no sync issues yet.

As reported on beta I had no sync issues anyway but that was on short clips or tv shows, I guess I never filled the tmp folder. IMO the sync issues are hardare or config related, not the 2010 sets issues or serviio.

Playing the same file on a 2011 Bravia model with those same situations doesn't cause a sync issue though! This seems a bit bizarre but is obviously a good result!

Re: 0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Sun Sep 25, 2011 2:40 pm
by zip
NX3 wrote:1, Playing a 2010 Bravia set MKV return as AVC, in the tmp folder on Ubuntu I have a 35gb mpeg2 file, source file is 6gb. Just to understand, even thought the file isn't being trancsoded with the new profile the transcode output still takes place or this is just for the audio stereo downmix which I have enabled ?

you can try running the ffmpeg command manually and see how big file it produces. It's possible that the mpeg2ts file is larger than mkv..

Re: 0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Mon Sep 26, 2011 4:04 pm
by Illico
Could you post "ffmpeg -i" result of your 6Go mkv file ?
Probably this is a high level >4.1 AVC format that will be transcoded into MPEG2 video, so bigger.
And please, what is your TV model, don't remember all users configuration...

Re: 0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Mon Sep 26, 2011 5:51 pm
by NX3
Thanks illico, this is the file that plays great on a KDL-26EX320 (Sony Bravia 2011), audio sync issues on a Sony 32EX503 (Brava 2010) and no video at all on Asus O!play (realtek based unit) and plays perfectly on a WDTV Live HD.

Media Info
  Code:
Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 5 frames
Muxing mode                      : Header stripping
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 2h 11mn
Bit rate                         : 5 624 Kbps
Width                            : 1 280 pixels
Height                           : 544 pixels
Display aspect ratio             : 2.35:1
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.337
Stream size                      : 5.04 GiB (77%)
Writing library                  : x264 core 116 r2057 0ba8a9c
Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / 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=12 / 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=23 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=5624 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Language                         : English


FFMPEG -i output
  Code:
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar 28 2011 22:12:56 with gcc 4.4.5
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x98924e0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (5000000/208542)
Input #0, matroska,webm, from '720p.mkv':
  Duration: 02:11:35.00, start: 0.000000, bitrate: 1536 kb/s
    Chapter #0.0: start 0.000000, end 465.715000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 465.715000, end 1049.465000
    Metadata:
      title           : 00:07:45.715
    Chapter #0.2: start 1049.465000, end 1381.839000
    Metadata:
      title           : 00:17:29.465
    Chapter #0.3: start 1381.839000, end 1701.575000
    Metadata:
      title           : 00:23:01.839
    Chapter #0.4: start 1701.575000, end 2105.353000
    Metadata:
      title           : 00:28:21.575
    Chapter #0.5: start 2105.353000, end 2456.037000
    Metadata:
      title           : 00:35:05.353
    Chapter #0.6: start 2456.037000, end 2931.303000
    Metadata:
      title           : 00:40:56.037
    Chapter #0.7: start 2931.303000, end 3329.993000
    Metadata:
      title           : 00:48:51.303
    Chapter #0.8: start 3329.993000, end 3847.552000
    Metadata:
      title           : 00:55:29.993
    Chapter #0.9: start 3847.552000, end 4302.256000
    Metadata:
      title           : 01:04:07.552
    Chapter #0.10: start 4302.256000, end 4763.467000
    Metadata:
      title           : 01:11:42.256
    Chapter #0.11: start 4763.467000, end 5013.800000
    Metadata:
      title           : 01:19:23.467
    Chapter #0.12: start 5013.800000, end 5336.331000
    Metadata:
      title           : 01:23:33.800
    Chapter #0.13: start 5336.331000, end 5577.489000
    Metadata:
      title           : 01:28:56.331
    Chapter #0.14: start 5577.489000, end 6027.104000
    Metadata:
      title           : 01:32:57.489
    Chapter #0.15: start 6027.104000, end 6494.530000
    Metadata:
      title           : 01:40:27.104
    Chapter #0.16: start 6494.530000, end 6963.915000
    Metadata:
      title           : 01:48:14.530
    Chapter #0.17: start 6963.915000, end 7229.013000
    Metadata:
      title           : 01:56:03.915
    Chapter #0.18: start 7229.013000, end 7478.096000
    Metadata:
      title           : 02:00:29.013
    Chapter #0.19: start 7478.096000, end 7895.008000
    Metadata:
      title           : 02:04:38.096
    Stream #0.0(eng): Video: h264, yuv420p, 1280x544, PAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s

Re: 0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Mon Sep 26, 2011 5:59 pm
by zip
I'd start with updating your FFmpeg version

Re: 0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Mon Sep 26, 2011 6:10 pm
by NX3
On my to do list..... I've need to find a guide on how to do it as I can't remember how .....

Re: 0.6 Audio Sync / Trancsoding Questions / Issues

PostPosted: Mon Sep 26, 2011 6:40 pm
by Illico
NX3 wrote:...
Format profile : High@L4.1
Format settings, ReFrames : 5 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 11mn
Bit rate : 5 624 Kbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
...
Input #0, matroska,webm, from '720p.mkv':
Stream #0.0(eng): Video: h264, yuv420p, 1280x544, PAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(eng): Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
[/code]


- 1280x544 (2.35:1) is not a conventional AVC resolution : should be 1280×720 or 1280×1024, not sure that Sony Bravia will display properly (DAR should be 16:9).
- This video stream should be remuxed without transcoding: Enable detailed logging and check the ffmpeg comand line used to stream this file.
- The audio stream is a HD bitrate, DTS, not supported by the Sony Bravia, so must be transcode to AC3-6, do you check downmix to stereo? We know that ffmpeg had previously some issue with that transcoding configuration. Try to update with the latest ffmpeg or checkout here.