AW: multifilesink not producing viewable files. Help!?

Thornton, Keith keith.thornton at zeiss.com
Thu Nov 17 07:02:37 UTC 2016


Splitmuxsink can signal each time a file is closed and again when a new file is opened. I would recommend 1.10 because quite a lot has been fixed in the recent past.

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Piper984
Gesendet: Mittwoch, 16. November 2016 19:30
An: gstreamer-devel at lists.freedesktop.org
Betreff: multifilesink not producing viewable files. Help!?

Hi:

I have a C application that receives an h264 stream and saves it to the HD. 
Currently, this uses the filesink element, and it works fine. I can view the raw h264 data with VLC, and I can use MP4Box to convert the H264 stream into an MP4 file with the correct fps being set.  However, these incoming clips are very long and so I need my application to split the file into multiple segements, calling an event once each segments has been written to the HD so I can announce each segment to the database that manages all the incoming video segments.

From the docs, the multifilesink element seems to be what I need.  To test, I changed my app, replacing:

... filesink location=\"%s\"" ...

to:

... multifilesink post-messages=1 next-file=4 max-file-size=5000000 location=\"f-%%05d-%s\"" ...

This does create new files ~ every 5 megs named correctly, but I can't view the files with VLC like I can when I just used the filesink elemenet.  I also tried to convert the h264 to mp4 container via MP4Box, but MP4Box doesn't see the segmented .h264 files as valid.

I also tried adding the aggregate-gops property like this:

... multifilesink post-messages=1 aggregate-gops=1 next-file=4
max-file-size=5000000 location=\"f-%%05d-%s\"" ...

but no change in behavior.

Right now I am using GStreamer 1.4.3, so not able to use splitmuxsink. 
Also, I don't think splitmuxsink has the ability to raise an event when each segments lands?  I am able to upgrade the GStreamer library for my app as needed, but I think I'm still mostly interested in multifilesink due to the post-messages feature. FYI: I have not tried hooking up the callback function yet.

Could someone with background with the multifilesink element provide some guidance as to what I may be doing wrong?

Thanks!




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/multifilesink-not-producing-viewable-files-Help-tp4680722.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list