Open clankychiefjohn opened 1 month ago
Hi, it seems like your issue report has the following item(s) that need to be addressed:
This is an automated message, currently under testing. Please file an issue here if you encounter any problems.
I have had this issue appear on seemingly random videos as well. When it is out of sync it is the same files and it is always remuxing. I have opted to delete the databases and all metadata related to the jellyfin to test to see if something may have been stuck but issue still appears even after completely rescanning my test library into the system once again.
I tried reproducing this on Firefox and Edge with a file that is H264 + AAC audio track. I had it muxing to mp4 to these browsers. But I could not manage to reproduce the audio sync issue. Do you have files with 8 bit h264 + AAC that also have the sync issue, like the file you show in the log which is in H265?
I also tried this with another video that is H265 + AAC on Edge. But that one also did not have audio sync issues for me.
Client running Win10: Firefox 126.0 Jellyfin Media Player for Windows (old, installed in january 2022)
Server: Ubuntu Jammy 22.04.4 LTS Jellyfin 10.9.2
I found two files on my instance (both VP6F, sorry :/) and I can reproduce the issue: for transcoded files only the audio is out of sync, delayed by 500ms-1s, when played through Firefox.
Jellyfin Media Player, mpc-hc and vlc don't show the issue when playing the same files.
For all the files that you are experiencing this, can you share the ffprobe.json by doing ffprobe -v quiet -print_format json -show_format -show_streams /path/to/video
? This can be easier for us to find what's special for those videos.
First one:
{
"streams": [
{
"index": 0,
"codec_name": "vp6f",
"codec_long_name": "On2 VP6 (Flash version)",
"codec_type": "video",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 720,
"height": 406,
"coded_width": 720,
"coded_height": 406,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 0,
"pix_fmt": "yuv420p",
"level": -99,
"refs": 1,
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"bit_rate": "1156870",
"extradata_size": 1,
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
}
},
{
"index": 1,
"codec_name": "mp3",
"codec_long_name": "MP3 (MPEG audio layer 3)",
"codec_type": "audio",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "44100",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 481,
"start_time": "0.481000",
"bit_rate": "98678",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
}
}
],
"format": {
"filename": "renamed.flv",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "flv",
"format_long_name": "FLV (Flash Video)",
"start_time": "0.000000",
"duration": "3460.987476",
"size": "371172837",
"bit_rate": "857958",
"probe_score": 100,
"tags": {
"canseektoend": "false",
"creationdate": "Sat Jun 12 16:49:10 2010\n",
"lastkeyframetimestamp": "3459750",
"lasttimestamp": "3460987",
"metadatacreator": "On2 Flix SDK for Dshow_2.2.16.0"
}
}
}
And the second file:
{
"streams": [
{
"index": 0,
"codec_name": "vp6f",
"codec_long_name": "On2 VP6 (Flash version)",
"codec_type": "video",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 720,
"height": 406,
"coded_width": 720,
"coded_height": 406,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 0,
"pix_fmt": "yuv420p",
"level": -99,
"refs": 1,
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"bit_rate": "1015097",
"extradata_size": 1,
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
}
},
{
"index": 1,
"codec_name": "mp3",
"codec_long_name": "MP3 (MPEG audio layer 3)",
"codec_type": "audio",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "44100",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 500,
"start_time": "0.500000",
"bit_rate": "98661",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
}
}
],
"format": {
"filename": "renamed2.flv",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "flv",
"format_long_name": "FLV (Flash Video)",
"start_time": "0.000000",
"duration": "1718.283203",
"size": "178970638",
"bit_rate": "833253",
"probe_score": 100,
"tags": {
"canseektoend": "false",
"creationdate": "Tue Jun 08 00:07:57 2010\n",
"lastkeyframetimestamp": "1718003",
"lasttimestamp": "1718283",
"metadatacreator": "On2 Flix SDK for Dshow_2.4.2.0"
}
}
}
I tried reproducing this on Firefox and Edge with a file that is H264 + AAC audio track. I had it muxing to mp4 to these browsers. But I could not manage to reproduce the audio sync issue. Do you have files with 8 bit h264 + AAC that also have the sync issue, like the file you show in the log which is in H265?
I have all of my files transcoded to h265 in mkv format so I don't have any to test with.
I tried reproducing this on Firefox and Edge with a file that is H264 + AAC audio track. I had it muxing to mp4 to these browsers. But I could not manage to reproduce the audio sync issue. Do you have files with 8 bit h264 + AAC that also have the sync issue, like the file you show in the log which is in H265?
I have all of my files transcoded to h265 in mkv format so I don't have any to test with.
I don't think it is the video codec issue but how it is remuxed into its container.
Can you provide more ffprobe.json for files don't work?
I tried reproducing this on Firefox and Edge with a file that is H264 + AAC audio track. I had it muxing to mp4 to these browsers. But I could not manage to reproduce the audio sync issue. Do you have files with 8 bit h264 + AAC that also have the sync issue, like the file you show in the log which is in H265?
I have all of my files transcoded to h265 in mkv format so I don't have any to test with.
I don't think it is the video codec issue but how it is remuxed into its container.
Can you provide more ffprobe.json for files don't work?
Here are the 2 that I have verified issues with recently. It doesn't happen on a very large scale and intermittently enough that these are the 2 I remember it occurring on.
I tried reproducing this on Firefox and Edge with a file that is H264 + AAC audio track. I had it muxing to mp4 to these browsers. But I could not manage to reproduce the audio sync issue. Do you have files with 8 bit h264 + AAC that also have the sync issue, like the file you show in the log which is in H265?
I have all of my files transcoded to h265 in mkv format so I don't have any to test with.
I don't think it is the video codec issue but how it is remuxed into its container.
Can you provide more ffprobe.json for files don't work?
Would it help if I share my two files? I can try to cut them cleanly on i-frames to extract only a small part if needed but I don't know if the issue will persist after it goes through ffmpeg.
@tumbly I think that is a good idea. After you split of a sample on keyframes (dont reencode), could you test it before sharing, to confirm that sample has the issue. If the sample has the issue then please share it (make sure it doesnt get encoded or changed in the method of sharing). Try to make the sample not be longer than needed but long enough that the issue can occur.
@TimGels I just tried cutting it cleanly with avidemux and exporting to mkv but the issue doesn't show in jellyfin web even though I haven't reencoded anything :/
Please describe your bug
When playing a video that is remuxed specific videos have audio that becomes out of sync. This can be allevieated by playing it on a device that uses direct play, or sometimes forcing it to transcode. I have tested this with both hardware transcode on and off issue still appears.
Reproduction Steps
REproducability is unpredictable. I have several files that this always happens to.
1 Play file 2 Notice its out of sync 3 Check file playback
Jellyfin Version
10.9.0
if other:
10.9.2
Environment
Jellyfin logs
FFmpeg logs
Please attach any browser or client logs here
FFmpeg.Remux-2024-05-24_17-13-06_b5993b96137c3c34fda479e61047207f_5b6993b5.log log_20240524.log mediainfo.txt ffprobe.json
Please attach any screenshots here
Code of Conduct