SpMCool 4 Posted April 11, 2019 Share Posted April 11, 2019 (edited) Hello, I have been trying to figure out what is causing the below error, but cant figure it out. I confirmed the 'Owner' for EmbyServer.exe is correct and that the account launching Emby are correct and have full read/write permission to the complete Emby-Server Directory. I even tried running Emby Server on different OS's, Server 2019 Datacenter, Server 2016 Datacenter (initially what I installed Emby-Server on) and Windows 10 Enterprise; but getting the error under all of them and cant figure out why. 2019-04-10 22:39:48.444 Debug App: Running FFProbeProvider for \\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp42019-04-10 22:39:48.444 Debug MediaEncoder: Ffprobe -i file:"\\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data2019-04-10 22:39:48.444 Info MediaEncoder: ProcessRun 'ffprobe' Execute: M:\Emby-Server\system\ffprobe.exe -i file:"\\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data2019-04-10 22:39:48.571 Info MediaEncoder: ProcessRun 'ffprobe' Started.2019-04-10 22:39:49.875 Info MediaEncoder: ProcessRun 'ffprobe' Process exited with code 02019-04-10 22:39:49.883 Debug App: Running MovieNfoProvider for \\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp42019-04-10 22:39:49.897 Debug App: Running MovieDbProvider for \\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp42019-04-10 22:39:49.900 Info HttpClient: GET https://api.themoviedb.org/3/movie/271110?api_key=f6bd687ffa63cd282b6ff2c6877f2669&append_to_response=casts,releases,images,keywords,trailers&language=English|German|Xhosa|Russian|Romanian|Hindi&include_image_language=English|German|Xhosa|Russian|Romanian|Hindi,null,en2019-04-10 22:39:50.082 Error App: Error in TheMovieDb *** Error Report *** Version: 4.0.3.0 Command line: M:\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 8 Program data path: M:\Emby-Server\programdata Application directory: M:\Emby-Server\system System.IO.IOException: System.IO.IOException: The filename, directory name, or volume label syntax is incorrect : 'M:\Emby-Server\programdata\cache\tmdb-movies2\271110\all-English|German|Xhosa|Russian|Romanian|Hindi.json' at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, FileOpenOptions fileOpenOptions) at Emby.Common.Implementations.Serialization.JsonSerializer.SerializeToFile(Object obj, String file) at MovieDb.MovieDbProvider.DownloadMovieInfo(String id, String preferredMetadataLanguage, String preferredMetadataCountry, CancellationToken cancellationToken) at MovieDb.GenericMovieDbInfo`1.FetchMovieData(String tmdbId, String imdbId, String language, String preferredCountryCode, CancellationToken cancellationToken) at MovieDb.GenericMovieDbInfo`1.GetMetadata(ItemLookupInfo itemId, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle ValidateFileHandle(Microsoft.Win32.SafeHandles.SafeFileHandle) at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, FileOpenOptions fileOpenOptions) at Emby.Common.Implementations.Serialization.JsonSerializer.SerializeToFile(Object obj, String file) at MovieDb.MovieDbProvider.DownloadMovieInfo(String id, String preferredMetadataLanguage, String preferredMetadataCountry, CancellationToken cancellationToken) at MovieDb.GenericMovieDbInfo`1.FetchMovieData(String tmdbId, String imdbId, String language, String preferredCountryCode, CancellationToken cancellationToken) at MovieDb.GenericMovieDbInfo`1.GetMetadata(ItemLookupInfo itemId, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken) 2019-04-10 22:39:50.082 Debug App: Running OmdbItemProvider for \\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp42019-04-10 22:39:50.098 Debug ProviderManager: Saving \\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp4 to Nfo. Clearly the '|' symbol cant not be in the filename since windows does not support it, but I was not sure if that was trying to access/save 'All-English' with the '|' or if it is passing the languages after the first '|' to the json file. (I am more versed in vb.net, vbscript, and SQL then json/web programming) That said, I only add/provide english spoken Movies and TV Shows, so I dont have Emby configured in any way, subtitles or else, for any language other then English, yet it appears that it is trying to pull data for other languages from TheMovieDb. I confirmed the file 'All-English' is in the directory, just nothing after the first '|' in the filename (which makes sense). Directory of M:\Emby-Server\programdata\cache\tmdb-movies2\271110 04/08/2019 05:11 AM <DIR> .04/08/2019 05:11 AM <DIR> ..03/28/2019 06:45 AM 73,134 all-alllang.json03/28/2019 06:45 AM 48,585 all-English.json Please let me know what could cause this so I can get it resolved. The error appears hundreds, if not thousands of times per day, however, the errors do not always have the same languages after the first '|'. If more info is needed, I will gladly provide it. I enabled debug logging in an attempt to figure out what is causing the errors, so the log files may be large (I have over 1500 moves and 5000 episodes). Thanks, Shawn Edited April 11, 2019 by SpMCool Link to comment Share on other sites More sharing options...
SpMCool 4 Posted April 11, 2019 Author Share Posted April 11, 2019 this is I get when I run ffprobe exactly as emby does (M:\Emby-Server\system\ffprobe.exe -i file:"\\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data) a few lines prior to the error: ffprobe version 4.0.2-emby_2018_12_09-g5abbb1430d+238 Copyright © 2007-2018 the FFmpeg developers built with gcc 8.2.1 (Rev1, Built by MSYS2 project) 20181207 configuration: --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --disable-debug --enable-ffnvcodec --enable-nvdec --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libaom --enable-version3 --enable-libzvbi --enable-gnutls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100{Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:\\172.20.2.2\S$\Media Server\Movies\Captain America Civil War (2016)\Captain America Civil War (2016) - 1080p.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.22.100 Duration: 02:27:41.98, start: 0.000000, bitrate: 2175 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800 [sAR 1:1 DAR 12:5], 2049 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 119 kb/s (default) Metadata: handler_name : SoundHandler "streams": [ { "index": 0, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "High", "codec_type": "video", "codec_time_base": "1001/48000", "codec_tag_string": "avc1", "codec_tag": "0x31637661", "width": 1920, "height": 800, "coded_width": 1920, "coded_height": 800, "has_b_frames": 2, "sample_aspect_ratio": "1:1", "display_aspect_ratio": "12:5", "pix_fmt": "yuv420p", "level": 41, "chroma_location": "left", "refs": 1, "is_avc": "true", "nal_length_size": "4", "r_frame_rate": "24000/1001", "avg_frame_rate": "24000/1001", "time_base": "1/24000", "start_pts": 0, "start_time": "0.000000", "duration_ts": 212686488, "duration": "8861.937000", "bit_rate": "2049725", "bits_per_raw_sample": "8", "nb_frames": "212474", "extradata": "\n00000000: 0164 0029 ffe1 0018 6764 0029 acd9 4078 .d.)....gd.)..@x\n00000010: 065b 0110 0000 3e90 000b b800 f183 1960 .[....>........`\n00000020: 0100 0668 e938 f3c8 f0 ...h.8...\n", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "language": "und", "handler_name": "VideoHandler" } }, { "index": 1, "codec_name": "aac", "codec_long_name": "AAC (Advanced Audio Coding)", "profile": "LC", "codec_type": "audio", "codec_time_base": "1/48000", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "fltp", "sample_rate": "48000", "channels": 2, "channel_layout": "stereo", "bits_per_sample": 0, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/48000", "start_pts": 0, "start_time": "0.000000", "duration_ts": 425373168, "duration": "8861.941000", "bit_rate": "119034", "max_bit_rate": "119034", "nb_frames": "415406", "extradata": "\n00000000: 1190 ..\n", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "language": "und", "handler_name": "SoundHandler" } } ], "chapters": [ ], "format": { "filename": "file:\\\\172.20.2.2\\S$\\Media Server\\Movies\\Captain America Civil War (2016)\\Captain America Civil War (2016) - 1080p.mp4", "nb_streams": 2, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0.000000", "duration": "8861.984000", "size": "2410088673", "bit_rate": "2175665", "probe_score": 100, "tags": { "major_brand": "isom", "minor_version": "512", "compatible_brands": "isomiso2avc1mp41", "encoder": "Lavf57.22.100" } }} Link to comment Share on other sites More sharing options...
Luke 37205 Posted April 12, 2019 Share Posted April 12, 2019 Hi, does your captain america civil war folder have a .nfo file inside? Link to comment Share on other sites More sharing options...
SpMCool 4 Posted April 12, 2019 Author Share Posted April 12, 2019 @@Luke, Yes, it does. When looking at the .nfo, I see numerous languages in the language tag: <language>English|German|Xhosa|Russian|Romanian|Hindi</language> If I go to Movies>manage library, i have English set to the preferred language and only have English checked for subtitles. I just tried refreshing all metadata for that movie, including artwork, and the newly written .nfo has the same languages listed in the Language tag. Please let me know if you need me to post the full .nfo or any other info. Thanks,Shawn Link to comment Share on other sites More sharing options...
Luke 37205 Posted April 12, 2019 Share Posted April 12, 2019 Try removing the language tag from that and then running a library scan. Link to comment Share on other sites More sharing options...
SpMCool 4 Posted April 16, 2019 Author Share Posted April 16, 2019 @@Luke, Sorry for the delay in response. I removed <language>English|German|Xhosa|Russian|Romanian|Hindi</language> from the nfo then refreshed the metadata for that movie and it still generated the error. I reopened the nfo to see if the language tag was recreated, but I could not find it, however, I found <languages>English, German, Xhosa, Russian, Romanian, Hindi</languages> near the bottom of the nfo. Since I backed up the original nfo before editing it, I figured id check it to see if both tags previously existed or if the 2nd one was added after editing it and refreshing the metadata. Surprisingly, the original contained both <language> and <languages> tags. I removed the 2nd tag from the updated nfo and confirmed there was no other tags containing languages. I refreshed the metadata for that movie again and NO error was generated!! After knowing what caused the error, I deleted the nfo completely and re-identified the movie to see if the fresh nfo contained either tag, which it did not. Does Emby require those those tags for anything specific or can I remove them from any/all nfo's? I dont want to remove them to fix the error then cause more errors if those tags are referenced/read elsewhere in Emby's code. I love that Emby supports multi-version movies, so in an attempt to remux/transcode as little as possible, I tend to have 1080p and UHD copies of my favorite movies and 720p, 1080p and UHD copy of popular movies. Therefore, a few months ago when I switched from Mezzmo to Emby, I used TMM to create separate movie folders and rename the movie to the formatting required (I do all this work in a temp directory then move them into my movies folder) and am going to assume that TMM is creating that tag when it generates the nfo after renaming the file. Does anyone know how to disable TMM from writing just those tags to the nfo? Or possibly a script (PowerShell, batch file, etc) that I could use to remove those tags from 1500+ files? (windows 10/server 2019) Thanks, Shawn Link to comment Share on other sites More sharing options...
Luke 37205 Posted April 16, 2019 Share Posted April 16, 2019 We use that tag to hold the metadata language preference but I think other programs are using it for other purposes. 1 Link to comment Share on other sites More sharing options...
SpMCool 4 Posted April 17, 2019 Author Share Posted April 17, 2019 @@Luke, I read up on how to do this using powershell and am in the process of creating the script now and wanted to get your input on how to handle this if the nfo files are only being used by emby (after inital creation by TMM). What do you recommend I do: Remove both language and languages tags completely so they are no longer in the nfo. Remove ONLY the values from those tags, leaving the tags there, just empty. Remove the values from both tags then add the value 'en' to language and 'English' to languages. I only add English speaking movies, so was thinking 3 might be best, but wanted to get your suggestion while I finish writing and tidy up the script. -Shawn Link to comment Share on other sites More sharing options...
Luke 37205 Posted April 17, 2019 Share Posted April 17, 2019 What do you mean by: language and languages tags What's the difference? Emby Server is only looking for: <language>xxx</language> Truthfully I think we should just stop using this and come up with our own tag name that will never conflict. But as always, that change can be difficult to make for existing users. @@Happy2Play Link to comment Share on other sites More sharing options...
SpMCool 4 Posted April 17, 2019 Author Share Posted April 17, 2019 @@Luke, Last night when I removed the tag <language> then refreshed the metadata, I still got the error. I then found another tag <languages> farther down in the same nfo. I removed that tag and refreshed the metadata again, and received no error which led me to believe that emby read both tags. That said, I just ran the tests again and noticed the changes I made to the nfo are not read initially. Meaning, after I edit a nfo and hit refresh all metadata, emby still errors out, however, the next time and all subsequent times I run another metadata refresh, it does not generate an error. I'm guessing emby initially loads the a cached copy of the nfo or a similar copy from a DB and doesn't reload it until it AFTER refreshing the metadata. Does that make sense? -Shawn Link to comment Share on other sites More sharing options...
Luke 37205 Posted April 17, 2019 Share Posted April 17, 2019 Right that's not really the way to do it, because refreshing all means internet first, then read the nfo later. Instead you want to just edit the nfo and then let the regular library scan pick up the changes. Link to comment Share on other sites More sharing options...
SpMCool 4 Posted April 17, 2019 Author Share Posted April 17, 2019 That makes sense, i jsut didnt want to scan my whole library everytime i wanted to test and assumed at first that replacing all metadata would rewrite the entire nfo containing only the data had just scraped. That aside, I was able to write and run a powershell script that cleared the <language> tag then write just 'English' to it. I then ran the task to scan media library, which completed without any errors on any movies! Thank you @@Luke for helping me out, its much appreciated! I have one other quick question that I have been unable to find an answer on. Does Emby support multi version tv show episodes? if so, what is the naming convention required for it to work? I have it configured and working for movies, I just haven't been able to find any info on how to name tv show episodes. The filename of the episode contains a '-' to separate the series name from S##E## or S##E## and episode title, so cant be used at the end of the name to specify the version like I did with my movies, unless I'm missing something. Thanks,Shawn Link to comment Share on other sites More sharing options...
Luke 37205 Posted April 19, 2019 Share Posted April 19, 2019 Does Emby support multi version tv show episodes? if so, what is the naming convention required for it to work? Yes we do, no special naming is required apart from normal tv naming conventions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now