how to cut the first 10 frames of a video file
Tim Müller
tim at centricular.com
Tue Jan 19 11:57:29 UTC 2021
Hi,
> I try to cut out the first 11 frames of a.mov and then convert it to
> b.h264.
>
> This is my hack solution:
> ges-launch-1.0 +clip a.mov i=0.36 -f video/x-matroska:video/x-h264 -o
> b.mp4
> gst-launch-1.0 filesrc location=b.mp4 ! matroskademux ! h264parse !
> video/x-h264,stream-format=byte-stream ! filesink location=b.h264
>
> I wonder if there is a simpler one pipeline solution or not. Please
> help. Thanks a lot.
Something like this should work:
gst-launch-1.0 filesrc location=file.mp4 ! qtdemux ! h264parse !
video/x-h264,alignment=au ! identity eos-after=11 ! h264parse !
video/x-h264,stream-format=byte-stream ! filesink location=frames.h264
Cheers
Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list