Announcement

Collapse
No announcement yet.

Audio out of sync with cuda decoding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Audio out of sync with cuda decoding

    When I activate CUDA h264 decode acceleration, the output video in mp4(h265) have out of sync audio. The output file is also slightly longer.

    The source file is mp4(h264) with variable framerate. The average is about 24.202.

    Code:
     0m 00.12s: info, try to open file C:/Users/Frédéric/Downloads/DVDFab/Stargate SG-1 - S6E17 - Disclosure.m4v
     0m 00.17s: info: open successed, iformat = QuickTime / MOV
     0m 00.17s: info: create config(videoconvert)
     0m 00.18s: info: crop value after clone: left = 0 right= 0 top=0 bottom=0 enable=0 mode=0
     0m 00.18s: info: use profile(MP4.H265)
     0m 00.18s: info: file (.m4v)
     0m 00.18s: info: 3D working_mode(disable), 3D format(sbs_lef_right) 
     0m 00.19s: info: stream input@ Video(1)[codec(h264) size(720*480) fps(24000/1001) interlace(1) duration(2624)sec opcode(compress)]
    2052m 16.97s: UILog:MsgWork:WorkStatus_Start
     0m 00.19s: info: perset file config OK ! 
     0m 00.19s: info: set output video frame_rate(24000/1001)
     0m 00.20s: info: recommand= 0, Shrink support= 0, enable= 0, cuda_cap= 0 , cpu_count= 8
     0m 00.20s: info: stream output Video(1)[codec(hevc) size(852*480) fps(24000/1001) interlace(1) bitrate(1393) duration(2624)sec]
     0m 00.20s: info: stream input@ Audio(2)[codec(aac) channels(6) sample(48000) bitrate(447998) bitdepth(16) opcode(copy)]
     0m 00.20s: info: stream output Audio(2)[codec(aac) channels(6) sample(48000) bitrate(447998) bitdepth(16) opcode(copy)]
     0m 00.20s: info: SubMode(Render) -- Display Only forced Subtitle(false) 
    2052m 17.00s: UILog:MsgWork:WorkStatus_Start
     0m 00.32s: CUDA GPU acceleration for video decoding enabled
     0m 00.55s: info: h264_encode: encode param profile(1) level(30) bitrate(1393) crf(-1)
    595m 20.32s:

    #2
    I get this whenever I use DVDFab 9.1.8.1 to recode H.264 .ts files from a Humax PVR. I have Intel GPU Acceleration enabled. If I make any changes to video quality or resolution, the resulting audio is in sync at the start of the converted file but after an hour it is between 2 and 4 seconds late. It doesn't matter what video quality, resolution or output container I use, the result is always the same. It's a real shame because the video quality of the output file is fine but I can't live with audio that is so far out of sync.

    Using two-pass encoding disables GPU acceleration but the amount of time it then needs to recode is just not worth the effort, being about 4 times longer than with it enabled.

    Comment


      #3
      Sorry, I should have added that this only seems to happen with HD videos (1920x1080) - low res stuff (544x576) seems to be ok.

      PC is an i5-3210M Asus laptop with 8GB of RAM.

      Comment


        #4
        It's humble pie time!

        I'm now pretty sure the original .ts file had some audio sync errors reported when it was edited and saved in VideoRedo. The new .ts file played fine but always resulted in out-of-sync audio when converted to any other format in DVDFab. However, another .ts HD programme , which was edited in VideoRedo and DIDN'T report audio sync errors, has converted in DVDFab perfectly and has remained in sync throughout. My bad.

        Comment

        Working...
        X