avenc_mpeg2video caps?

Jordan Johnson jwllmjohnson at gmail.com
Thu Jun 26 12:12:38 PDT 2014


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

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.


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140626/e2298dd4/attachment.html>


More information about the gstreamer-devel mailing list