![]() |
Post Processing DVR shows is losing metadata - 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: Post Processing DVR shows is losing metadata (/t-post-processing-dvr-shows-is-losing-metadata) |
Post Processing DVR shows is losing metadata - finicky6457 - 2024-12-16 I'm using Jellyfin to DVR shows which are saved in the "Recordings" library. I'm using the post processing feature to run a script that reencodes the .ts files to .mkv containers and then runs comskip to form a new video file. The script outputs the files to a new directory in the same structure (Show name, season, etc). The problem is that the conversion is losing some of the metadata like Season, Episode, and Description. I've tried copying the .nfo files from the Recordings directory to the new processed directory but the metadata is still lost. Any ideas on how to get the metadata to load or to change my process for recording/converting shows? RE: Post Processing DVR shows is losing metadata - TheDreadPirate - 2024-12-16 What are you using to convert TS to MKV? ffmpeg? RE: Post Processing DVR shows is losing metadata - finicky6457 - 2024-12-16 ffmpeg... i even tried adding "-movflags use_metadata_tags" but didn't do anything... the new files are formated like: original_filename.ts.mkv and the nfo filenames are original_filename.nfo. i even tried original_filename.ts.nfo. RE: Post Processing DVR shows is losing metadata - TheDreadPirate - 2024-12-17 The NFO doesn't need the extension of the file. It should just match the file name of the video, except the extension. You may need to "replace all metadata" perhaps? Does this show have a TMDB entry? Skip the NFO altogether? RE: Post Processing DVR shows is losing metadata - finicky6457 - 2024-12-18 (2024-12-17, 01:48 AM)TheDreadPirate Wrote: The NFO doesn't need the extension of the file. It should just match the file name of the video, except the extension. You may need to "replace all metadata" perhaps? The show has an IMDB and TMDB entry. The metadata for the show seems to be included. What is lost however is the episode metadata. "Replace all metadata" did not fix the problem. Here is an example: https://imgur.com/AtV0v88 - Original Recording https://imgur.com/LWUkuPF - Processed RE: Post Processing DVR shows is losing metadata - TheDreadPirate - 2024-12-18 Can you share your post processing script? I double checked my recordings and they maintain their metadata. An example NFO. Code: <?xml version="1.0" encoding="utf-8" standalone="yes"?> The files in the folder. Code: chris@rat-trap:/media/library/liveTV/series$ tree Document\ 72\ Hours/ My post processing script. Code: #!/bin/bash RE: Post Processing DVR shows is losing metadata - finicky6457 - 2024-12-19 This is my script: https://github.com/redaters/Jellyfin-Post-Processor/blob/main/reencode.sh I have two different .nfo files, one in the recordings directory that looks like this: Code: <movie> The other in the processed directory that looks like this: Code: <episodedetails> it seems like the first .nfo was created from metadata from the guide while the second was created from the file only. I also had some success copying the .nfo file from the recordings directory to the processed directory just after the video file was processed (before it was seen by Jellyfin). Jellyfin now has the full metadata for that video, but if I copy them after the file was seen by Jellyfin the metadata is not getting update. RE: Post Processing DVR shows is losing metadata - TheDreadPirate - 2024-12-19 I noticed that the first NFO says it is a movie. I'm assuming the second is the NFO that Jellyfin creates with NFO saver after you've moved it. If you are placing the first NFO in a shows library after processing it, I'm not sure that Jellyfin would pick it up. If you replaced the <movie> tags with <episodedetails> I think it would work. You should also disable NFO saver in the destination library to ensure that Jellyfin does not overwrite the existing NFO generated from the guide. RE: Post Processing DVR shows is losing metadata - finicky6457 - 2024-12-20 I think I found an easy workaround. I added a few lines to the reprocessing script that copies the .nfo file from the recording directory to the processed directory after the reencoding but before the comskip. It also renames it from original_name.nfo to original_name.ts.nfo (including the filename and extension of the original filename). This seems to get the .nfo file in the directory before Jellyfin sees it and therefore loads the metadata from the .nfo file instead of building a new one from the file metadata. I'm wondering if some of the problem stems from the recent Schedules Direct guide issue (https://forum.jellyfin.org/t-schedulesdirect-request-that-a-jellyfin-developer-contact-me). The shows are recording without Season information, so perhaps Jellyfin sees the files and assumes they are movies, not shows. |