RE: Jellyfin detects wrong aspect ratio - TheDreadPirate - 2024-02-25
Re-encoding from an already re-encoded file would cause additional loss. There are lossless modes for H264 and, I think, HEVC. But the bit rates are insane. If this is the original rip, as long as your encoding settings aren't stupid, the loss in quality would be minimal.
RE: Jellyfin detects wrong aspect ratio - Efficient_Good_5784 - 2024-02-25
(2024-02-25, 09:08 PM)White Wrote: In my understanding Reencording is a loss of quality. Or is there a way to make it lossless? Each time you encode with a lossy format, you lose some quality.
(2024-02-25, 10:09 PM)TheDreadPirate Wrote: Re-encoding from an already re-encoded file would cause additional loss. There are lossless modes for H264 and, I think, HEVC. But the bit rates are insane. If this is the original rip, as long as your encoding settings aren't stupid, the loss in quality would be minimal. Yeah, lossless for both H264 & HEVC is achieved with the CRF set to 0.
I would try re-encoding with sane values. You can play back the final encode(s) to see if you're happy with the outcome. This will probably be the easiest solution unless someone comes and shows how to edit the video's playback resolution without re-encoding.
RE: Jellyfin detects wrong aspect ratio - White - 2024-02-26
Currently I only rip using MakeMKV and don't do any further encoding / reencoding. Maybe I will try that. But currently I'm curious why the Android Jellyfin App can't play back a file which is touched bei MKVToolnix. But the Webplayer is able to do it.
This is the log file that is getting created when trying to playback the mkv in Android.
Code: [2024-02-26 01:49:51.756 +00:00] [INF] [98] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Scanne Medien-Bibliothek"
[2024-02-26 01:49:51.757 +00:00] [INF] [98] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "RefreshMediaLibraryTask"
[2024-02-26 01:49:51.757 +00:00] [INF] [99] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Scanne Medien-Bibliothek"
[2024-02-26 01:49:51.764 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/Shows"
[2024-02-26 01:49:51.766 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/MamaUndPapa/Movies"
[2024-02-26 01:49:51.767 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/hoerspiele"
[2024-02-26 01:49:51.768 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/Movies"
[2024-02-26 01:49:51.770 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/Music"
[2024-02-26 01:49:51.771 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/Larissa/Movies"
[2024-02-26 01:49:51.771 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/MamaUndPapa/Shows"
[2024-02-26 01:49:51.776 +00:00] [INF] [99] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2024-02-26 01:50:21.559 +00:00] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scanne Medien-Bibliothek" Completed after 0 minute(s) and 29 seconds
[2024-02-26 01:50:21.559 +00:00] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 01:50:21.626 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/Larissa/Movies"
[2024-02-26 01:50:21.638 +00:00] [INF] [98] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/MamaUndPapa/Shows"
[2024-02-26 01:50:21.653 +00:00] [INF] [96] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/MamaUndPapa/Movies"
[2024-02-26 01:50:21.657 +00:00] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/Shows"
[2024-02-26 01:50:21.659 +00:00] [INF] [101] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/Movies"
[2024-02-26 01:50:21.664 +00:00] [INF] [100] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/hoerspiele"
[2024-02-26 01:50:21.679 +00:00] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/Music"
[2024-02-26 02:00:00.001 +00:00] [INF] [60] Emby.Server.Implementations.ScheduledTasks.TaskManager: "DailyTrigger" fired for task: "Extrahiere Kapitel-Bilder"
[2024-02-26 02:00:00.001 +00:00] [INF] [60] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "ChapterImagesTask"
[2024-02-26 02:00:00.002 +00:00] [INF] [59] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Extrahiere Kapitel-Bilder"
[2024-02-26 02:00:00.434 +00:00] [INF] [59] Emby.Server.Implementations.MediaEncoder.EncodingManager: Stopping chapter extraction for "Söhne und Töchter" because a chapter was found with a position greater than the runtime.
[2024-02-26 02:00:00.547 +00:00] [INF] [59] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Extrahiere Kapitel-Bilder" Completed after 0 minute(s) and 0 seconds
[2024-02-26 02:00:00.548 +00:00] [INF] [59] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 02:00:01.002 +00:00] [INF] [59] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extrahiere Kapitel-Bilder" set to fire at 2024-02-27 02:00:00.000 +00:00, which is 23:59:58.9974203 from now.
[2024-02-26 09:47:02.543 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Räume Transkodierungs-Verzeichnis auf"
[2024-02-26 09:47:02.544 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "DeleteTranscodeFileTask"
[2024-02-26 09:47:02.544 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Räume Transkodierungs-Verzeichnis auf"
[2024-02-26 09:47:02.550 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Räume Transkodierungs-Verzeichnis auf" Completed after 0 minute(s) and 0 seconds
[2024-02-26 09:47:02.551 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 10:57:46.849 +00:00] [INF] [13] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 10:57:50.528 +00:00] [INF] [13] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "White". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-02-26 10:57:50.529 +00:00] [INF] [13] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Jellyfin Android", Path="/data/Movies/UweTest/Episode S02E06.mkv", AudioStreamIndex=2, SubtitleStreamIndex=-1 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/053c3ce6-dfdc-c310-347e-3377aa04f710/stream.mkv?MediaSourceId=053c3ce6dfdcc310347e3377aa04f710&Static=true&VideoCodec=mpeg2video&AudioCodec=ac3&AudioStreamIndex=2&api_key=<token>&SubtitleMethod=Encode&Tag=0ec7df722c2bb0a873dd57321bca0baa"
[2024-02-26 10:58:01.802 +00:00] [INF] [20] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Android" "2.6.0" playing "UweTest". Stopped at "0" ms
[2024-02-26 11:00:34.851 +00:00] [INF] [87] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-02-26 11:00:46.852 +00:00] [INF] [87] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-02-26 11:01:46.850 +00:00] [INF] [85] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-02-26 11:01:58.851 +00:00] [INF] [86] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[2024-02-26 11:02:44.467 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Lade fehlende Untertitel herunter"
[2024-02-26 11:02:44.467 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "SubtitleScheduledTask"
[2024-02-26 11:02:44.468 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Lade fehlende Untertitel herunter"
[2024-02-26 11:02:44.481 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Lade fehlende Untertitel herunter" Completed after 0 minute(s) and 0 seconds
[2024-02-26 11:02:44.482 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 11:02:44.567 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Räumt Log-Verzeichnis auf"
[2024-02-26 11:02:44.567 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "DeleteLogFileTask"
[2024-02-26 11:02:44.567 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Räumt Log-Verzeichnis auf"
[2024-02-26 11:02:44.571 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Räumt Log-Verzeichnis auf" Completed after 0 minute(s) and 0 seconds
[2024-02-26 11:02:44.571 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 11:02:44.675 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "TasksRefreshChannels"
[2024-02-26 11:02:44.676 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "RefreshChannelsScheduledTask"
[2024-02-26 11:02:44.678 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "TasksRefreshChannels"
[2024-02-26 11:02:44.689 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: "TasksRefreshChannels" Completed after 0 minute(s) and 0 seconds
[2024-02-26 11:02:44.690 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 11:02:51.855 +00:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: "IntervalTrigger" fired for task: "Leere Zwischenspeicher"
[2024-02-26 11:02:51.855 +00:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "DeleteCacheFileTask"
[2024-02-26 11:02:51.855 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Leere Zwischenspeicher"
[2024-02-26 11:02:51.865 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Leere Zwischenspeicher" Completed after 0 minute(s) and 0 seconds
[2024-02-26 11:02:51.866 +00:00] [INF] [86] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2024-02-26 11:18:16.828 +00:00] [WRN] [63] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "172.24.0.1" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2024-02-26 11:18:16.841 +00:00] [INF] [63] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" closed
[2024-02-26 12:02:34.110 +00:00] [INF] [103] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 12:03:05.270 +00:00] [INF] [70] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 12:03:10.458 +00:00] [INF] [72] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "White". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-02-26 12:03:10.459 +00:00] [INF] [72] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Jellyfin Android", Path="/data/Movies/UweTest/Episode S02E06.mkv", AudioStreamIndex=2, SubtitleStreamIndex=-1 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/053c3ce6-dfdc-c310-347e-3377aa04f710/stream.mkv?MediaSourceId=053c3ce6dfdcc310347e3377aa04f710&Static=true&VideoCodec=mpeg2video&AudioCodec=ac3&AudioStreamIndex=2&api_key=<token>&SubtitleMethod=Encode&Tag=0ec7df722c2bb0a873dd57321bca0baa"
[2024-02-26 12:03:13.082 +00:00] [INF] [68] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" closed
[2024-02-26 12:03:13.854 +00:00] [INF] [68] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 12:03:18.668 +00:00] [INF] [68] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" closed
[2024-02-26 12:03:19.828 +00:00] [INF] [72] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 12:03:24.453 +00:00] [INF] [103] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" closed
[2024-02-26 12:03:25.146 +00:00] [INF] [103] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 12:03:37.133 +00:00] [INF] [88] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" closed
[2024-02-26 12:03:37.837 +00:00] [INF] [88] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
[2024-02-26 12:03:40.170 +00:00] [INF] [70] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Android" "2.6.0" playing "UweTest". Stopped at "0" ms
[2024-02-26 12:03:41.760 +00:00] [INF] [71] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" closed
[2024-02-26 12:03:42.244 +00:00] [INF] [71] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.24.0.1" request
Edit: I now picked a file made a copy of it and simply opened it in MKVToolNix and saved it (without making any changes my myself). The fresh saved file is then not playable by the Jellyfin Android App (it buffers endlessly)
I then installed "MediaInfo" and saved the info from both files and made a diff. I see severall changes in the file which I did not expected to see.
Code: --- "/home/white/tmp/mkvtoolnix/mkvtoolnix episode6.txt" 2024-02-26 18:29:04.233759844 +0100
+++ "/home/white/tmp/mkvtoolnix/backup/backup episode6.txt" 2024-02-26 18:29:24.946495921 +0100
@@ -4,7 +4,6 @@
Kind of stream : General
Kind of stream : General
Stream identifier : 0
-Inform : Matroska: 1.71 GiB, 41 min 6 s
Unique ID : 78566319963079824844371289563273984838
Unique ID : 78566319963079824844371289563273984838 (0x3B1B52A493498942918A9B6797717B46)
Count of video streams : 1
@@ -24,8 +23,8 @@
Text_Format_WithHint_List : VobSub / VobSub / VobSub / VobSub / VobSub / VobSub / VobSub
Text codecs : VobSub / VobSub / VobSub / VobSub / VobSub / VobSub / VobSub
Text_Language_List : Danish / German / English / French / Dutch / Norwegian / Swedish
-Complete name : /home/white/tmp/mkvtoolnix/Episode S02E06.mkv
-Folder name : /home/white/tmp/mkvtoolnix
+Complete name : /home/white/tmp/mkvtoolnix/backup/Episode S02E06.mkv
+Folder name : /home/white/tmp/mkvtoolnix/backup
File name extension : Episode S02E06.mkv
File name : Episode S02E06
File extension : mkv
@@ -34,8 +33,8 @@
Format/Url : https://matroska.org/downloads/windows.html
Format/Extensions usually used : mkv mk3d mka mks
Commercial name : Matroska
-Format version : Version 4
-File size : 1835220451
+Format version : Version 2
+File size : 1835216106
File size : 1.71 GiB
File size : 2 GiB
File size : 1.7 GiB
@@ -50,23 +49,23 @@
Duration : 00:41:06.800 (00:41:06:20)
Overall bit rate mode : VBR
Overall bit rate mode : Variable
-Overall bit rate : 5951745
+Overall bit rate : 5951731
Overall bit rate : 5 952 kb/s
Frame rate : 25.000
Frame rate : 25.000 FPS
Frame count : 61670
-Stream size : 2018643
-Stream size : 1.93 MiB (0%)
+Stream size : 2014298
+Stream size : 1.92 MiB (0%)
Stream size : 2 MiB
Stream size : 1.9 MiB
-Stream size : 1.93 MiB
-Stream size : 1.925 MiB
-Stream size : 1.93 MiB (0%)
+Stream size : 1.92 MiB
+Stream size : 1.921 MiB
+Stream size : 1.92 MiB (0%)
Proportion of this stream : 0.00110
-IsStreamable : No
+IsStreamable : Yes
Encoded date : 2023-12-26 12:07:18 UTC
-File last modification date : 2024-02-25 15:26:13 UTC
-File last modification date (local) : 2024-02-25 16:26:13
+File last modification date : 2023-12-26 12:10:24 UTC
+File last modification date (local) : 2023-12-26 13:10:24
Writing application : MakeMKV v1.17.5 linux(x64-release)
Writing application : MakeMKV v1.17.5 linux(x64-release)
Writing library : libmakemkv v1.17.5 (1.3.10/1.5.2) x86_64-linux-gnu
@@ -79,7 +78,6 @@
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
-Inform : English, 4 830 kb/s, 720*576 (16:9), at 25.000 FPS, MPEG Video (Component) (Version 2) (Main@Main) (CustomMatrix / BVOP)
ID : 1
ID : 1
ID in the original source medium : 224
@@ -200,7 +198,6 @@
Stream identifier : 0
Stream identifier : 1
StreamOrder : 1
-Inform : English, 448 kb/s, 48.0 kHz, 6 channels, AC-3 (Dolby Digital)
ID : 2
ID : 2
ID in the original source medium : 189-128
@@ -307,7 +304,6 @@
Stream identifier : 1
Stream identifier : 2
StreamOrder : 2
-Inform : German, 448 kb/s, 48.0 kHz, 6 channels, AC-3 (Dolby Digital)
ID : 3
ID : 3
ID in the original source medium : 189-129
@@ -524,7 +520,6 @@
Stream identifier : 0
Stream identifier : 1
StreamOrder : 4
-Inform : Danish, VobSub
ID : 5
ID : 5
ID in the original source medium : 189-32
@@ -575,7 +570,6 @@
Stream identifier : 1
Stream identifier : 2
StreamOrder : 5
-Inform : German, VobSub
ID : 6
ID : 6
ID in the original source medium : 189-34
@@ -626,7 +620,6 @@
Stream identifier : 2
Stream identifier : 3
StreamOrder : 6
-Inform : English, VobSub
ID : 7
ID : 7
ID in the original source medium : 189-36
So is MKVToolNix destroying my file or is there a bug in Jellyfin? I'm using v82.0 of MKVToolNix.
|