Skip to content

Commit

Permalink
log video format as string
Browse files Browse the repository at this point in the history
  • Loading branch information
fzwoch committed Sep 19, 2024
1 parent d04f503 commit 5b437ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions obs-vaapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,12 @@ static void *create(obs_data_t *settings, obs_encoder_t *encoder)
gst_bus_add_watch(bus, bus_callback, NULL);
gst_object_unref(bus);

blog(LOG_INFO, "[obs-vaapi] codec: %s, %dx%d@%d/%d, format: %d ",
blog(LOG_INFO, "[obs-vaapi] codec: %s, %dx%d@%d/%d, format: %s ",
obs_encoder_get_id(encoder), obs_encoder_get_width(encoder),
obs_encoder_get_height(encoder), video_info.fps_num,
video_info.fps_den, video_info.output_format);
video_info.fps_den,
gst_video_format_to_string(
(GstVideoFormat)video_info.output_format));

gst_element_set_state(vaapi->pipe, GST_STATE_PLAYING);

Expand Down

0 comments on commit 5b437ec

Please sign in to comment.