Jump to content

Playback freeze with audio delayed track


Recommended Posts

Posted

I have the impression that emby does not correctly detect or cannot handle the audio tracks of a video when they have a "Delay relative to video" tag

when I select this audio track, playback works correctly:

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 640 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                              : 598 MiB (4%)
Title                                    : AC3
Language                                 : Italian
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No

when I select this track from the same video file (with Delay relative to video set @23seconds) , playback stops exactly after 23 seconds:

Audio #4
ID                                       : 5
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 640 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
Delay relative to video                  : 23 s 668 ms
Stream size                              : 598 MiB (4%)
Title                                    : AC3
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No

Even in the info at the bottom of the page they are detected differently, and every time I have a video with an audio track with delay this problem occurs.

Logs attached (I manually closed the video after about 30 seconds)

I recorded a small video to show this issue https://streamable.com/1wq9r1

 

ffmpeg-transcode-b288ad8c-fbd9-4025-bb9e-f381e5507a61_1.txt embyserver (12).txt

Posted

This is not an answer to your issue, just a question.

Are you aware you can quickly remux those files with MKVToolNix or cmd line so the delay is no longer there? Then this wouldn't be a problem in any player.

Posted
Quote

I have the impression that emby does not correctly detect or cannot handle the audio tracks of a video when they have a "Delay relative to video" tag

Hi, yes, currently our transcoding does have an issue with this. It's something we'll look at resolving in future updates, but as the user said, you can make this file more compatible across devices by removing the delay.

Posted (edited)

if I remux and remove the delay, that audio track is just going to be out of sync. (It happens when a video and it's original audio track get remuxed with another audio track taken from a different video source with usually different intros). Am I missing some options in mkvtoolnix?

Edited by exus
Posted
1 hour ago, exus said:

if I remux and remove the delay, that audio track is just going to be out of sync. (It happens when a video and it's original audio track get remuxed with another audio track taken from a different video source with usually different intros). Am I missing some options in mkvtoolnix?

It's there, just select the audio track then scroll down the properties window. You will need to put +23668 which is a lot, I have know idea if it will work in one go.

Screenshot 2024-02-06 142538.png

  • Thanks 1
Posted

I know about that option, but if I change that, the audio track just goes out of sync. I fix an issue and create another one 🫠

pwhodges
Posted

I play the file in VLC, open the Tools/Track Synchronisation window, and use it to adjust the offset until it's correct.  I then use that value in MKVToolNix.

Paul

Posted

the delay of 23 seconds is already fine (it's an audio track from a different video source with a different intro). If I edit that value the audio goes out of sync. 

Perhaps I am misunderstanding what you are suggesting, but it doesn't seem like the solution to my problem with my type of file.

Posted (edited)

You need to convert the track to get rid of the delay tag but still have DD.

Load the file in AviDemux and choose Video output-> COPY. Then click the Audio button at the top, then Select Track, select the delayed track and choose convert->ac3 then click Configure and select Bitrate, make sure the other audio tracks are set to COPY, then save the file. This will convert the track with no Delay tag and you will still have a DD track.

I tried this myself with a video I delayed and it seems to work.

Edited by viking19
grammer
Posted

ty, I had to use the last avidemux nightly build (2.8.2) to make it work (2.8.1 was giving me a "muxer cannot open" error on this specific track).

I hope to see a fix for this btw, it would be much better if emby could handle this kind of tracks 🙃

 

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...