<div dir="ltr">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.<br>
<br><i>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</i><br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 12:34 PM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, 2014-06-26 at 12:12 -0700, Jordan Johnson wrote:<br>
<br>
> PES mux, that's what I was looking for. Thank you.<br>
<br>
</div>Note that PES != PS :)<br>
<div class=""><br>
> How do I set the chroma format to 4:2:0 then on the MPEG-2 output?<br>
> There doesn't seem to be an option for that.<br>
<br>
</div>Feed it 4:2:0 as input e.g. via<br>
<br>
.... ! videoconvert ! video/x-raw,format=I420 ! avenc_mpeg2video ! ..<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Thu, Jun 26, 2014 at 11:55 AM, Tim Müller <<a href="mailto:tim@centricular.com">tim@centricular.com</a>><br>
> wrote:<br>
> On Thu, 2014-06-26 at 11:22 -0700, Jordan Johnson wrote:<br>
><br>
> Hi,<br>
><br>
> > I seem to be having an odd time getting the right output<br>
> caps for my<br>
> > avenc_mpeg2video encode.<br>
> ><br>
> > gst-launch-1.0 -m -t -v videotestsrc ! 'video/x-raw,<br>
> format=BGRA,<br>
> > pixel-aspect-ratio=1/1, interlace-mode=progressive,<br>
> width=1280,<br>
> > height=720, framerate=30/1' ! queue ! videoconvert !<br>
> avenc_mpeg2video<br>
> > bitrate=170000 gop-size=45 max-bframes=3 me-sub-cmp=2<br>
> mb-cmp=2 !<br>
> > 'video/x-mpeg, alignment=au, stream-format=byte-stream,<br>
> > profile=main' ! filesink location=<a href="http://video.es" target="_blank">video.es</a><br>
><br>
><br>
> Remove the filter caps. alignment and stream-format fields are<br>
> for<br>
> H.264, they are not used with MPEG-2 video. I don't think<br>
> avenc_mpeg2video will pick up the profile field from the caps.<br>
><br>
> As for the timestamps, perhaps put the video into a container,<br>
> such as<br>
> MPEG-TS or MPEG-PS, so: .... ! tsmux ! filesink<br>
> location=video.ts<br>
> or ... ! mpegpsmux ! filesink location=foo.mpg<br>
><br>
> Cheers<br>
> -Tim<br>
><br>
> ><br>
> > ..does not work. Removing the output caps does, but then mpv<br>
> will say<br>
> > this:<br>
> ><br>
> > V: 00:00:25 / 00:00:00 (99%)<br>
> > No video PTS! Making something up.<br>
> > V: 00:00:25 / 00:00:00 (99%)<br>
> ><br>
> ><br>
> > ...so the PTS is missing for some reason. Any idea what's<br>
> going on?<br>
> ><br>
> ><br>
> ><br>
><br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> ><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
> --<br>
> Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>