AW: how to cut the first 10 frames of a video file

Thornton, Keith keith.thornton at zeiss.com
Tue Jan 19 12:11:53 UTC 2021


Hi, 
have you tried
gst-launch-1.0 -v -e filesrc location=a.mp4 num-buffers=10 ! qtdemux ! queue ! h264parse ! filesink location=b.h264
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von Andy Robinson
Gesendet: Dienstag, 19. Januar 2021 11:44
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: how to cut the first 10 frames of a video file

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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.seventhstring.com%2Fresources%2Fvideosection.zip&data=04%7C01%7C%7C972339b116e84f65628608d8bc6fb6aa%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637466535279642901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ZdfWOn%2FJSmhNxlT1k%2FFss5KxdHY3pNsAreg5WP7dw2E%3D&reserved=0

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, https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.seventhstring.com%2F&data=04%7C01%7C%7C972339b116e84f65628608d8bc6fb6aa%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637466535279642901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=byVanFuEiEALsRhdXaI%2FCel%2B%2FpNGkLCwJFCfw9N5Ezo%3D&reserved=0
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=04%7C01%7C%7C972339b116e84f65628608d8bc6fb6aa%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637466535279642901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Aepdz8E3vT61IecGpMATXkUp2DnlZobBgAfhiJnrklg%3D&reserved=0


More information about the gstreamer-devel mailing list