嗨,我正在运行此代码:
data->testvideo = gst_parse_launch("videotestsrc ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! x264enc ! \
mp4mux ! filesink location=test.mp4", &error);
if (error) {
gchar *message = g_strdup_printf("Unable to build pipeline: %s", error->message);
g_clear_error (&error);
set_ui_message(message, data);
g_free (message);
return NULL;
}
但不将文件保存在data / data / com.mycom.videosave / files或无处。
我有我的清单(虽然我不认为这会影响)
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>