AciDCooL 7 Posted March 28, 2020 Share Posted March 28, 2020 (edited) Hi guys, A user brought this to my attention yesterday, I was testing around and thought is was the websockets, but I also get it when using no reverse proxy at all. Looks to me that is has something todo with transcoding. On full quality there is no issue, it only happens when I manually change to 720p 5mbps or a external request comes with low bandwidth. See my attached logs. But I think I cannot change the ffmpeg included in the docker:latest container or can I ? Thanks for any help Host: rancheros image: emby/embyserver:latest version: 4.4.0.40 docker-compose: services: emby: hostname: emby image: emby/embyserver:latest volumes: - ${LOCALMEDIA_MOUNT}:/localmedia - ${MEDIA_MOUNT}:/media - ${CONFIG_MOUNT}/emby:/config environment: - PUID=${PUID} - PGID=${PGID} - TZ=Europe/Amsterdam deploy: replicas: 1 restart_policy: condition: any labels: traefik.tags: "frontend" traefik.frontend.passHostHeader: "true" traefik.frontend.rule: "Host:emby.${DOMAIN_NAME}" traefik.backend: "emby" traefik.docker.network: "traefik-net" traefik.port: "8920" traefik.protocol: "https" traefik.frontend.entryPoints: "https" traefik.frontend.auth.forward.address: "http://organizr:80/api/?v1/auth&group=4" traefik.frontend.auth.forward.trustForwardHeader: "true" traefik.frontend.auth.headerField: "X-WebAuth-User" traefik.frontend.auth.forward.tls.insecureSkipVerify: "true" traefik.frontend.headers.SSLRedirect: "true" traefik.frontend.errors.networks.status: "400-599" traefik.frontend.errors.networks.backend: "error-handler" traefik.frontend.errors.networks.query: "/400.html" networks: - traefik-net ports: - target: 8096 published: 8096 protocol: tcp mode: host - target: 8920 published: 8920 protocol: tcp mode: host embylog.zip Edited March 28, 2020 by AciDCooL Link to comment Share on other sites More sharing options...
AciDCooL 7 Posted March 28, 2020 Author Share Posted March 28, 2020 (edited) 13:47:49.573 [h264 @ 0x1846a00] decode_slice_header error 13:47:49.573 [m4v @ 0x183d180] Stream #0: not enough frames to estimate rate; consider increasing probesize 13:47:49.573 [m4v @ 0x183d180] decoding for stream 0 failed 13:47:49.573 [m4v @ 0x183d180] Could not find codec parameters for stream 0 (Video: h264, none(progressive)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options 13:47:49.573 Input #0, m4v, from '/media/-=Movies=-/Scream, Queen! My Nightmare on Elm Street (2019)/Scream, Queen! My Nightmare on Elm Street (2019) - [WEBDL-720P][H264]-IJP.m4v': 13:47:49.573 Duration: N/A, bitrate: N/A 13:47:49.573 Stream #0:0: Video: h264, none(progressive), Level 129, 25 fps, 25 tbr, 1200k tbn, 50 tbc 13:47:49.573 Stream map '0:1' matches no streams. To ignore this, add a trailing '?' to the map. 13:47:49.575 Hmm i've been converting video files for a while now never had these problems, i even reverted back Emby a few revisions, didn't seem to help either. Not to scream in the church but plex play's these files fine. log from the conversion: 2020-03-27 02:51:16 - RadarrPostProcess - INFO - Radarr extra script post processing started. 2020-03-27 02:51:16 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3 2020-03-27 02:51:16 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Processing /media/-=Movies=-/Scream, Queen! My Nightmare on Elm Street (2019)/Scream, Queen! My Nightmare on Elm Street (2019) - [WEBDL-720P][H264]-IJP.mkv. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Input Data 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - { "format": "matroska,webm", "format-fullname": "Matroska / WebM", "video": { "index": 0, "codec": "h264", "pix_fmt": "yuv420p", "profile": "high", "fps": 23.976023976023978, "level": 3.1, "field_order": "progressive" }, "audio": [ { "index": 1, "codec": "eac3", "channels": 6, "samplerate": 48000, "language": "eng", "disposition": "+default" } ], "subtitle": [ { "index": 2, "codec": "subrip", "disposition": null, "language": "eng" } ], "attachment": [] } 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Reading video stream. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Video codec detected: h264. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Pix Fmt: yuv420p. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Profile: high. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Reading audio streams. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Audio detected for stream 1 - eac3 eng 6 channel. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Creating aac audio stream source audio stream 1 [universal-audio]. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Creating aac audio stream from source stream 1. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Copying audio stream from source stream 1 format eac3 [audio-copy-original]. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Default audio stream set to eng aac 6 channel stream [default-more-channels: True]. 2020-03-27 02:51:17 - resources.mediaprocessor - INFO - Reading subtitle streams. 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 2 - subrip eng. 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Creating mov_text subtitle stream from source stream 2. 2020-03-27 02:51:51 - resources.mediaprocessor - ERROR - No valid subtitle download languages detected, subtitles will not be downloaded. 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Scanned for external subtitles and found 0 results in your approved languages. 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Output Data 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - { "source": [ "/media/-=Movies=-/Scream, Queen! My Nightmare on Elm Street (2019)/Scream, Queen! My Nightmare on Elm Street (2019) - [WEBDL-720P][H264]-IJP.mkv" ], "format": "mp4", "video": { "codec": "copy", "map": 0, "bitrate": 6010.277, "crf": -1, "maxrate": null, "bufsize": null, "level": 0.0, "profile": null, "pix_fmt": null, "field_order": "progressive", "width": null, "debug": "video" }, "audio": [ { "map": 1, "codec": "aac", "channels": 2, "bitrate": 256, "samplerate": null, "filter": "", "language": "eng", "disposition": null, "title": "Stereo", "debug": "universal-audio" }, { "map": 1, "codec": "aac", "channels": 6, "bitrate": 1536, "filter": null, "samplerate": null, "language": "eng", "disposition": "+default", "bsf": null, "title": "5.1 Channel", "debug": "audio" }, { "map": 1, "codec": "copy", "channels": 6, "language": "eng", "disposition": null, "debug": "audio-copy-original" } ], "subtitle": [ { "map": 2, "codec": "mov_text", "language": "eng", "encoding": "", "disposition": null, "debug": "subtitle.embed-subs" } ], "attachment": [] } 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Preopts 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - [ "-fix_sub_duration" ] 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Postopts 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - [ "-threads", "10", "-metadata:g", "encoding_tool=SMA" ] 2020-03-27 02:51:51 - resources.mediaprocessor - INFO - Starting conversion. 2020-03-27 03:24:35 - resources.mediaprocessor - INFO - /media/-=Movies=-/Scream, Queen! My Nightmare on Elm Street (2019)/Scream, Queen! My Nightmare on Elm Street (2019) - [WEBDL-720P][H264]-IJP.m4v created. 2020-03-27 03:24:36 - resources.mediaprocessor - INFO - Tagging /media/-=Movies=-/Scream, Queen! My Nightmare on Elm Street (2019)/Scream, Queen! My Nightmare on Elm Street (2019) - [WEBDL-720P][H264]-IJP.mkv with TMDB ID 321066. 2020-03-27 03:24:36 - resources.metadata - INFO - Tagging file: /media/-=Movies=-/Scream, Queen! My Nightmare on Elm Street (2019)/Scream, Queen! My Nightmare on Elm Street (2019) - [WEBDL-720P][H264]-IJP.m4v. 2020-03-27 03:24:40 - resources.metadata - INFO - Trying to write tags. 2020-03-27 03:24:40 - resources.metadata - INFO - Tags written successfully. ffmpeg version N-51907-ge27a35e045-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 56. 42.100 / 56. 42.100 libavcodec 58. 73.102 / 58. 73.102 libavformat 58. 39.101 / 58. 39.101 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 77.100 / 7. 77.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 ffprobe version N-51907-ge27a35e045-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2020 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 56. 42.100 / 56. 42.100 libavcodec 58. 73.102 / 58. 73.102 libavformat 58. 39.101 / 58. 39.101 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 77.100 / 7. 77.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Edited March 28, 2020 by AciDCooL Link to comment Share on other sites More sharing options...
Luke 37098 Posted March 28, 2020 Share Posted March 28, 2020 Hi there, can you please attach the complete emby server and ffmpeg log? thanks. Link to comment Share on other sites More sharing options...
AciDCooL 7 Posted March 28, 2020 Author Share Posted March 28, 2020 My bad forgot to click attach Link to comment Share on other sites More sharing options...
Luke 37098 Posted March 28, 2020 Share Posted March 28, 2020 First thing is anytime you have a problem like this, you should try setting server transcoding settings back to default: Warning EncoderParametersH264LibX.ConstantRateFactor: Original: 23 Actual: 18 Warning EncoderParametersH264LibX.Preset: Original: veryfast Actual: superfast Can you try that. Thanks. Link to comment Share on other sites More sharing options...
AciDCooL 7 Posted March 28, 2020 Author Share Posted March 28, 2020 (edited) Changed back to defaults, restarted container, no dice. attached logs. edit: made a testfile to reproduce it when you put it through the transcoder. convert log: 2020-03-28 18:43:41 - MANUAL - INFO - Manual processor started. 2020-03-28 18:43:41 - MANUAL - INFO - /usr/local/sma/venv/bin/python3 2020-03-28 18:43:41 - MANUAL - INFO - Loading config file /usr/local/sma/config/autoProcess.ini. 2020-03-28 18:43:41 - MANUAL - ERROR - Unable to guess movie information Traceback (most recent call last): File "manual.py", line 158, in guessInfo return movieInfo(guess, tmdbid=tmdbid, imdbid=imdbid) File "manual.py", line 182, in movieInfo release = result['release_date'] KeyError: 'release_date' 2020-03-28 18:43:41 - MANUAL - INFO - Processing file /media/-=Downloads=-/test1.mkv 2020-03-28 18:43:41 - MANUAL - INFO - Input Data 2020-03-28 18:43:41 - MANUAL - INFO - { "format": "matroska,webm", "format-fullname": "Matroska / WebM", "video": { "index": 0, "codec": "msmpeg4v2", "pix_fmt": "yuv420p", "profile": "unknown", "fps": 24.0, "level": -9.9, "field_order": "unknown" }, "audio": [ { "index": 1, "codec": "mp3", "bitrate": 208000, "channels": 2, "samplerate": 48000, "language": "eng", "disposition": "+default" } ], "subtitle": [], "attachment": [] } 2020-03-28 18:43:41 - MANUAL - INFO - Reading video stream. 2020-03-28 18:43:41 - MANUAL - INFO - Video codec detected: msmpeg4v2. 2020-03-28 18:43:41 - MANUAL - INFO - Pix Fmt: yuv420p. 2020-03-28 18:43:41 - MANUAL - INFO - Profile: unknown. 2020-03-28 18:43:41 - MANUAL - INFO - Reading audio streams. 2020-03-28 18:43:41 - MANUAL - INFO - Audio detected for stream 1 - mp3 eng 2 channel. 2020-03-28 18:43:41 - MANUAL - INFO - Creating aac audio stream from source stream 1. 2020-03-28 18:43:41 - MANUAL - INFO - Copying audio stream from source stream 1 format mp3 [audio-copy-original]. 2020-03-28 18:43:41 - MANUAL - INFO - Default audio stream set to eng aac 2 channel stream [default-more-channels: True]. 2020-03-28 18:43:41 - MANUAL - INFO - Reading subtitle streams. 2020-03-28 18:43:41 - MANUAL - ERROR - No valid subtitle download languages detected, subtitles will not be downloaded. 2020-03-28 18:43:42 - MANUAL - INFO - Scanned for external subtitles and found 0 results in your approved languages. 2020-03-28 18:43:42 - MANUAL - INFO - Output Data 2020-03-28 18:43:42 - MANUAL - INFO - { "source": [ "/media/-=Downloads=-/test1.mkv" ], "format": "mp4", "video": { "codec": "h264", "map": 0, "bitrate": 1833.3945499999998, "crf": -1, "maxrate": null, "bufsize": null, "level": 0.0, "profile": null, "pix_fmt": null, "field_order": "unknown", "width": null, "debug": "video" }, "audio": [ { "map": 1, "codec": "aac", "channels": 2, "bitrate": 256, "filter": null, "samplerate": null, "language": "eng", "disposition": "+default", "bsf": null, "title": "Stereo", "debug": "universal-audio" }, { "map": 1, "codec": "copy", "channels": 2, "language": "eng", "disposition": null, "debug": "audio-copy-original" } ], "subtitle": [], "attachment": [] } 2020-03-28 18:43:42 - MANUAL - INFO - Preopts 2020-03-28 18:43:42 - MANUAL - INFO - [] 2020-03-28 18:43:42 - MANUAL - INFO - Postopts 2020-03-28 18:43:42 - MANUAL - INFO - [ "-threads", "10", "-metadata:g", "encoding_tool=SMA" ] 2020-03-28 18:43:42 - MANUAL - INFO - Starting conversion. 2020-03-28 18:43:57 - MANUAL - INFO - /media/-=Downloads=-/test1.m4v created. its probably an incompatibility from the newest ffmpeg versions, cant put my finger on it though. It has all the right properties and streams it should have. embylogs.zip bigbucksbunny.zip Edited March 28, 2020 by AciDCooL Link to comment Share on other sites More sharing options...
AciDCooL 7 Posted March 28, 2020 Author Share Posted March 28, 2020 Ok, wtf I renamed the file from m4v to mp4 and everything works again... am I losing it? Nope renamed them back and error is there again. I'm using m4v for a long time never noticed this behaviour. Since this is the only way to differentiate between converted content and downloaded content. Hmzz. Ill rename all my files to mp4 in the meantime. Link to comment Share on other sites More sharing options...
deceptionatd 0 Posted April 4, 2020 Share Posted April 4, 2020 Had these same symptoms crop up earlier on my install. Same error at the end of the ffmpeg log: Stream map '0:1' matches no streams. It only seemed to crop up after I updated to Emby 4.4.0.40. I then upgraded to 4.4.1.0, which didn't resolve the issue. I had just watched the video file referenced in that log a few hours earlier, so I know there's nothing inherently wrong with it. I've attached a file with the Emby server log, the ffmpeg transcode log, and the kernel, OS, and hardware info. I was also able to resolve this by renaming all the .m4v files to .mp4 with a regex, so it's resolved for me. Hopefully this gives you a bit more context in case it's a widespread issue. Link to comment Share on other sites More sharing options...
Luke 37098 Posted April 4, 2020 Share Posted April 4, 2020 Had these same symptoms crop up earlier on my install. Same error at the end of the ffmpeg log: Stream map '0:1' matches no streams. It only seemed to crop up after I updated to Emby 4.4.0.40. I then upgraded to 4.4.1.0, which didn't resolve the issue. I had just watched the video file referenced in that log a few hours earlier, so I know there's nothing inherently wrong with it. I've attached a file with the Emby server log, the ffmpeg transcode log, and the kernel, OS, and hardware info. I was also able to resolve this by renaming all the .m4v files to .mp4 with a regex, so it's resolved for me. Hopefully this gives you a bit more context in case it's a widespread issue. Hi there, please attach a new log file example. Thanks. Link to comment Share on other sites More sharing options...
deceptionatd 0 Posted April 5, 2020 Share Posted April 5, 2020 There you are. Forgot to press attach... emby-server-ffmpeg-m4v-issue.zip Link to comment Share on other sites More sharing options...
trekkie690 0 Posted April 5, 2020 Share Posted April 5, 2020 Having the same issue. Posted another post so i copy paste into here. My Post I have mostly used Handbrake to backup and stream my dvds and blu rays in my house. I convert them to h265 because its compression and streaming quality (in my opinion) is better. Emby has done fine streaming to my system from version 4.3.0 and prior. Upgraded to 4.4.0.40 and it worked fine for a few days, then i started to get the playback error (see attached image) for all media when watching on my normal browsers (Firefox/chrome). Check media that i knew was h264. It still worked, though it shows as direct streaming. I can still watch my media, but only with MS Edge which can direct stream h265, or my IoT devices that can receive direct streams as well (so im not dead in the water). The ffmpeg logs looks like there is an error with h265 trans-coding when it would trans-code to h264 to my browser. Anyone have a similar issue and resolve it, is this just an ffmpeg issue and i wait for the future patch, or should i download ffmpeg on my linux system and point to it to stream the media? Forgot to add, i did upgrade to 4.4.1.0 which is where the logs are from. Same issue i have not tried the rename m4v to mp4. I'll try that to see if it helps. ffmpeg-transcode-d528e9b2-2b7b-470a-9de8-783f838a88a2_1.txt ffmpeg-transcode-d7353d59-28db-4291-815b-58b38fb806df_1.txt embyserver.txt Link to comment Share on other sites More sharing options...
trekkie690 0 Posted April 5, 2020 Share Posted April 5, 2020 So tried the change m4v to mp4. it worked. Any idea WTF is going on here? Dont really want to have to change all my movies from .m4v to .mp4. The V actually helps me ID whats a video vs the m4a and m4b i actually use for the mp4 containers. embyserver.txt ffmpeg-transcode-31dd1d67-add8-4a30-921a-0b51fb65195f_1.txt Link to comment Share on other sites More sharing options...
Solution Luke 37098 Posted April 5, 2020 Solution Share Posted April 5, 2020 Ok we're going to have to make an additional adjustment for certain m4v files. It will be resolved in 4.4.2. Thanks. 1 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