multifilesink not producing viewable files. Help!?
Piper984
mclennan at alumni.nd.edu
Wed Nov 16 18:29:56 UTC 2016
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.
More information about the gstreamer-devel
mailing list