Jellyfin Forum
SOLVED: Cant get videos to play - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Cant get videos to play (/t-solved-cant-get-videos-to-play)



Cant get videos to play - Slugger 94 - 2024-03-31

I'm using TrueNAS scale, and I downloaded the jellyfin APP on it.
I set up 3 different Locations for video storage so I can organize my files smoothly (working as intended. videos all show up in the correct location on Jellyfin, despite not being able to play.)

Media file type:
MP4 (recorded on iPhone and uploaded to PC then to the NAS jellyfin file)
Hardware:
Old dell OptiPlex 790 w/ i5-2400
Drive is 750gb HDD
App Version: 10.8.13.1
Chart Version: 1.2.7
___________________________________________________________________________________
  • I keep getting this when attempting to play a video
"This client isn't compatible with the media and the server isn't sending a compatible media format."
  • ffmpeg. transcode Log reports
" test-1.mp4: Permission denied "
  • the log in TrueNAS reports:
...."Slow HTTP Response from http://192.168.0.103:30013/Sessions/Playing/Stopped to 192.168.0.104 in 0:00:01.5160504 with Status Code 204"

- I can't find a solution for either of these error reports.

ffmpeg.transcode LOG:
/videos/7487f4c0-45c2-c368-60b4-4b96f83e31e8/live.m3u8

{"Protocol":0,"Id":"7487f4c045c2c36860b44b96f83e31e8","Path":"/media/Home_videos/5 lifts, video-1, test-1.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mp4","Size":null,"Name":"5 lifts, video-1, test-1","IsRemote":false,"ETag":"8bf6ad010969a1a538defba3ef3311f4","RunTimeTicks":null,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[],"MediaAttachments":[],"Formats":[],"Bitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -f mp4 -autorotate 0 -i file:"/media/Home_videos/5 lifts, video-1, test-1.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -sn -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_base_url "hls/39d4768f48b4bb337684aa4fbb327068/" -hls_segment_filename "/config/transcodes/39d4768f48b4bb337684aa4fbb327068%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/config/transcodes/39d4768f48b4bb337684aa4fbb327068.m3u8"


ffmpeg version 5.1.4-Jellyfin Copyright © 2000-2023 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
file:/media/Home_videos/5 lifts, video-1, test-1.mp4: Permission denied
END OF LOG

NAS LOG
2024-03-31 14:11:21.972140-04:00at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2024-03-31 14:11:21.972158-04:00at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
2024-03-31 14:11:21.972176-04:00at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
2024-03-31 14:11:21.972194-04:00at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
2024-03-31 14:11:21.972212-04:00at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
2024-03-31 14:11:21.972230-04:00at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2024-03-31 14:11:21.972248-04:00at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
2024-03-31 14:11:21.972267-04:00at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
2024-03-31 14:11:21.972285-04:00at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
2024-03-31 14:11:21.972304-04:00at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
2024-03-31 14:11:23.161821-04:00[18:11:23] [INF] [68] Jellyfin.Api.Helpers.TranscodingJobHelper: Deleting partial stream file(s) /config/transcodes/b0936093ba8f6afbba01639d68195daf.m3u8
2024-03-31 14:11:23.161997-04:00[18:11:23] [INF] [68] Jellyfin.Api.Helpers.TranscodingJobHelper: Deleting partial stream file(s) /config/transcodes/39d4768f48b4bb337684aa4fbb327068.m3u8
2024-03-31 14:11:24.664598-04:00[18:11:24] [INF] [80] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Media Player 1.9.1 playing 5 lifts, video-1, test-1. Stopped at 0 ms
2024-03-31 14:11:24.674729-04:00[18:11:24] [WRN] [80] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.0.103:30013/Sessions/Playing/Stopped to 192.168.0.104 in 0:00:01.5160504 with Status Code 204
END OF LOG

Any help would mean a LOOOOT!
-Thank you in advance!


RE: Cant get videos to play - TheDreadPirate - 2024-03-31

The slow HTTP response messages are rarely useful. There is a setting in the Logs Dashboard to turn them off.

But the root of your problem is the permission denied message. Jellyfin can't play it if it doesn't have permission to read it.


RE: Cant get videos to play - Slugger 94 - 2024-03-31


(2024-03-31, 09:48 PM)TheDreadPirate Wrote: The slow HTTP response messages are rarely useful.  There is a setting in the Logs Dashboard to turn them off.

But the root of your problem is the permission denied message.  Jellyfin can't play it if it doesn't have permission to read it.
would you now how to could add the permissions? I've already added the "apps" user and group to the dataset, and its still not working.


RE: Cant get videos to play - Slugger 94 - 2024-03-31

Figured out the solution.

I needed to go into the file from my windows PC (like you would for an internal storage device), right click for properties -> security -> edit (under "Group or user names:") -> *add permissions manually there for apps/other people*

frustrating how that isn't set up like that when the when I set it up through the NAS GUI.

-Thank you TheDreadPirate!!!


RE: Cant get videos to play - TheDreadPirate - 2024-03-31

I have no idea the specifics for a TrueCharts setup. From the command line you can ensure that Jellyfin has at least R-X access to the directory and R-- of the files. That can be through direct ownership of the directory, group ownership, or "other" permissions.