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

FFmpeg exited with code 137 on Android TV 0.15.12 #3158

Closed
hardwareadictos opened this issue Nov 2, 2023 · 5 comments
Closed

FFmpeg exited with code 137 on Android TV 0.15.12 #3158

hardwareadictos opened this issue Nov 2, 2023 · 5 comments
Labels
bug Something isn't working playback Issue related to media playback

Comments

@hardwareadictos
Copy link

hardwareadictos commented Nov 2, 2023

Describe the bug

Just forcing my users to use GPU transcoding as always did, never was giving issues but on recent days Android TV is failing to Use my Quadro T1000 only on Android TV 0.15.12 app.

My other apps, like Android, Browsers, IOs etc are working fine. Could be an issue with Android TV app?

I'm using Android TV app on Sony 43X85K and two Chromecast 2020 with Google TV, failing on those devices.

Logs

6Jellyfin  | [15:17:45] [INF] [8] 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/f4b21cc3f803ef0e03693a2e903fdcb6%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/f4b21cc3f803ef0e03693a2e903fdcb6.m3u8"
Jellyfin  | [15:17:42] [INF] [17] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-ExoPlayer, Path=/video/video.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=SubtitleCodecNotSupported ) media:/videos/7aa0dd3c-4a21-31b8-8189-a7ec92ba0c98/master.m3u8?
Jellyfin  | [15:17:45] [INF] [8] 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/f4b21cc3f803ef0e03693a2e903fdcb6%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/f4b21cc3f803ef0e03693a2e903fdcb6.m3u8"MediaSourceId=7aa0dd3c4a2131b88189a7ec92ba0c98&VideoCodec=hevc,h264,hevc&AudioCodec=aac,mp3,ac3,eac3&AudioStreamIndex=1&SubtitleStreamIndex=6&VideoBitrate=79872000&AudioBitrate=128000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=64667a7e390ec81f8e05a656f174c0ce&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=120&hevc-videobitdepth=8&hevc-profile=main&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported
Jellyfin  | [15:17:58] [INF] [35] 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:"/pvideo/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/f4b21cc3f803ef0e03693a2e903fdcb6%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/f4b21cc3f803ef0e03693a2e903fdcb6.m3u8"
Jellyfin  | [15:18:03] [INF] [58] Jellyfin.Api.Helpers.TranscodingJobHelper: Killing FFmpeg process for /config/transcodes/f4b21cc3f803ef0e03693a2e903fdcb6.m3u8
Jellyfin  | [15:18:03] [INF] [58] Jellyfin.Api.Helpers.TranscodingJobHelper: Deleting partial stream file(s) /config/transcodes/f4b21cc3f803ef0e03693a2e903fdcb6.m3u8
Jellyfin  | [15:18:03] [ERR] [46] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 137

FFmpeg logs

[ffmpeg_2.txt](https://github.com/jellyfin/jellyfin/files/13235931/ffmpeg_2.txt)
[ffmpeg_3.txt](https://github.com/jellyfin/jellyfin/files/13235932/ffmpeg_3.txt)
[ffmpeg_1.txt](https://github.com/jellyfin/jellyfin/files/13235933/ffmpeg_1.txt)

Media info of the file

No response

Application version

0.15.12

Device information

Sony 43X85K and Chromecast 2020 with Android TV

Android version

Android TV 12

Jellyfin server version

10.8.11

@hardwareadictos hardwareadictos added bug Something isn't working playback Issue related to media playback labels Nov 2, 2023
@hardwareadictos
Copy link
Author

FFMPEG Logs:

ffmpeg_2.txt
ffmpeg_3.txt
ffmpeg_1.txt

@nielsvanvelzen
Copy link
Member

The app doesn't manage the FFmpeg process, the server does that. You've already opened a server issue so I'm closing this one as a duplicate.

@nielsvanvelzen nielsvanvelzen closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
@hardwareadictos
Copy link
Author

Well, seems this needs to be opened again... #3416

@hardwareadictos
Copy link
Author

Good morning. Is there any news on this? It's still happening only on Android TV devices, nor on Android or iOS. Only way to reproduce on Android TV platform is to disable subtitles.

@major-mayer
Copy link

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...

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

3 participants