Giter VIP home page Giter VIP logo

Comments (13)

felix920506 avatar felix920506 commented on June 19, 2024

Please include ffmpeg logs

from jellyfin-androidtv.

hardwareadictos avatar hardwareadictos commented on June 19, 2024

Please include ffmpeg logs

Can you point me where to find them on the official Jellyfin Docker container?

from jellyfin-androidtv.

felix920506 avatar felix920506 commented on June 19, 2024

@hardwareadictos go to the same page as you obtained your Jellyfin logs, the files that have "ffmpeg" in their names are ffmpeg logs

from jellyfin-androidtv.

hardwareadictos avatar hardwareadictos commented on June 19, 2024

@hardwareadictos go to the same page as you obtained your Jellyfin logs, the files that have "ffmpeg" in their names are ffmpeg logs

Thanks for the quick response :)

Updated the issue with ffmpeg logs, proceeding to add them to the reply also:

[20:44:15] [INF] [32] Jellyfin.Api.Helpers.TranscodingJobHelper: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -c:v hevc_cuvid -autorotate 0 -i file:"/video/video.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 hevc_nvenc -tag:v:0 hvc1 -preset p1 -b:v 14247053 -maxrate 14247053 -bufsize 28494106 -profile:v:0 main -g:v:0 72 -keyint_min:v:0 72 -filter_complex "alphasrc=s=1920x1040:r=10:start='0',format=yuva420p,subtitles=f='/video/video.mkv':si=1:alpha=1:sub2video=1:fontsdir='/cache/attachments/7aa0dd3c4a2131b88189a7ec92ba0c98',hwupload=derive_device=cuda[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p[main];[main][sub]overlay_cuda=eof_action=endall:shortest=1:repeatlast=0" -start_at_zero -codec:a:0 libfdk_aac -ac 8 -ab 128000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/86976e428f4c5cc5e5a04b6d597c56b3%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/86976e428f4c5cc5e5a04b6d597c56b3.m3u8"
20:44:50] [INF] [52] Jellyfin.Api.Helpers.TranscodingJobHelper: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -c:v hevc_cuvid -autorotate 0 -i file:"/video/video.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 hevc_nvenc -tag:v:0 hvc1 -preset p1 -b:v 14247053 -maxrate 14247053 -bufsize 28494106 -profile:v:0 main -g:v:0 72 -keyint_min:v:0 72 -filter_complex "alphasrc=s=1920x1040:r=10:start='0',format=yuva420p,subtitles=f='/video/video.mkv':si=1:alpha=1:sub2video=1:fontsdir='/cache/attachments/7aa0dd3c4a2131b88189a7ec92ba0c98',hwupload=derive_device=cuda[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p[main];[main][sub]overlay_cuda=eof_action=endall:shortest=1:repeatlast=0" -start_at_zero -codec:a:0 libfdk_aac -ac 8 -ab 128000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/86976e428f4c5cc5e5a04b6d597c56b3%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/86976e428f4c5cc5e5a04b6d597c56b3.m3u8"
[20:44:50] [INF] [35] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for /config/transcodes/86976e428f4c5cc5e5a04b6d597c56b3.m3u8
[20:44:51] [INF] [46] Jellyfin.Api.Helpers.TranscodingJobHelper: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -c:v hevc_cuvid -autorotate 0 -i file:"/video/video.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 hevc_nvenc -tag:v:0 hvc1 -preset p1 -b:v 14247053 -maxrate 14247053 -bufsize 28494106 -profile:v:0 main -g:v:0 72 -keyint_min:v:0 72 -filter_complex "alphasrc=s=1920x1040:r=10:start='0',format=yuva420p,subtitles=f='/video/video.mkv':si=1:alpha=1:sub2video=1:fontsdir='/cache/attachments/7aa0dd3c4a2131b88189a7ec92ba0c98',hwupload=derive_device=cuda[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p[main];[main][sub]overlay_cuda=eof_action=endall:shortest=1:repeatlast=0" -start_at_zero -codec:a:0 libfdk_aac -ac 8 -ab 128000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/ffa9725c6e3a27282e6375c04b126246%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/ffa9725c6e3a27282e6375c04b126246.m3u8"
[20:44:52] [INF] [63] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Processing playback tracker : 9b05f19af34d7f0916d30866164a84e13685f697-6c15cd581eed4ab4beaba4880cc4e85e-7aa0dd3c4a2131b88189a7ec92ba0c98

Let me know if you need more information or if you need me to reproduce the issue.

Thank you.

Edit1: I asked a user to reproduce the same file on an iPad with Jellyfin app for IPadOS, as it happened on every other platform except for Android TVs, the file was well reproduced, that was the result:

[20:55:27] [INF] [21] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=Anonymous Profile, Path=/video/video.mkv, AudioStreamIndex=1, SubtitleStreamIndex=6 ) => ( PlayMethod=Transcode, TranscodeReason=ContainerNotSupported, VideoCodecNotSupported, AudioCodecNotSupported ) media:/videos/7aa0dd3c-4a21-31b8-8189-a7ec92ba0c98/master.m3u8?MediaSourceId=7aa0dd3c4a2131b88189a7ec92ba0c98&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&api_key=<token>&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=64667a7e390ec81f8e05a656f174c0ce&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=8&hevc-profile=main&TranscodeReasons=ContainerNotSupported,%20VideoCodecNotSupported,%20AudioCodecNotSupported
[20:55:28] [INF] [33] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[20:55:28] [INF] [33] Jellyfin.Api.Helpers.TranscodingJobHelper: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -c:v hevc_cuvid -autorotate 0 -i file:"/video/video.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -preset p1 -b:v 14247053 -maxrate 14247053 -bufsize 28494106 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/13b660da26cd3476191947e72e168433%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/13b660da26cd3476191947e72e168433.m3u8"
[20:55:29] [WRN] [19] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://XXX.XXX.X.XX:8096/videos/7aa0dd3c-4a21-31b8-8189-a7ec92ba0c98/hls1/main/0.ts?DeviceId=8164ee06-e01e-4f6f-86ab-4fd226a39047&MediaSourceId=7aa0dd3c4a2131b88189a7ec92ba0c98&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&PlaySessionId=4ab3a3ed33a64b7b8252dd8f0ace57b9&api_key=ebda31a3f0684d919101004b18942e6b&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=64667a7e390ec81f8e05a656f174c0ce&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=8&hevc-profile=main&TranscodeReasons=ContainerNotSupported,%20VideoCodecNotSupported,%20AudioCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000 to 192.168.1.230 in 0:00:01.1601899 with Status Code 200

from jellyfin-androidtv.

felix920506 avatar felix920506 commented on June 19, 2024

@hardwareadictos Those aren't ffmpeg logs. These are the files to grab. (File names that look like the bottom 3)
截圖 2023-11-01 下午9 13 20

from jellyfin-androidtv.

hardwareadictos avatar hardwareadictos commented on June 19, 2024

@hardwareadictos Those aren't ffmpeg logs. These are the files to grab. (File names that look like the bottom 3) 截圖 2023-11-
01 下午9 13 20

Here you have them.

ffmpeg_2.txt
ffmpeg_3.txt
ffmpeg_1.txt

Thank you :)

