Recording to AVI format

Радомир Хаџић radomirhadzic46 at gmail.com
Thu Oct 17 07:45:44 UTC 2019


Hello.

I need to record video using webcam and save that recording to AVI
file. Here is what I came up with:

    gst-launch-1.0 -e v4l2src ! videoconvert ! x264enc ! avimux !
filesink location=output.avi

This does the recording and saves it to an AVI file but there are two problems.

1. MPV displays error / warning while playing the file:

    No video PTS! Making something up. Using 30.000000 FPS.

How do I add PTS to my file?

(I do not experience this error if I remove x264enc element. Why is that?)

2. The resulting video is sped up.


More information about the gstreamer-devel mailing list