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

[BUG] Apple devices such as ios and iPad cannot play some videos properly #262

Closed
1 task done
yanxin152133 opened this issue Aug 14, 2024 · 3 comments
Closed
1 task done

Comments

@yanxin152133
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When Apple devices use official clients and browsers to play some videos, they may fail to play or an error will occur when starting direct playback.
image

image
The picture shows that the reason for transcoding is an error when starting direct playback.

Expected Behavior

No response

Steps To Reproduce

1、docker
2、iPhone iPad
3、When playing the video, it will appear that it cannot be played or the direct playback fails to start transcoding.

Environment

- OS: Ubuntu 18.04.5
- How docker service was installed:
docker run -d \
    --name=jellyfin \
    -e PUID=0 \
    -e PGID=0 \
    -p 8096:8096 \
    -p 8920:8920 \
    -p 7359:7359/udp \
    -p 1900:1900/udp \
    -v /home/jellyfin/config:/config \
    -v /home/download:/data \
    -v /home/jellyfin/fonts:/usr/share/fonts \
    --device=/dev/dri:/dev/dri \
    --restart unless-stopped \
    lscr.io/linuxserver/jellyfin:latest

CPU architecture

x86-64

Docker creation

docker run -d \
    --name=jellyfin \
    -e PUID=0 \
    -e PGID=0 \
    -p 8096:8096 \
    -p 8920:8920 \
    -p 7359:7359/udp \
    -p 1900:1900/udp \
    -v /home/jellyfin/config:/config \
    -v /home/download:/data \
    -v /home/jellyfin/fonts:/usr/share/fonts \
    --device=/dev/dri:/dev/dri \
    --restart unless-stopped \
    lscr.io/linuxserver/jellyfin:latest

Container logs

[13:37:30] [INF] [38] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for root. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[13:37:46] [INF] [20] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 192.168.2.105 request
[13:37:48] [INF] [45] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for root. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[13:37:48] [INF] [19] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for root. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[13:37:48] [INF] [45] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[13:37:48] [INF] [45] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/data/电影/[电影天堂www.dytt89.com]蓝甲虫-2023_BD中英双字.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -preset veryfast -look_ahead 0 -b:v 5994682 -maxrate 5994682 -bufsize 11989364 -profile:v:0 high -level 41 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "b5f01501493d13b0c28814f84831e6fa-1.mp4" -start_number 0 -hls_segment_filename "/config/cache/transcodes/b5f01501493d13b0c28814f84831e6fa%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/cache/transcodes/b5f01501493d13b0c28814f84831e6fa.m3u8"
[13:37:50] [INF] [34] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for root. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[13:37:50] [INF] [19] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /config/cache/transcodes/b5f01501493d13b0c28814f84831e6fa.m3u8
[13:37:50] [INF] [34] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[13:37:50] [INF] [19] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /config/cache/transcodes/b5f01501493d13b0c28814f84831e6fa.m3u8
[13:37:50] [INF] [19] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[13:37:50] [INF] [19] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/data/电影/[电影天堂www.dytt89.com]蓝甲虫-2023_BD中英双字.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -preset veryfast -look_ahead 0 -b:v 5994682 -maxrate 5994682 -bufsize 11989364 -profile:v:0 high -level 41 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 libfdk_aac -ac 2 -ab 95778 -ar 48000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "0d44546224a180980bd449f04daef903-1.mp4" -start_number 0 -hls_segment_filename "/config/cache/transcodes/0d44546224a180980bd449f04daef903%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/cache/transcodes/0d44546224a180980bd449f04daef903.m3u8"
[13:38:01] [INF] [38] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /config/cache/transcodes/0d44546224a180980bd449f04daef903.m3u8
[13:38:01] [INF] [38] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[13:38:01] [INF] [38] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /config/cache/transcodes/0d44546224a180980bd449f04daef903.m3u8
[13:38:02] [INF] [32] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Web 10.9.9 playing 蓝甲虫. Stopped at 7052 ms
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

2 participants