Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio/video sync is off in video #88

Open
teleshoes opened this issue Oct 24, 2019 · 4 comments
Open

audio/video sync is off in video #88

teleshoes opened this issue Oct 24, 2019 · 4 comments

Comments

@teleshoes
Copy link

a/v sync in video is off by at least 0.3s on my xperia x, every time, with nothing else placing any load on the device. (a/v sync is also not great on sfos camera, but adv camera is doing it worse)

it looks like it gets worse the longer the video records, but its somewhat hard to tell.

the sync problem is greatly diminished on the selfie camera, although the video is upside down. (probably just because its lower resolution)

@piggz
Copy link
Owner

piggz commented Oct 27, 2019

Could you record a video in both apps, then load the file into VLC or such and provide the codec/stream info as a comparison? thanks

@teleshoes
Copy link
Author

whoops! i had no idea it records in 4k by default. thats probably why its worse...

anyway, as requested (from ffprobe):
adv:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20191029_125422.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomiso2
    creation_time   : 2019-10-29T16:54:15.000000Z
  Duration: 00:00:12.84, start: 0.000000, bitrate: 12031 kb/s
    Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m), 3840x2160, 11898 kb/s, SAR 1:1 DAR 16:9, 25.77 fps, 25.83 tbr, 3k tbn, 6k tbc (default)
    Metadata:
      creation_time   : 2019-10-29T16:54:15.000000Z
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-10-29T16:54:15.000000Z
      handler_name    : SoundHandler

sfos:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20191029_125305.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomiso2
    creation_time   : 2019-10-29T16:51:40.000000Z
  Duration: 00:00:12.61, start: 0.000000, bitrate: 12078 kb/s
    Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m), 1920x1080, 11946 kb/s, SAR 1:1 DAR 16:9, 25.77 fps, 25.83 tbr, 3k tbn, 6k tbc (default)
    Metadata:
      creation_time   : 2019-10-29T16:51:40.000000Z
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-10-29T16:51:40.000000Z
      handler_name    : SoundHandler

@piggz
Copy link
Owner

piggz commented Oct 29, 2019

Other than the resolution, everything else appears comparable. Can you compare like-for-like to see if we are any worse than jolla-camera?

@teleshoes
Copy link
Author

finally got around to doing this. delay is much less on 1080p. its still noticeable, but it is now comparable to, or maybe exactly the same as, jolla-camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants