uxplay 1.48 make video pipeline configurable for hardware h264 decoders

This commit is contained in:
fduncanh
2022-02-24 03:34:45 -05:00
parent 5a921b0330
commit b1f8f03104
6 changed files with 94 additions and 38 deletions

View File

@@ -121,9 +121,13 @@ void video_renderer_init(logger_t *render_logger, const char *server_name, vide
assert(renderer);
gst_init(NULL,NULL);
GString *launch = g_string_new("appsrc name=video_source stream-type=0 format=GST_FORMAT_TIME is-live=true ! queue ! ");
GString *launch = g_string_new("appsrc name=video_source stream-type=0 format=GST_FORMAT_TIME is-live=true ! ");
g_string_append(launch, "queue ! ");
g_string_append(launch, "h264parse ! ");
g_string_append(launch, decoder);
g_string_append(launch, " ! ");
g_string_append(launch, converter);
g_string_append(launch, " ! ");
append_videoflip(launch, &videoflip[0], &videoflip[1]);
g_string_append(launch, videosink);
g_string_append(launch, " name=video_sink sync=false");