from jellyfin-androidtv.

felix920506 avatar felix920506 commented on June 19, 2024

Hi, we would like to know the following:

  1. Are you trying to burn in subtitles when playing using your Android TV client?
  2. If so, can you try disabling subtitles altogether and see if it helps?
  3. If disabling subtitles help, can you try burning in subtitles from another device?

from jellyfin-androidtv.

nyanmisaka avatar nyanmisaka commented on June 19, 2024

Possibly due to the long FFmpeg startup delay caused by burning embedded text-based subtitles in the video (currently this is a limitation of FFmpeg), the Android client ends the wait prematurely and reports an error.

from jellyfin-androidtv.

hardwareadictos avatar hardwareadictos commented on June 19, 2024

Deactivating subtitles males the playback work again, what is suspicious is that this only happens on Android TV, on the other platforms that doesn't happen. Is there something doable for fixing this?

I can continue the streaming if I enable subtitles manually

from jellyfin-androidtv.

felix920506 avatar felix920506 commented on June 19, 2024

It looks like this will have to be fixed on the Android TV client side.

from jellyfin-androidtv.

hardwareadictos avatar hardwareadictos commented on June 19, 2024

Is it possible to move this issue to Android TV issues repo? Opened a clone some days ago but someone closed it...

from jellyfin-androidtv.

major-mayer avatar major-mayer commented on June 19, 2024

I get the same error on a movie that doesn't even have subtitles, so I don't know how to disable them.
A workaround for me was to use libvlc instead of exoplayer in the playback settings.
For whatever reason, it works then...

from jellyfin-androidtv.

nielsvanvelzen avatar nielsvanvelzen commented on June 19, 2024

Duplicate of #3158

from jellyfin-androidtv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.