Recording to AVI format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Recording to AVI format

Радомир Хаџић
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.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel