Encoding format string

Thibault Saunier thibault at saunier.eu
Tue Oct 25 12:54:59 UTC 2022


Hi,

I think what you want is to set restriction caps (so the video is
scalled up to the size you are setting), meaning:

```
video/quicktime,variant=iso:video/x-raw,width=4096,height=2160-
>video/x-h264|element-properties,target-bitrate=200000
```

Also the way you set properties doesn't sound so safe as you are not
specifying what underlying encoder will be used and the various encoder
don't have the same API to set bitrate (sadly).

- Thibault

On Mon, 2022-10-24 at 23:34 -0700, amindfv--- via gstreamer-devel
wrote:
> Hello, can anyone help here? I'm working with quite a simple setup:
> all clips have the same geometry, bitrate, fixed framerate, etc., and
> I simply want to render a file with matching specs (geometry,
> bitrate, and notably 10-bit color pixel format).
> 
> I'm using `ges-launch` and all I need, as far as I know, is a `--
> format` string to specify this.
> 
> Any help would be very appreciated.
> 
> Thanks,
> Tom
> 
> On Fri, Oct 21, 2022 at 01:40:45PM -0700, amindfv--- via gstreamer-
> devel wrote:
> > Running on very little sleep with a deadline looming, I find myself
> > unable to come up with a GstEncoding profile for `ges-launch-1.0`
> > (a task that seems simple enough).
> > 
> > I've got input sources that are 4096x2160 with a pixel format of
> > yuv420p10le; I'd like to preserve that as the output format (and
> > make sure the pixel format isn't getting downgraded anywhere in the
> > pipeline). I'd also like to make sure the bitrate stays at 200mb/s.
> > 
> > I've tried things from this page
> > (https://gstreamer.freedesktop.org/documentation/pbutils/encoding-p
> > rofile.html?gi-language=c), and come up with things like 
> > 
> >     video/quicktime,variant=iso:video/x-
> > h264,width=4096,height=2160|target-bitrate=200000
> > 
> > (There's one video track, no audio)
> > 
> > But I get errors from ges-launch like:
> > 
> >     ERROR from element qtdemux27: Internal data stream error./>
> > 
> >     Debugging info: ../gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop
> > ():
> > /GESPipeline:gespipeline0/GESTimeline:gestimeline0/GESVideoTrack:ge
> > svideotrack0/NleComposition:video_nlecomposition0/GstBin:current-
> > bin/NleSource:GESVideoUriSource:nlesource0/GstBin:videosrcbin/GstUR
> > IDecodeBin:uridecodebin0/GstDecodeBin:decodebin56/GstQTDemux:qtdemu
> > x27:
> > streaming stopped, reason not-negotiated (-4)
> > 
> > 
> > As I say, I'm on quite a deadline; any help would be very
> > appreciated!
> > 
> > Thanks,
> > Tom



More information about the gstreamer-devel mailing list