Best Settings for X264enc for a Live Stream

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Best Settings for X264enc for a Live Stream

William Metcalf
Hello all,

I am using X264enc to encode video  for a live stream.  I am having a
bit of trouble right now trying to get the video to play correctly when
I try to connect players to the stream.  I am a bit lost as to what some
of the settings for the encoder actually mean, could someone please
provide some insight as to which setting are the most important or what
good settings for streaming live video are?

Currently, I am trying to encode the video at a bitrate of 812Kb/s, so I
am setting the "bitrate" property to 812.  I am also setting the
"byte-stream" property to "true".  I have found that my video plays
pretty choppy and is unwatchable unless I set "key-int-max" to "1".  I
have been told that setting this interval to "1" is not a very good idea
though.

Can someone please provide me with more information on these settings?

Thank you,
William
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Best Settings for X264enc for a Live Stream

Mike Mitchell
William, 
I can commiserate. I spent days testing various players of h264 streams. Despite it being a standard, there are a ton of incompatibilities, notable flash and quicktime. There are surely too many options. I found quicktime to be the most problematic, additionally windows and osx implementations were not even the same. It seemed to like the multipass and profile options were the clincher. These options ended up working well on an HD stream I was working with. I can encode 1280x720 15 fps with 50% cpu on a modest, modern embedded PC. I hope that is helpful. The lesson is to test far and wide to your consumer's platforms, and on a variety of content.

x264enc pass=5 quantizer=22 speed-preset=4 profile=1 ! queue....


Mike Mitchell
Principal
Panometric LLC






On Fri, Oct 21, 2011 at 1:08 PM, William Metcalf <[hidden email]> wrote:
Hello all,

I am using X264enc to encode video  for a live stream.  I am having a bit of trouble right now trying to get the video to play correctly when I try to connect players to the stream.  I am a bit lost as to what some of the settings for the encoder actually mean, could someone please provide some insight as to which setting are the most important or what good settings for streaming live video are?

Currently, I am trying to encode the video at a bitrate of 812Kb/s, so I am setting the "bitrate" property to 812.  I am also setting the "byte-stream" property to "true".  I have found that my video plays pretty choppy and is unwatchable unless I set "key-int-max" to "1".  I have been told that setting this interval to "1" is not a very good idea though.

Can someone please provide me with more information on these settings?

Thank you,
William
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel