How to set params for EncodingVideoProfile?

Alexander Malaev scream at spuge.net
Fri Sep 26 03:29:29 PDT 2014


Hi,

How can to customize a VideoEncodingProfile params, like profile or level for h264?
I’ve tried to set params in Caps, but it doesn’t have any effect.

Here is I’m creating an EncodingContainerProfile with EncodingAudioProfile and EncodingVideoProfile:

  def make_encoding_profile(self):
    container_caps = Gst.Caps.new_empty_simple("video/quicktime")
    container_caps.set_value("variant","iso")
    container = GstPbutils.EncodingContainerProfile.new('mp4','mp4 format', container_caps, None)
    video_caps = Gst.Caps.new_empty_simple("video/x-h264")
    video_caps.set_value("profile","constrained-baseline")
    video_profile = GstPbutils.EncodingVideoProfile.new(video_caps, None, None, 1)
    audio_caps = Gst.Caps.new_empty_simple("audio/mpeg")
    audio_caps.set_value("version", 4)
    audio_profile = GstPbutils.EncodingAudioProfile.new(audio_caps, None, None, 1)
    container.add_profile(video_profile)
    container.add_profile(audio_profile)
    return container

I’m using this profile in camerabin as video-profile. How can I force high or baseline profile for video?  Or how can I set a constant bitrate?

gstreamer version is 1.2.1

AlexanderMalaev
Lead developer
+7 (962) 938-93-23

+7 (495) 204 23 98

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140926/f641ea27/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert
Type: application/octet-stream
Size: 9573 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140926/f641ea27/attachment-0001.obj>


More information about the gstreamer-devel mailing list