avenc_mpeg2video caps?

Tim Müller tim at centricular.com
Thu Jun 26 12:34:49 PDT 2014


On Thu, 2014-06-26 at 12:12 -0700, Jordan Johnson wrote:

> PES mux, that's what I was looking for. Thank you. 

Note that PES != PS :)

> How do I set the chroma format to 4:2:0 then on the MPEG-2 output?
> There doesn't seem to be an option for that.

Feed it 4:2:0 as input e.g. via

 .... ! videoconvert ! video/x-raw,format=I420 ! avenc_mpeg2video ! ..

Cheers
 -Tim

> On Thu, Jun 26, 2014 at 11:55 AM, Tim Müller <tim at centricular.com>
> wrote:
>         On Thu, 2014-06-26 at 11:22 -0700, Jordan Johnson wrote:
>         
>         Hi,
>         
>         > I seem to be having an odd time getting the right output
>         caps for my
>         > avenc_mpeg2video encode.
>         >
>         > gst-launch-1.0 -m -t -v videotestsrc ! 'video/x-raw,
>         format=BGRA,
>         > pixel-aspect-ratio=1/1, interlace-mode=progressive,
>         width=1280,
>         > height=720, framerate=30/1' ! queue ! videoconvert !
>         avenc_mpeg2video
>         > bitrate=170000 gop-size=45 max-bframes=3 me-sub-cmp=2
>         mb-cmp=2 !
>         > 'video/x-mpeg, alignment=au, stream-format=byte-stream,
>         > profile=main' ! filesink location=video.es
>         
>         
>         Remove the filter caps. alignment and stream-format fields are
>         for
>         H.264, they are not used with MPEG-2 video. I don't think
>         avenc_mpeg2video will pick up the profile field from the caps.
>         
>         As for the timestamps, perhaps put the video into a container,
>         such as
>         MPEG-TS or MPEG-PS, so:  .... ! tsmux ! filesink
>         location=video.ts
>         or ... ! mpegpsmux ! filesink location=foo.mpg
>         
>         Cheers
>          -Tim
>         
>         >
>         > ..does not work. Removing the output caps does, but then mpv
>         will say
>         > this:
>         >
>         > V: 00:00:25 / 00:00:00 (99%)
>         > No video PTS! Making something up.
>         > V: 00:00:25 / 00:00:00 (99%)
>         >
>         >
>         > ...so the PTS is missing for some reason. Any idea what's
>         going on?
>         >
>         >
>         >
>         
>         > _______________________________________________
>         > gstreamer-devel mailing list
>         > gstreamer-devel at lists.freedesktop.org
>         >
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>         
>         --
>         Tim Müller, Centricular Ltd - http://www.centricular.com
>         
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list