extract only a small segment in the middle of an mpeg-TS movie

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

extract only a small segment in the middle of an mpeg-TS movie

kilamski
Hi,
I want to extract only a small segment in the middle of an mpeg-TS movie
using gstreamer library in c.

Using ffmpeg in a command line this can be done with following command:
ffmpeg -ss 00:01:00 -i video.ts -to 00:02:00 -c copy -copyts cut.ts

How can I do this using Gstreamer?
Please help



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: extract only a small segment in the middle of an mpeg-TS movie

Baby Octopus
Administrator
Its not possible to do this with command line gst-launch!

You need to write a small tsparser (filesrc ! tsparse ! filesink)
application in which you seek to the desired location, and then stop the
pipeline once your duration is reached

~BO



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel