<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I see. I guess I have to find a different approach since my app will run on a debian(stable) server with the gstreamer package. </div><div>Anyway, many <span style="font-size: 12pt; ">thanks for the explanation mate,</span></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span style="font-size: 12pt; ">Jose</span></div><div><br></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Tim-Philipp Müller <t.i.m@zen.co.uk><br> <b><span
style="font-weight: bold;">To:</span></b> gstreamer-devel@lists.freedesktop.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, November 16, 2012 11:13 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: mutlifilesink, GST_MULTI_FILE_SINK_NEXT_MAX_SIZE and post-messages<br> </font> </div> <br>
On Fri, 2012-11-16 at 00:17 -0800, Jose Armando wrote:<br><br>Hi,<br><br>> I am developing a small application that captures an audio stream<br>> from internet and then splits it in chucks with constant size. This is<br>> fairly easy, except that I want when a file is written to create a<br>> second file containing metadata. According to the documentation, if<br>> the post-messages option is set to TRUE I should receive a message on<br>> the bus that says a new file was created along with some additional<br>> information. However, I receive no messages. (...) if I run <br>> <br>> gst-launch-0.10 -m mmssrc location=mms://netradio ! multifilesink<br>> post-messages=true location=segment_%05d index=5 next-file=4<br>> max-file-size=500000<br>> <br>> where now next-file=4 (meaning GST_MULTI_FILE_SINK_NEXT_MAX_SIZE) the<br>> generated files have the specified size (500000 bytes) but
no messages<br>> are posted. I am using GStreamer 0.10.36 . Does anyone know why this<br>> happens?<br><br>It's not implemented. The code passes a NULL buffer to<br>gst_multi_file_sink_close_file(), which makes it skip the message<br>posting. I guess the reason might be that all the timestamps in the<br>message are more useful if you have a whole file per buffer, otherwise<br>you just get values for the last buffer in the file.<br><br>Anyway, I've made it post a message for max-size mode as well now in<br>git.<br><br>Cheers<br> -Tim<br><br><br><br>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br><br><br> </div> </div> </div></body></html>