Appsrc produces silent audio
Yasushi SHOJI
yasushi.shoji at gmail.com
Wed Jun 28 01:19:37 UTC 2017
On Tue, Jun 27, 2017 at 8:35 PM, dingoegret <sephvelut at gmail.com> wrote:
>
> It writes to test.wav - places bytes in there - but there is no actual
audio
> data. Just a blank file filled with bytes
ah,
gst_buffer_map(buffer, &map, GST_MAP_WRITE);
file_stream.rdbuf()->sgetn(&chunk[0], chunk.size());
map.data = (guint8 *) chunk.data();
gst_buffer_unmap(buffer, &map);
This does not work. memcpy() it, or use gst_buffer_fill().
--
yashi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170628/a13a407c/attachment.html>
More information about the gstreamer-devel
mailing list