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 out of sync afyer seeking or using skip intro #4307

Open
wardy277 opened this issue Dec 16, 2024 · 6 comments
Open

Audio out of sync afyer seeking or using skip intro #4307

wardy277 opened this issue Dec 16, 2024 · 6 comments
Labels
bug Something isn't working playback Issue related to media playback

Comments

@wardy277
Copy link

Describe the bug

This has happened before the 0.18 update but I have waited untill I received this to report, hoping the rewrite would fix it

I am struggling to reliably replicate, but about 20% of the time of me using the seek forward feature the audio becomes out of sync with the video. Simply seeking back once fixes the issue. I usually do this when skipping a show intro by pressing the seek forward about 5 times. It also does this when I press the skip button as part of the new segments feature

I can't seem to identify a pattern as to why it only does it some of the time.

I have tailed the jellyfin logs while I do this, and apart from the events for starting the video, there is no output

Logs

No response

FFmpeg logs

Media info of the file

Application version

0.18.2

Device information

Nvidia Shield Pro

Android version

8.3.2

Jellyfin server version

10.10.1

@wardy277 wardy277 added bug Something isn't working playback Issue related to media playback labels Dec 16, 2024
@BotBlake
Copy link
Member

Hi @wardy277

I tried reproducing your issue on Server 10.10.3 and on a build of ATV on master.
However I cannot manage to do so.

Can you give me some more detail that would help me reproduce this?
Have you tested this with the 10.10.3 Server Version?

Are you sure this isn't a networking issue?

Kind regards

@baconstaken
Copy link

Having the exact same issue here, about 10% of the time. Usually from the new skip button but just happened when seeking forward manually too.

Also on Nvidia Shield Pro
Android version: 9.1.1
App Version: 18.2
Server Version: 10.10.3

I pulled a bug report from the Shield and compared the "failed skip" at 20:31:49 to a successful skip back at 20:32:29 here is a snippet of the log at that time.
Not exactly sure what I'm looking for, but I couldnt see anything indicating an audio issue?

@BotBlake
Copy link
Member

BotBlake commented Jan 2, 2025

@baconstaken
Could you add some information about the Media File that you have Used?

I still cannot reproduce the issue on any of my ATV Clients.

Kind regards.

@baconstaken
Copy link

Just played the same file again, skipping to the same point as last time, with no issues. After skipping forward about 8 more times it eventually went out of sync.

File info:

Format : Matroska
Format version : Version 4
File size : 2.78 GiB
Duration : 50 min 45 s
Overall bit rate mode : Variable
Overall bit rate : 7 845 kb/s
Writing application : mkvmerge v84.0 ('Sleeper') 64-bit
Writing library : libebml v1.4.5 + libmatroska v1.7.1 / Lavf59.27.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 50 min 45 s
Bit rate mode : Variable
Bit rate : 7 069 kb/s
Maximum bit rate : 20.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Original frame rate : 47.952 (48000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.142
Stream size : 2.51 GiB (90%)
Writing library : x264 core 148 r2743 1f1d9c5
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x111 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=120 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=121 / scenecut=0 / intra_refresh=0 / rc_lookahead=240 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.50 / qpmin=6 / qpmax=51 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:0.80
Default : Yes
Forced : No

Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : A_EAC3
Duration : 50 min 45 s
Bit rate mode : Constant
Bit rate : 768 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 279 MiB (10%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE

@Hello-World-Traveler
Copy link

So far this only happens to one show.

Video
Title: 720p H264 SDR
Codec: H264
AVC: Yes
Profile: Main
Level: 31
Resolution: 1278x720
Aspect ratio: 16:9
Anamorphic: No
Interlaced: No
Framerate: 23.976025
Bitrate: 2302 kbps
Bit depth: 8 bit
Video range: SDR
Video range type: SDR
Color space: bt709
Color transfer: bt709
Color primaries: bt709
Pixel format: yuv420p
Ref frames: 1
NAL: 4


Audio
Title: Stereo - English - AAC - Default
Language: eng
Codec: AAC
AVC: No
Profile: LC
Layout: stereo
Channels: 2 ch
Bitrate: 192 kbps
Sample rate: 48000 Hz
Default: Yes
Forced: No
External: No

@baconstaken
Copy link

Some more info..
Audio goes a few seconds out of sync.
Changing audio source/language doesn't fix it, only skipping back/forward does.
Playing direct, no transcoding.
This only happens on my Shield Pro. No issue on a Chromecast 4K or the jellyfin web player.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working playback Issue related to media playback
Projects
None yet
Development

No branches or pull requests

4 participants