Encoding format string

amindfv at mailbox.org amindfv at mailbox.org
Wed Oct 26 19:50:57 UTC 2022


On Wed, Oct 26, 2022 at 08:47:51AM -0300, Thibault Saunier via gstreamer-devel wrote:
> Hi,
> 
> Sounds weird as this works and is correct (apart from the 'target-
> bitrate=20000' which won't work for x264enc for example).

Is the correct argument for x264enc simply 'bitrate' instead of 'target-bitrate'? That's what it is when I use a x264enc element directly in a pipeline.
 
> Without encoding the pipeline works right? If you remove the
> restriction caps it works right?

Without any `--format` argument at all it actually does not work. I've put that error below in case it's helpful. [0] However, it does render a file with this minimal line:

    --format 'video/quicktime,variant=iso:video/x-raw'

Thanks,
Tom

---

[0] The error when no `--format` argument is provided:

ERROR from element gespipeline0: GStreamer encountered a general stream error.

Debugging info: ../ges/ges-pipeline.c(563): _link_tracks (): /GESPipeline:gespipeline0:
Following encodebin pads are not linked:
 - /GESPipeline:gespipeline0/GstEncodeBin:internal-encodebin.GstGhostPad:audio_0: audio/mpeg, mpegversion=(int)4, base-profile=(string)lc, rate=(int){ 48000, 96000 }, channels=(int)2, stream-format=(string){ adts, raw }; audio/mpeg, mpegversion=(int)4, base-profile=(string)lc, rate=(int){ 48000, 96000 }, stream-format=(string){ adts, raw }, channels=(int)[ 1, 8 ]; audio/x-raw, channels=(int)2, rate=(int){ 48000, 96000 }, format=(string)S16LE, layout=(string)interleaved, channel-mask=(bitmask)0x0000000000000003; audio/x-raw, rate=(int){ 48000, 96000 }, format=(string){ F64LE, F64BE, F32LE, F32BE, S32LE, S32BE, U32LE, U32BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, S16LE, S16BE, U16LE, U16BE, S8, U8 }, channels=(int)[ 1, 2147483647 ], layout=(string){ interleaved, non-interleaved }; audio/x-raw, channels=(int)2, rate=(int)[ 1, 2147483647 ], format=(string)S16LE, layout=(string)interleaved, channel-mask=(bitmask)0x0000000000000003; audio/x-raw, rate=(int)[ 1, 2147483647 ], format=(string){ F64LE, F64BE, F32LE, F32BE, S32LE, S32BE, U32LE, U32BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, S16LE, S16BE, U16LE, U16BE, S8, U8 }, channels=(int)[ 1, 2147483647 ], layout=(string){ interleaved, non-interleaved }

sys:1: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed


More information about the gstreamer-devel mailing list