Topic: Transcoding Audio Out of Sync?

When I transcode video with SVPCode, the audio always winds up being out of sync with the video.   For a bit, it seems sync'd, but skipping ahead in the video will have the audio many seconds off of where it should be.

I've tried encoding with Nvidia GPU, AMD GPU, and software and the problem persists.   

Any ideas on how I can fix this?

Re: Transcoding Audio Out of Sync?

any sample?

3 (edited by Shenmue is life 03-12-2018 23:41:52)

Re: Transcoding Audio Out of Sync?

Same issue here with default transcoding settings. It seems that the issue happens with long videos.
In my case, it was a video of two hours. The transcoded video appeared out of sync by 0.5 seconds at the 42th minute.

Specs of the original video:

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/iso2/avc1/mp41)
File size                                : 2.37 GiB
Duration                                 : 2 h 11 min
Overall bit rate                         : 2 583 kb/s
Encoded date                             : UTC 2018-12-02 05:51:11
Tagged date                              : UTC 2018-12-02 05:51:11
Writing application                      : HandBrake 0.10.5 2016021100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 h 11 min
Bit rate                                 : 2 418 kb/s
Width                                    : 1 808 pixels
Height                                   : 768 pixels
Display aspect ratio                     : 2.35:1
Frame rate mode                          : Variable
Frame rate                               : 23.976 FPS
Minimum frame rate                       : 23.810 FPS
Maximum frame rate                       : 24.390 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.073
Stream size                              : 2.22 GiB (94%)
Writing library                          : x264 core 142 r2479 dd79a61
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2018-12-02 05:51:11
Tagged date                              : UTC 2018-12-02 05:51:11
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Menus                                    : 3

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format settings, Endianness              : Big
Codec ID                                 : ac-3
Duration                                 : 2 h 11 min
Bit rate mode                            : Constant
Bit rate                                 : 160 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 151 MiB (6%)
Title                                    : Stereo / Stereo

4 (edited by Jacobosylvo 09-12-2018 19:49:54)

Re: Transcoding Audio Out of Sync?

@Chainik Same problem here with any long encode.

7 minutes into film: https://streamable.com/gin51

1 hour 25 mins into film: https://streamable.com/mqq6o

Re: Transcoding Audio Out of Sync?

Same problem here. Any long movie has very out of sync audio during the last half.

I really hope this can be fixed so I watch 60 fps movies on my Android while away from home.

6 (edited by Kaiji 21-01-2019 18:50:05)

Re: Transcoding Audio Out of Sync?

Are there any configurations I can test to see if I can get this working properly? I don't know what commands I should try.

I tried using "preset = veryfast" and it the audio still ends up at least a second out of sync.

Is this something the dev team is looking to fix? It sucks only being able to transcode videos that are 30 minutes or less.

Re: Transcoding Audio Out of Sync?

Last SVP update must fix audio de-sync.
Check it please.

8 (edited by Kaiji 13-02-2019 19:37:31)

Re: Transcoding Audio Out of Sync?

Just converted two movies. Audio is perfectly in sync throughout. Thanks a million for this!

EDIT: I notice that quite often the last temp file in a queue doesn't get deleted. Not a huge deal as I can delete it myself but I thought you should know. smile

Re: Transcoding Audio Out of Sync?

You have to press the green button to finish the process and delete temp files.