Gstreamer SDK: "no element vp8enc" & $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
Mustafa Munir
sheikh.muhammad.mustafa at gmail.com
Mon Oct 22 07:42:24 PDT 2012
Hi,
I am writing an application using Gstreamer SDK. I am facing following two
issues. I have missed something or these are issues in Gstreamer SDK ?
* no element "vp8enc": *
Included following plugins and used vp8enc in pipeline.
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE)
$(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
$(GSTREAMER_PLUGINS_CODECS_RESTRICTED) $(GSTREAMER_PLUGINS_NET)
$(GSTREAMER_PLUGINS_SYS)
It seems that Gstreamer is unable to find vp8enc, although vp8 plugin entry
is in gstreamer_android.c. Following are logs from logcat.
10-22 19:01:21.495: I/GStreamer+GST_PIPELINE(1177): 0:00:02.456617000
gstparse.c:334:gst_parse_launch_full parsing pipeline description
'videotestsrc ! videoscale ! videorate ! ffmpegcolorspace !
video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240,
framerate=(fraction)30/1, color-matrix=(string)sdtv,
chroma-site=(string)mpeg2 ! vp8enc ! fakesink'
10-22 19:01:21.545: I/GStreamer+GST_ELEMENT_FACTORY(1177):
0:00:02.499025000 gstelementfactory.c:467:gst_element_factory_make no such
element factory "vp8enc"!
10-22 19:01:21.545: E/GStreamer+GST_PIPELINE(1177): 0:00:02.500718000
./grammar.y:661:priv_gst_parse_yyparse no element "vp8enc"
10-22 19:07:58.795: I/GStreamer+GST_PIPELINE(1374): 0:00:02.513331000
gstparse.c:334:gst_parse_launch_full parsing pipeline description
'videotestsrc ! videoscale ! videorate ! ffmpegcolorspace !
video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240,
framerate=(fraction)30/1, color-matrix=(string)sdtv,
chroma-site=(string)mpeg2 ! vp8enc ! fakesink'
10-22 19:07:58.835: I/GStreamer+GST_ELEMENT_FACTORY(1374):
0:00:02.553027000 gstelementfactory.c:467:gst_element_factory_make no such
element factory "vp8enc"!
10-22 19:07:58.845: E/GStreamer+GST_PIPELINE(1374): 0:00:02.556004000
./grammar.y:661:priv_gst_parse_yyparse no element "vp8enc"
*Link errors with $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)*:
Secondly, I tried to include $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) with
following command.
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE)
$(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS)
$(GSTREAMER_PLUGINS_CODECS_RESTRICTED) $(GSTREAMER_PLUGINS_NET)
$(GSTREAMER_PLUGINS_SYS)
It resulted in following link errors.
/home/mustafa/work/android_dev/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
error:
/home/mustafa/work/android_dev/gstreamer-sdk-android-arm-debug-2012.10/lib/gstreamer-0.10/static/libgstnsf.a(libgstnsf_la-vrc7_snd.o):
multiple definition of 'table'
/home/mustafa/work/android_dev/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
/home/mustafa/work/android_dev/gstreamer-sdk-android-arm-debug-2012.10/lib/libopencore-amrnb.a(lsp_lsf_tbl.o):
previous definition here
/home/mustafa/work/android_dev/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
gst-build/gstreamer_android.o: in function
gst_android_register_static_plugins:gstreamer_android.c(.text+0x144):
error: undefined reference to 'gst_plugin_mpegdemux_register'
/home/mustafa/work/android_dev/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
gst-build/gstreamer_android.o: in function
gst_android_register_static_plugins:gstreamer_android.c(.text+0x170):
error: undefined reference to 'gst_plugin_rmdemux_register'
/home/mustafa/work/android_dev/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
/home/mustafa/work/android_dev/gstreamer-sdk-android-arm-debug-2012.10/lib/gstreamer-0.10/static/libavcodec.a(flashsvenc.o):
in function flashsv_encode_frame:libavcodec/flashsvenc.c:169: error:
undefined reference to 'compress2'
/home/mustafa/work/android_dev/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
/home/mustafa/work/android_dev/gstreamer-sdk-android-arm-debug-2012.10/lib/gstreamer-0.10/static/libavcodec.a(tiffenc.o):
in function encode_strip:libavcodec/tiffenc.c:165: error: undefined
reference to 'compress'
collect2: ld returned 1 exit status
make: *** [buildsharedlibrary] Error 1
Regards,
Mustafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20121022/7ed58f12/attachment.html>
More information about the gstreamer-android
mailing list