Jump to content

Recommended Posts

Posted

I posted a similar issue in the PlugIns forum but think this is actually a server issue (Mod, feel free to merge or delete the other post).

 

I am having issues with an RTSP stream. I am certain it's the way that Emby transcodes or demuxs the feed as it works fine with VLC. I've tested with six different cameras (three different models) so it's not specific to one device and is definitely only related to HD streams. I can prevent the issue from occurring by setting the stream to SD.

 

The issue is best explained here: http://stackoverflow.com/questions/29075467/set-rtsp-udp-buffer-size-in-ffmpeg-libav

 

I see a fix is rolled into a recent version of LibAV. Can someone confirm for me which version Emby us using? And then how I would set this parameter via the Server?

 

 

Thanks!

Posted

best thing to do is check out the transcoding log that is created. in there you'll find the command line that was used which you can analyze and then offer suggestions for.

Posted

Thanks for the quick response. I can see the command line that is being used by Emby to call the RTSP stream. 

(I've changed the password etc in the below snippet)

 

ffmpeg.exe -fflags +genpts -i "rtsp://admin:admin@192.168.1.1/Streaming/channels/201/" -sn -codec:v:0 msmpeg4 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -mbd 2 -b:v 29872000 -vsync vfr -map_metadata -1 -threads 0 -codec:a:0 wmav2 -ac 2 -ab 128000 -af "aresample=async=1" -y "C:\Users\Chris\AppData\Roaming\MediaBrowser-Server\transcoding-temp\b5d1d18ca498a10f85ea6c562db20886.asf"

 

For testing I'd like add -bufsize 800k to the command although ideally I'd like to be able to play around with a few options to find the best setting. How can I make Emby call my custom variables?

ie. 

ffmpeg.exe -fflags +genpts -i "rtsp://admin:admin@192.168.1.1/Streaming/channels/201/" -bufsize 800k -sn -codec:v:0 msmpeg4 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -mbd 2 -b:v 29872000 -vsync vfr -map_metadata -1 -threads 0 -codec:a:0 wmav2 -ac 2 -ab 128000 -af "aresample=async=1" -y "C:\Users\Chris\AppData\Roaming\MediaBrowser-Server\transcoding-temp\b5d1d18ca498a10f85ea6c562db20886.asf"

Posted

Right now you can't. From your log it appears you're trying to play from Emby for WMC. I think it is best to establish a baseline by first getting it to work in the web interface. The video player in Windows media center is pretty old, and as such, it's the most difficult of our apps to transcode on the fly to. So by doing your testing from WMC you're battling that variable at the same time.

Posted

You're right, I am trying this inside Emby for WMC.

Interestingly, none of the Video Bookmarks (IPTV links) work from the web interface. They all give me a 'Cannot play the Video' error...

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