avenc_mpeg2video caps?

Jordan Johnson jwllmjohnson at gmail.com
Fri Jun 27 15:13:36 PDT 2014


Got the chroma format working, but now I have an issue with the vbv buffer.
And the PTS issue still persists. Using a PS/TS mux didn't help either.
Here is my current line. Renders fine, but those PTS and vbv errors make it
not work in my application.

*gst-launch-1.0 -v videotestsrc ! 'video/x-raw, pixel-aspect-ratio=1/1,
interlace-mode=progressive, width=1920, height=1080, framerate=30/1' !
queue ! videoconvert ! video/x-raw,format=I420 ! avenc_mpeg2video
bitrate=17000 buffer-size=240 gop-size=25 max-bframes=2 me-sub-cmp=2
mb-cmp=2 ! queue ! filesink location=test.mpeg*



On Thu, Jun 26, 2014 at 12:34 PM, Tim Müller <tim at centricular.com> wrote:

> 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
>
> _______________________________________________
> 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/20140627/95d291b2/attachment.html>


More information about the gstreamer-devel mailing list