Rank: Advanced Member
Groups: Registered
Joined: 10/30/2013(UTC) Posts: 290 Location: The Netherlands
Thanks: 6 times Was thanked: 21 time(s) in 15 post(s)
|
I am just curious what your experiences are with FFmpeg. There are not much topics in this forum about FFmpeg. The experiences on other forums are sometimes a bit contradictory.
My experiences with FFmpeg: Uses less cpu recources. Audio sync is not stable (however with the new parameter 'Treads' in vMix 14.0.0.112 this problem can be solved) Stopping a FFmpeg stream takes no time (FMLE takes up to 20 seconds)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/3/2013(UTC) Posts: 405 Location: Gold Coast, Australia
Thanks: 27 times Was thanked: 76 time(s) in 58 post(s)
|
wwdv wrote:I am just curious what your experiences are with FFmpeg. There are not much topics in this forum about FFmpeg. The experiences on other forums are sometimes a bit contradictory.
My experiences with FFmpeg: Uses less cpu recources. Audio sync is not stable (however with the new parameter 'Treads' in vMix 14.0.0.112 this problem can be solved) Stopping a FFmpeg stream takes no time (FMLE takes up to 20 seconds) I found more latecny with FFMpeg and went back to FMLE. It was substantially slowever about 3 seconds lag, same server, same everything. I may not have had FFMpeg tuned correctly. Did lower the CPU usage quite a bit however and of course has AAC built in with no extra plugin (I already own the FMLE plugin).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/3/2013(UTC) Posts: 405 Location: Gold Coast, Australia
Thanks: 27 times Was thanked: 76 time(s) in 58 post(s)
|
I'm curious about FFMpeg and latency is my experience common that FFMpeg has higher streaming latency than FMLE, or was it just my setup that the latency was higher? Maybe there is some extra tuning for FFMpeg to improve the latency?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/30/2013(UTC) Posts: 290 Location: The Netherlands
Thanks: 6 times Was thanked: 21 time(s) in 15 post(s)
|
I didn't notice any differences in latency, both approx. 5 seconds. (may depend of your streaming provider) The FFmpeg 'network buffer' setting doesn't have any visible affect.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/3/2013(UTC) Posts: 405 Location: Gold Coast, Australia
Thanks: 27 times Was thanked: 76 time(s) in 58 post(s)
|
wwdv wrote:I didn't notice any differences in latency, both approx. 5 seconds. (may depend of your streaming provider) The FFmpeg 'network buffer' setting doesn't have any visible affect. I am my own streaming provider. So that is not the issue. Using the Wowza Media Server software (unless it somehow knows you switched encoder). The only change in my testing was FMLE to FFMPEG. Wowza claims they don't really care what encoder you use, it's just H.264 in server turns it into chunks and H.264 out. It does add a delay of course, but that appears to be about 1 second.
|
|
|
|
Rank:: Newbie
Groups: Registered
Joined: 8/15/2013(UTC) Posts: 9 Location: Gold Coast
Was thanked: 3 time(s) in 2 post(s)
|
There seems to be about 0.5-0.7 seconds extra latency when using FFMPEG vs FMLE. The cpu usage is at least half though which is a nice gain. Typically our FFMLE stream is about 1.7 seconds latency. The cpu usage is about 59% though minimum on a quad core i7 which will bloat up to almost 80% and back (much higher and audio issues start with our USB audio capture). The FFMPEG seems to sit comfortably around 23-25% load. Usually we prefer lower latency over anything except quality but Im starting to think the lower cpu load will give us more room to increase usage as we grow.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/28/2013(UTC) Posts: 54 Location: USA
Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
Can't say I've measured the two latencies that closely, but from feel anyway I'd say that ffmpeg is under 2 seconds.
Love the CPU savings though! One kink is that I can't get it to use more than about 30 percent though - I can configure a suite of 3 adaptive bitrates and even though the horsepower is there in reserve, it doesn't seem to get used and I get drops / errors instead. I was able to get past that immediate issue through overclocking, but wonder if there's settings / switches vMix could pass along that would allow for more CPU use?
Compression quality is very good under ffmpeg as well, subjectively anyway.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,211 Location: Gold Coast, Australia Was thanked: 4301 time(s) in 1523 post(s)
|
To use more CPU resources when encoding, first make sure vMix 15 is installed, then from the Streaming Quality settings increase the number of threads being used.
Regards,
Martin vMix
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/13/2015(UTC) Posts: 4
Thanks: 2 times
|
I like FFMPEG's multiple streaming destination feature. For me it seems FFMPEG has better picture quality, and uses less processor time. However the picture on the client is freezing in every 30 seconds for 3-4 seconds. FMLE does not do such thing. I am sending the stream on LAN to wowza and I play it with vlc. Both computers (wowza & vMix) have i7 processor and the utilization is under 50%. I am using the latest vMix and wowza.
I've increased the number of threads as Martin suggested, first to 10 than 16 but it does not help.
Could you help what can be the problem?
Thank you!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/28/2013(UTC) Posts: 54 Location: USA
Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
david64 wrote:I like FFMPEG's multiple streaming destination feature. For me it seems FFMPEG has better picture quality, and uses less processor time. However the picture on the client is freezing in every 30 seconds for 3-4 seconds. FMLE does not do such thing. I am sending the stream on LAN to wowza and I play it with vlc. Both computers (wowza & vMix) have i7 processor and the utilization is under 50%. I am using the latest vMix and wowza.
I've increased the number of threads as Martin suggested, first to 10 than 16 but it does not help.
Could you help what can be the problem?
Thank you! Have you tried a different player? I use a similar setup with no issues playing HLS streams from Wowza for iOS and Roku, but in the past had numerous issues with VLC. Also, what key frame interval are you using? 2 seconds seems to be the common recommendation for this setup.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/28/2013(UTC) Posts: 54 Location: USA
Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
A couple of other thoughts:
- Take a look at the status dialog (reached via a button in vMix streaming settings dialog) and see if there's a drop in streaming altogether or a pattern of dropped frames. If not I'd think the streaming from vMix is working fine,
- There's a limit to how much thread count can help - I'd think a good rule of thumb would be one per core, i.e. four for a quad-core i7, with six being a maximum if you had to,
- From memory, VLC uses RTSP to open streams. I've had issues before ingesting RTSP streams served from Wowza, i.e. via a 'Stream' input in vMix, whereas opening via RTMP ('Flash' input in vMix) would work fine. Being as I use RTSP / 'Stream' from other devices in vMix with good results, I'd suspect it's something in how Wowza serves them, and this may be impacting VLC as well. I had workarounds in both cases so I haven't pursued it further, but maybe there's threads on Wowza's forums that may help.
Are there still issues with fewer streams being encoded or at smaller resolutions? That will help narrow the 'CPU capacity vs. protocol' question.
David
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/30/2013(UTC) Posts: 290 Location: The Netherlands
Thanks: 6 times Was thanked: 21 time(s) in 15 post(s)
|
We are a few vMix versions ahead with improved FFMPEG settings. Is FMLE obsolated or does it still has adventages with respect to FFMPEG?
What I found:
FFMPEG uses less CPU than FMLE FMLE has less latency than FMLE FFMPEG has better quality than FMLE FFMPEG saves the stream file so it records automatically in stream quality FMLE is more stable at bad connections.
Are these also your experiences and what are the best FFMPEG settings in vMix?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/28/2016(UTC) Posts: 159 Location: SACRAMENTO Thanks: 5 times Was thanked: 19 time(s) in 18 post(s)
|
wwdv wrote:We are a few vMix versions ahead with improved FFMPEG settings. Is FMLE obsolated or does it still has adventages with respect to FFMPEG?
What I found:
FFMPEG uses less CPU than FMLE FMLE has less latency than FMLE FFMPEG has better quality than FMLE FFMPEG saves the stream file so it records automatically in stream quality FMLE is more stable at bad connections.
Are these also your experiences and what are the best FFMPEG settings in vMix? I agree with everything above but have not noticed FMLE being more stable when using a "bad" connection. Then again I might not have had the bad connection that would show this to be true. I use FFMPEG 100% due to allowing me to use multiple bit rates which from my understanding or not via the vMix interface anyway can do. -King
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/30/2013(UTC) Posts: 290 Location: The Netherlands
Thanks: 6 times Was thanked: 21 time(s) in 15 post(s)
|
Since I replaced my graphics card by a GTX750ti and enabled FFMPEG hardware encoding, I experienced a interrupted stream a few times, the stream was continued automatically.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close