Jump to content

Recommended Posts

Posted (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 


 

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


 

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!

 



  1. C:\Users\BeLab\Desktop\ffmpeg-3.1.4-win64-static\bin\ffmpeg.exe -fflags +genpts -i "http://xxxxxxxxxxxxx:8080/xxxxx/xxxxxxxxxx/xxxxxxxxx/372.mkv



  2. " -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"


  3.  

 

 

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 by mikojacko
Posted

Hi, welcome. Please attach the complete emby server log. Thanks !

Posted

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)

Posted

Hi Luke,

i've tried the ffmpeg version you suggested, but i have the same results.

 

The transconde log :

 

 
 
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.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.
 
 
Posted

So it's just stalling on that URL for some reason. Thanks for the report.

Posted (edited)

So no clue or suggestion? How can I report this bug  ?

I think is not ffmpeg problem (via command line it works) 

Edited by mikojacko
Posted

Please try this again with the next release of emby server. Thanks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...