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. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 19/01/2021 04:33, ynjiun wrote:
> I try to cut out the first 11 frames of a.mov and then convert it to b.h264. > I wonder if there is a simpler one pipeline solution or not. Please help. > Thanks a lot. I wrote a plugin to do something like this, here is the source: https://www.seventhstring.com/resources/videosection.zip I am not a GStreamer developer and there are probably many things wrong with it, but it works for my purposes. Regards, Andy Robinson, Seventh String Software, www.seventhstring.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by ynjiun
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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
great. It works to cut the first 10 frames and convert.
How about if I want to remove the first 10 frames and convert the rest of the video? That is the new video will not have the first 10 frames. Thanks a lot for your help again. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |