mikojacko 0 Posted November 18, 2016 Posted November 18, 2016 (edited) Hi to all, i'm trying to use Emby to transcode some mkv video sources to my home devices (TV, smartphone etc) I have some http links of some video-on-demand contents that perfecty works with VLC Kodi and so on.... I've created a folder with .strm files for each content titanic.strm this file contain the link of the content http://xxxxxxxxxxxxx:8080/xxxxx/xxxxxxxxxx/xxxxxxxxx/372.mkv So i've added the folder to emby library (for scraping andi indexing) and then tryed to stream the content via emby. The stream does not starts nor using webclient nor ios client nor every clinet i've tested. I've seen than emby, try to transcode the stream but the transconding logs seem to "hang" https://paste2.org/wfC4w5zw transconding.log https://paste2.org/m5CCjGGn server.log the strange thing is that, if in the meanwhile i run the same fmpeg.exe command (taken from le transconfing.log file ) from the command line (by myself) the transocoding starts, the temp files is generated and the streaming starts! C:\Users\BeLab\Desktop\ffmpeg-3.1.4-win64-static\bin\ffmpeg.exe -fflags +genpts -i "http://xxxxxxxxxxxxx:8080/xxxxx/xxxxxxxxxx/xxxxxxxxx/372.mkv " -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -tune zerolatency -b:v 247549935 -maxrate 247549935 -bufsize 495099870 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/17ca8e4ad8cb5895ae147607cd98f223/" -y "C:\Users\BeLab\AppData\Roaming\Emby-Server\transcoding-temp\17ca8e4ad8cb5895ae147607cd98f223.m3u8" Have you and explaination? I've done the same things usin windows 7 and windows 10. same behavior Thanks for you support PS: in the logs i have hidden the http link. Edited November 18, 2016 by mikojacko
Luke 42083 Posted November 18, 2016 Posted November 18, 2016 Hi, welcome. Please attach the complete emby server log. Thanks !
mikojacko 0 Posted November 21, 2016 Author Posted November 21, 2016 Hi Luke, I've restarted the server and logged anything My action: -restart server -connect via iphone clinet to emby -request a video -emby server starts the transconding task (the trasncodingxxxx.log is created) -i've selected the ffmpeg command taken from transcondigxxxx.log ed execuded manyally via cmd -the video stream started with no problem. Without my manual intervention the trasconding does not starts https://paste2.org/UcUky59f (ffmpeg manually executed output via cmd.exe) https://paste2.org/BcEE4tmV (ffmpeg-transcode-7c0dceb0-21b8-4794-97b2-6a744085e8cf.txt) https://paste2.org/nHCFndzt (server-63615335171.txt)
Luke 42083 Posted November 21, 2016 Posted November 21, 2016 Hi, please try using this version of ffmpeg: https://github.com/MediaBrowser/Emby.Resources/tree/master/ffmpeg/windows You can download, then customize it in the Emby Server dashboard under Transcoding. Let us know if this helps. Thanks.
mikojacko 0 Posted November 23, 2016 Author Posted November 23, 2016 Hi Luke, i've tried the ffmpeg version you suggested, but i have the same results. The transconde log : http://x.x.x.x:8096/emby/videos/ed1eb1292fdc8554f5354fb317a583b1/live.m3u8?DeviceId=898DDE46-0ECB-4593-B65B-9AAB316026D1&MediaSourceId=ed1eb1292fdc8554f5354fb317a583b1&VideoCodec=h264&AudioCodec=aac,mp3&VideoBitrate=18448777&AudioBitrate=192000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=5620fd56a2d54bccab3a7dfd91ab97ef&api_key=80b61f873bd745e7adeb8b5bbf00fb39&CopyTimestamps=false&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=626693807a8382f9407aa3237629f91c&EnableSplittingOnNonKeyFrames=true {"Protocol":"Http","Id":"ed1eb1292fdc8554f5354fb317a583b1","Path":"http://xxxxxxxx:8080/xxxxx/xxxxx/xxxxxx/10048.mp4\n","Type":"Default","Container":"strm","Name":"","ETag":"626693807a8382f9407aa3237629f91c","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}} C:\Users\BeLab\Downloads\ffmpeg-20160410-win64\ffmpeg.exe -fflags +genpts -i "http://xxxxxxxx:8080/xxxxx/xxxxx/xxxxxx/10048.mp4 " -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -tune zerolatency -b:v 18448777 -maxrate 18448777 -bufsize 36897554 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/313761c21cacaab081c72fb2bba27cdd/" -y "C:\Users\BeLab\AppData\Roaming\Emby-Server\transcoding-temp\313761c21cacaab081c72fb2bba27cdd.m3u8" ffmpeg version N-79277-g0c90b2e Copyright © 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 20.100 / 55. 20.100 libavcodec 57. 34.100 / 57. 34.100 libavformat 57. 32.100 / 57. 32.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 41.100 / 6. 41.100 ----------------------------------------------------The logs ends here. The server logs says 2016-11-23 10:44:43.0951 Info HttpServer: HTTP GET http://xxxxxx:8096/emby/videos/ed1eb1292fdc8554f5354fb317a583b1/live.m3u8?DeviceId=898DDE46-0ECB-4593-B65B-9AAB316026D1&MediaSourceId=ed1eb1292fdc8554f5354fb317a583b1&VideoCodec=h264&AudioCodec=aac,mp3&VideoBitrate=18448777&AudioBitrate=192000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=5620fd56a2d54bccab3a7dfd91ab97ef&CopyTimestamps=false&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=626693807a8382f9407aa3237629f91c&EnableSplittingOnNonKeyFrames=true. UserAgent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A456 2016-11-23 10:44:43.1263 Info App: C:\Users\BeLab\Downloads\ffmpeg-20160410-win64\ffmpeg.exe -fflags +genpts -i "http://xxxxx:8080/xxxxx/xxxxxx/xxxxxx/10048.mp4 " -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -tune zerolatency -b:v 18448777 -maxrate 18448777 -bufsize 36897554 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/313761c21cacaab081c72fb2bba27cdd/" -y "C:\Users\BeLab\AppData\Roaming\Emby-Server\transcoding-temp\313761c21cacaab081c72fb2bba27cdd.m3u8" 2016-11-23 10:44:43.5326 Debug App: Disposing stream resources 2016-11-23 10:44:43.5326 Info App: FFMpeg exited with code 1 2016-11-23 10:44:43.5795 Debug App: Waiting for 3 segments in C:\Users\BeLab\AppData\Roaming\Emby-Server\transcoding-temp\313761c21cacaab081c72fb2bba27cdd.m3u8 So, i've tried to download the same mp4 file (that via http stream does not works) and point the strm to the local file. In this case emby works (the transconde works fine ) C:\Users\BeLab\Downloads\ffmpeg-20160410-win64\ffmpeg.exe -fflags +genpts -i file:"C:\Users\BeLab\Desktop\10048.mp4" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -tune zerolatency -b:v 23585090 -maxrate 23585090 -bufsize 47170180 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/782aff23a94393203f9e6432ba10d9b7/" -y "C:\Users\BeLab\AppData\Roaming\Emby-Server\transcoding-temp\782aff23a94393203f9e6432ba10d9b7.m3u8" <---- THIS WORKS C:\Users\BeLab\Downloads\ffmpeg-20160410-win64\ffmpeg.exe -fflags +genpts -i "http://xxxxxxxx:8080/xxxxx/xxxxx/xxxxxx/10048.mp4 " -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -tune zerolatency -b:v 18448777 -maxrate 18448777 -bufsize 36897554 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/313761c21cacaab081c72fb2bba27cdd/" -y "C:\Users\BeLab\AppData\Roaming\Emby-Server\transcoding-temp\313761c21cacaab081c72fb2bba27cdd.m3u8" <--- THIS NOT WORKS it seems there is a bug in ffmpeg while retrive the stream via http. Still i don't understand why if i execute the same command via cli manually everything works.
Luke 42083 Posted November 23, 2016 Posted November 23, 2016 So it's just stalling on that URL for some reason. Thanks for the report.
mikojacko 0 Posted November 29, 2016 Author Posted November 29, 2016 (edited) So no clue or suggestion? How can I report this bug ? I think is not ffmpeg problem (via command line it works) Edited November 29, 2016 by mikojacko
Luke 42083 Posted November 29, 2016 Posted November 29, 2016 Please try this again with the next release of emby server. Thanks.
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