tests: update some element names for 1.0

This commit is contained in:
Tim-Philipp Müller 2013-02-28 20:09:29 +00:00
parent 9aa78b1061
commit 9940ae090e
2 changed files with 18 additions and 18 deletions

View file

@ -31,9 +31,9 @@ get_mpeg2enc_element_name (void)
if ((factory = gst_element_factory_find ("mpeg2enc"))) { if ((factory = gst_element_factory_find ("mpeg2enc"))) {
gst_object_unref (factory); gst_object_unref (factory);
return "mpeg2enc"; return "mpeg2enc";
} else if ((factory = gst_element_factory_find ("ffenc_mpeg2video"))) { } else if ((factory = gst_element_factory_find ("avenc_mpeg2video"))) {
gst_object_unref (factory); gst_object_unref (factory);
return "ffenc_mpeg2video"; return "avenc_mpeg2video";
} else { } else {
return NULL; return NULL;
} }
@ -161,7 +161,7 @@ GST_START_TEST (test_jpeg2000_alaw)
gchar *pipeline; gchar *pipeline;
GstElementFactory *factory = NULL; GstElementFactory *factory = NULL;
if ((factory = gst_element_factory_find ("jp2kenc")) == NULL) if ((factory = gst_element_factory_find ("openjpegenc")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
if ((factory = gst_element_factory_find ("alawenc")) == NULL) if ((factory = gst_element_factory_find ("alawenc")) == NULL)
@ -170,7 +170,7 @@ GST_START_TEST (test_jpeg2000_alaw)
pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! " pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! "
"video/x-raw,framerate=25/1 ! " "video/x-raw,framerate=25/1 ! "
"jp2kenc ! " "openjpegenc ! "
"mxfmux name=mux ! " "mxfmux name=mux ! "
"fakesink " "fakesink "
"audiotestsrc num-buffers=250 ! " "audioconvert ! " "alawenc ! " "mux. "); "audiotestsrc num-buffers=250 ! " "audioconvert ! " "alawenc ! " "mux. ");
@ -186,24 +186,24 @@ GST_START_TEST (test_dnxhd_mp3)
gchar *pipeline; gchar *pipeline;
GstElementFactory *factory = NULL; GstElementFactory *factory = NULL;
if ((factory = gst_element_factory_find ("ffenc_dnxhd")) == NULL) if ((factory = gst_element_factory_find ("avenc_dnxhd")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
if ((factory = gst_element_factory_find ("lame")) == NULL) if ((factory = gst_element_factory_find ("lamemp3enc")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
if ((factory = gst_element_factory_find ("mp3parse")) == NULL) if ((factory = gst_element_factory_find ("mpegaudioparse")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! " pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! "
"video/x-raw,format=(string)Y42B,width=1920,height=1080,framerate=25/1 ! " "video/x-raw,format=(string)Y42B,width=1920,height=1080,framerate=25/1 ! "
"ffenc_dnxhd bitrate=36000000 ! " "avenc_dnxhd bitrate=36000000 ! "
"mxfmux name=mux ! " "mxfmux name=mux ! "
"fakesink " "fakesink "
"audiotestsrc num-buffers=250 ! " "audiotestsrc num-buffers=250 ! "
"audioconvert ! " "audioconvert ! "
"audio/x-raw,channels=2 ! " "lame ! " "mp3parse ! " "mux. "); "audio/x-raw,channels=2 ! lamemp3enc ! mpegaudioparse ! mux. ");
run_test (pipeline); run_test (pipeline);
g_free (pipeline); g_free (pipeline);

View file

@ -31,9 +31,9 @@ get_mpeg2enc_element_name (void)
if ((factory = gst_element_factory_find ("mpeg2enc"))) { if ((factory = gst_element_factory_find ("mpeg2enc"))) {
gst_object_unref (factory); gst_object_unref (factory);
return "mpeg2enc"; return "mpeg2enc";
} else if ((factory = gst_element_factory_find ("ffenc_mpeg2video"))) { } else if ((factory = gst_element_factory_find ("avenc_mpeg2video"))) {
gst_object_unref (factory); gst_object_unref (factory);
return "ffenc_mpeg2video"; return "avenc_mpeg2video";
} else { } else {
return NULL; return NULL;
} }
@ -179,7 +179,7 @@ GST_START_TEST (test_jpeg2000_alaw)
gchar *pipeline; gchar *pipeline;
GstElementFactory *factory = NULL; GstElementFactory *factory = NULL;
if ((factory = gst_element_factory_find ("jp2kenc")) == NULL) if ((factory = gst_element_factory_find ("openjpegenc")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
if ((factory = gst_element_factory_find ("alawenc")) == NULL) if ((factory = gst_element_factory_find ("alawenc")) == NULL)
@ -188,7 +188,7 @@ GST_START_TEST (test_jpeg2000_alaw)
pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! " pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! "
"video/x-raw,framerate=25/1 ! " "video/x-raw,framerate=25/1 ! "
"jp2kenc ! " "openjpegenc ! "
"mxfmux name=mux ! " "mxfmux name=mux ! "
"mxfdemux name=demux ! " "mxfdemux name=demux ! "
"fakesink " "fakesink "
@ -205,25 +205,25 @@ GST_START_TEST (test_dnxhd_mp3)
gchar *pipeline; gchar *pipeline;
GstElementFactory *factory = NULL; GstElementFactory *factory = NULL;
if ((factory = gst_element_factory_find ("ffenc_dnxhd")) == NULL) if ((factory = gst_element_factory_find ("avenc_dnxhd")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
if ((factory = gst_element_factory_find ("lame")) == NULL) if ((factory = gst_element_factory_find ("lamemp3enc")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
if ((factory = gst_element_factory_find ("mp3parse")) == NULL) if ((factory = gst_element_factory_find ("mpegaudioparse")) == NULL)
return; return;
gst_object_unref (factory); gst_object_unref (factory);
pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! " pipeline = g_strdup_printf ("videotestsrc num-buffers=250 ! "
"video/x-raw,format=(string)Y42B,width=1920,height=1080,framerate=25/1 ! " "video/x-raw,format=(string)Y42B,width=1920,height=1080,framerate=25/1 ! "
"ffenc_dnxhd bitrate=36000000 ! " "avenc_dnxhd bitrate=36000000 ! "
"mxfmux name=mux ! " "mxfmux name=mux ! "
"mxfdemux name=demux ! " "mxfdemux name=demux ! "
"fakesink " "fakesink "
"audiotestsrc num-buffers=250 ! " "audiotestsrc num-buffers=250 ! "
"audioconvert ! " "audioconvert ! "
"audio/x-raw,channels=2 ! " "lame ! " "mp3parse ! " "mux. "); "audio/x-raw,channels=2 ! lamemp3enc ! mpegaudioparse ! mux. ");
run_test (pipeline, 2); run_test (pipeline, 2);
g_free (pipeline); g_free (pipeline);