{"action":"created","issue":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/810","repository_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer","labels_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/810/labels{/name}","comments_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/810/comments","events_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/810/events","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/issues/810","id":128998004,"number":810,"title":"Bug Report:  External Subtitles File Causing Video Videos Not to Play","user":{"login":"autumnriver","id":16909407,"avatar_url":"https://avatars.githubusercontent.com/u/16909407?v=3","gravatar_id":"","url":"https://api.github.com/users/autumnriver","html_url":"https://github.com/autumnriver","followers_url":"https://api.github.com/users/autumnriver/followers","following_url":"https://api.github.com/users/autumnriver/following{/other_user}","gists_url":"https://api.github.com/users/autumnriver/gists{/gist_id}","starred_url":"https://api.github.com/users/autumnriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autumnriver/subscriptions","organizations_url":"https://api.github.com/users/autumnriver/orgs","repos_url":"https://api.github.com/users/autumnriver/repos","events_url":"https://api.github.com/users/autumnriver/events{/privacy}","received_events_url":"https://api.github.com/users/autumnriver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-01-27T01:31:07Z","updated_at":"2016-03-02T03:13:43Z","closed_at":null,"body":"This post has been edited to update the nature of the problem.\r\n\r\nWindows 10 64bit\r\nUMS 5.5.0\r\nRenderer:  LG BD670 Blu-Ray Player\r\n\r\nWhen a subtitle .srt file is included in same folder with a video file (any format) the video file does not play thru UMS when the renderer is an LG BD670. \r\n\r\nWhen the .srt file is deleted from the folder, the video displays and can be played, but without subtitles.\r\n\r\nWhen the same files in the same folder are streamed using Windows Network File sharing instead of UMS, the LG correctly displays both files and plays the video (with subtitles).  Therefore UMS is at fault, not the LG Blu-Ray player.\r\n\r\nA new clean install does not solve the problem\r\n[ums_dbg.zip](https://github.com/UniversalMediaServer/UniversalMediaServer/files/106694/ums_dbg.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/comments/191033690","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/issues/810#issuecomment-191033690","issue_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/810","id":191033690,"user":{"login":"vargasjj","id":14932891,"avatar_url":"https://avatars.githubusercontent.com/u/14932891?v=3","gravatar_id":"","url":"https://api.github.com/users/vargasjj","html_url":"https://github.com/vargasjj","followers_url":"https://api.github.com/users/vargasjj/followers","following_url":"https://api.github.com/users/vargasjj/following{/other_user}","gists_url":"https://api.github.com/users/vargasjj/gists{/gist_id}","starred_url":"https://api.github.com/users/vargasjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vargasjj/subscriptions","organizations_url":"https://api.github.com/users/vargasjj/orgs","repos_url":"https://api.github.com/users/vargasjj/repos","events_url":"https://api.github.com/users/vargasjj/events{/privacy}","received_events_url":"https://api.github.com/users/vargasjj/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T03:13:43Z","updated_at":"2016-03-02T03:13:43Z","body":"Hi. I am hitting this same bug on Ubuntu 14.04 running UMS 6.1.0 with Java 8 and running Android smartphones. I see the same issue in my LG TV.\r\n\r\nIf I removed my external subtitles, I get the movie playing without any problems.\r\nIf I copy the .srt file with the exact name of the movie, then, I cannot play it.\r\n\r\nI sanitized a little bit my debugs.\r\n\r\n- Non-Working movie:\r\n\r\n`21:49:19 DEBUG Matched media renderer \"LG-HTS\" based on address /192.168.1.107\r\n21:49:19 DEBUG Starting transcode/remux of MyMovie.mp4 with media info: container: mp4, bitrate: 2221056, size: 2101269109, video tracks: 1, audio tracks: 1, subtitle tracks: 1, video codec: h264 (High) (avc1 / 0x31637661), duration: 02:09:08.20, width: 1920, height: 1024, frame rate: 23.98, mime type: video/mp4, attached fonts: false\r\n\tAudio track id: 0, lang: und, audio codec: aac (LC) (mp4a / 0x6134706D), sample frequency:48000, number of channels: 2, bits per sample: 16\r\n\tSubtitle track id: 100, type: SUBRIP, lang: es, externalFile: /home/jaime/Vídeos/MyMovie.srt, external file character set: ISO-8859-1\r\n21:49:19 DEBUG Starting mkfifo --mode=777 /tmp/UMS-jaime/ffmpegvideo_815_1456886959345\r\n21:49:19 DEBUG Unix process ID (mkfifo): 9830\r\n21:49:19 DEBUG Starting /opt/UMS/linux/ffmpeg64 -y -loglevel fatal -i /home/jaime/Vídeos/MyMovie.mp4 -filter_complex subtitles=/home/jaime/Vídeos/MyMovie.srt:charenc=ISO-8859-1 -bufsize 5000000 -maxrate 14000000 -g 25 -qmax 7 -qmin 2 -ab 448k -c:a ac3 -c:v mpeg2video -f vob /tmp/UMS-jaime/ffmpegvideo_815_1456886959345\r\n21:49:19 DEBUG Reading pipe: /tmp/UMS-jaime/ffmpegvideo_815_1456886959345\r\n21:49:22 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:22 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:23 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:23 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:24 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:24 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:25 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:25 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:26 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:26 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:49:27 ERROR There is no inputstream to return for MyMovie.mp4 [FFmpeg] {External Subtitles}`\r\n\r\n- Here is another movie I tried and it worked OK. I just stopped it manually on my video player.\r\nWorking movie:\r\n\r\n`21:16:46 DEBUG Matched media renderer \"Chromecast\" based on address /192.168.1.105\r\n21:16:46 DEBUG Starting transcode/remux of MyOtherMovie.mp4 with media info: container: mp4, bitrate: 2246656, size: 2003315016, video tracks: 1, audio tracks: 1, subtitle tracks: 1, video codec: h264 (High) (avc1 / 0x31637661), duration: 02:01:43.37, width: 1920, height: 1072, frame rate: 23.98, thumb size: 1918, mime type: video/mp4, attached fonts: false\r\n\tAudio track id: 0, lang: und, audio codec: aac (LC) (mp4a / 0x6134706D), sample frequency:48000, number of channels: 2, bits per sample: 16\r\n\tSubtitle track id: 100, type: SUBRIP, lang: null, externalFile: /home/jaime/Vídeos/MyOtherMovie.srt, external file character set: UTF-8\r\n21:16:46 DEBUG Starting mkfifo --mode=777 /tmp/UMS-jaime/ffmpegvideo_89_1456885006848\r\n21:16:46 DEBUG Unix process ID (mkfifo): 8218\r\n21:16:47 DEBUG Starting /opt/UMS/linux/ffmpeg64 -y -loglevel fatal -i /home/jaime/Vídeos/MyOtherMovie.mp4 -filter_complex subtitles=/home/jaime/Vídeos/In.The.Heart.Of.The.Sea.2015.1080p.BluRay.x264-\\[YTS.AG\\].srt -bufsize 10000000 -maxrate 9000000 -crf 23 -ab 448k -c:v libx264 -tune zerolatency -preset ultrafast -level 31 -pix_fmt yuv420p -async 1 -fflags +genpts -c:a libmp3lame -ac 2 -b:v 35000k -bufsize 35000k -f matroska /tmp/UMS-jaime/ffmpegvideo_89_1456885006848\r\n21:16:47 DEBUG Reading pipe: /tmp/UMS-jaime/ffmpegvideo_89_1456885006848\r\n21:16:47 DEBUG Attaching thread: ffmpeg64-38\r\n21:16:47 DEBUG Unix process ID (/opt/UMS/linux/ffmpeg64): 8222\r\n21:16:49 DEBUG Matched media renderer \"Chromecast\" based on address /192.168.1.105\r\n21:16:49 INFO  Started playing MyOtherMovie.mp4 on your Chromecast\r\n21:16:49 DEBUG The full filename of which is: /home/jaime/Vídeos/MyOtherMovie.mp4 and the address of the renderer is: 192.168.1.105\r\n21:17:13 DEBUG Connection error: java.io.IOException: Conexión reinicializada por la máquina remota\r\n21:17:13 DEBUG Premature end, stopping...\r\n21:17:16 DEBUG Stopping Unix process 8222: ffmpeg64-38\r\n21:17:16 DEBUG Stopping Unix process 8218: mkfifo-39`\r\n\r\n\r\n- Here is another Non-Working movie:\r\n\r\n`21:17:46 DEBUG Sending ALIVE...\r\n21:17:51 DEBUG Matched media renderer \"Chromecast\" based on address /192.168.1.105\r\n21:17:55 DEBUG Matched media renderer \"Chromecast\" based on address /192.168.1.105\r\n21:17:55 DEBUG Starting transcode/remux of MyNextMovie.mp4 with media info: container: mp4, bitrate: 2223104, size: 1948605225, video tracks: 1, audio tracks: 1, subtitle tracks: 1, video codec: h264 (High) (avc1 / 0x31637661), duration: 01:59:38.05, width: 1920, height: 1024, frame rate: 23.98, thumb size: 19126, mime type: video/mp4, attached fonts: false\r\n\tAudio track id: 0, lang: und, audio codec: aac (LC) (mp4a / 0x6134706D), sample frequency:48000, number of channels: 2, bits per sample: 16\r\n\tSubtitle track id: 100, type: SUBRIP, lang: es, externalFile: /home/jaime/Vídeos/MyNextMovie.srt, external file character set: ISO-8859-1\r\n21:17:55 DEBUG Starting mkfifo --mode=777 /tmp/UMS-jaime/ffmpegvideo_84_1456885075879\r\n21:17:55 DEBUG Unix process ID (mkfifo): 8281\r\n21:17:56 DEBUG Starting /opt/UMS/linux/ffmpeg64 -y -loglevel fatal -i /home/jaime/Vídeos/MyNextMovie.mp4 -filter_complex subtitles=/home/jaime/Vídeos/MyNextMovie.srt:charenc=ISO-8859-1 -bufsize 10000000 -maxrate 9000000 -crf 23 -ab 448k -c:v libx264 -tune zerolatency -preset ultrafast -level 31 -pix_fmt yuv420p -async 1 -fflags +genpts -c:a libmp3lame -ac 2 -b:v 35000k -bufsize 35000k -f matroska /tmp/UMS-jaime/ffmpegvideo_84_1456885075879\r\n21:17:56 DEBUG Reading pipe: /tmp/UMS-jaime/ffmpegvideo_84_1456885075879\r\n21:17:58 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:17:59 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:17:59 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:00 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:00 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:01 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:01 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:02 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:02 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:03 DEBUG External input stream instance is null... sounds not good, waiting 500ms\r\n21:18:03 ERROR There is no inputstream to return for MyNextMovie {External Subtitles}\r\n21:18:03 ERROR External input stream instance is null... stopping process\r\n21:18:03 DEBUG Stopping Unix process 8285: ffmpeg64-40\r\n21:18:03 DEBUG Stopping Unix process 8281: mkfifo-41`\r\n\r\n\r\nThe is a difference on this movies when talking about subtitles.\r\nThe Working movie has some sort of <i></i> and some other <b></b> tagging (like some sort of HTML) code.\r\nThis is NOT present none of my other .srt files, only the working movie. I have like 5 movies with their own .srt files and 4 of the 5 has no weird tagging like the working one.\r\n\r\nThis therefore produces that a `:charenc=ISO-8859-1` strange string is added on the debugs.\r\nIt also produces that the server tries to find a file named `MyNextMovie {External Subtitles}` which contains an **SPACE** between the name of the movie and the string `{External Subtitles}`.\r\nIt also happen with different other names such as `[FFmpeg] {External Subtitles}` , which are not being added in the Working movie at all. Only on the rest of the movies.\r\n\r\nDoes anyone can identify a similar outcomes here?\r\n\r\nI'd appreciate any guidelines because I don't want to go a Windows environment. I'd rather stay in Ubuntu.\r\nThis is NOT happening in my Windows though (yes, I got a UMS on a Windows).\r\n\r\nRegards,\r\n\r\n- JJ"}}