Android and libvlc plugin problems

This forum is about all development around libVLC.
androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Android and libvlc plugin problems

Postby androido » 20 Jul 2011 17:08

Hello everybody,

I have a little problem with the libvlc and the plugin-bindings on Android.
I made a libvlcjni.so that way http://wiki.videolan.org/AndroidCompile
and it worked. I'm able to call the libvlc-methods like libvlc_get_version.
I tryed to use the libvlc_new(0,NULL) that way, but the libvlc_new returned NULL.
I checked logcat and there is the message "main libvlc error: No plugins found! Check your VLc installation!".
I had the same problem on linux, but i solved it using

Code: Select all

const char * const vlc_args[] = { "-I", "dummy", "--ignore-config", "--extraintf=logger", "--verbose=2", "--plugin-path=/usr/lib/vlc/" }; libvlc_instance_t* libinst = libvlc_new(sizeof(vlc_args)/sizeof(vlc_args[0]), vlc_args);
But on Android it did't work. I pushed a few module libaries on the Android-Emulator (like libcaca_plugin.so, libfb_plugin.so...) and made the path to their directory like under linux (--plugin-path=/data/data/) butnothing changed.
In the logcat is still the "main libvlc error: No plugins found! Check your VLc installation!". What can I do, why is it so different to normal linux? Whats the right path for the plugins on Android?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 25 Jul 2011 11:21

* Did you used vlc from the right git repository ? (git.videolan.org/vlc/vlc-android.git)
* libvlc has to be compiled with --enable-static-modules as the modules are not dlopened on android.

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 25 Jul 2011 15:03

Thanks for your answer, i took the right repository. How could I compile with --enable-static-modules, isn't it "./compile -k"?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 26 Jul 2011 10:38

You must use the cofnfigure script present in extra/packages/android/configure.sh (it will do that for you)

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 27 Jul 2011 09:22

ok thank you I will test it, and why is the libvlcjni.so so much bigger than the linux libvlc.so? Is it cause of jni? And "--enable-static-modules" is the switch i should add to the CFLAGS or CXXFLAGS

The last lines of output of the configure.sh are:

Enabled modules: a52tofloat32 access_avio access_realrtsp avcodec avformat dtstofloat32 dynamicoverlay fb flac kate libmpeg2 live555 mkv ogg opensles osd_parser osdmenu png postproc speex swscale telx theora twolame unzip visual vorbis vout_android zip


libvlc configuration
--------------------
version : 1.2.0-git
system : linux
architecture : arm
build flavour : debug speed
build vlc executable : no
plugins/bindings :


I think the modules are enabled but not bound, how could I bind them?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 27 Jul 2011 14:13

--enable-static-modules is a switch for the configure script not CFLAGS or CXXFLAGS.

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 27 Jul 2011 16:33

poorly no change, but I think they are enabledm because of this, and the switch is set in the configure.sh

"Enabled modules: a52tofloat32 access_avio access_realrtsp avcodec avformat dtstofloat32 dynamicoverlay fb flac kate libmpeg2 live555 mkv ogg opensles osd_parser osdmenu png postproc speex swscale telx theora twolame unzip visual vorbis vout_android zip "

but could not be found, because they are not properly bound

version : 1.2.0-git
system : linux
architecture : arm
build flavour : debug speed
build vlc executable : no
plugins/bindings :

Is there also a link switch? Or mabye they are build in the libvlcjni.so, cause this file is really large, but how could i address the plugins with the libvlc_new()?

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 27 Jul 2011 17:45

If I look at the Android.mk file after the compile I see that the plugins are all included in the libvlcjni.so

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libvlcjni
LOCAL_SRC_FILES := libvlcjni.c aout.c thumbnailer.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../../include
LOCAL_LDLIBS := -L../../../contrib/build/lib \
-L/home/hnc/android-ndk-r6//platforms/android-8/arch-arm/usr/lib \
../../../../build/modules/packetizer/.libs/libpacketizer_h264_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_mlp_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_mpeg4audio_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_dirac_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_flac_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_mpegvideo_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_mpeg4video_plugin.a \
../../../../build/modules/packetizer/.libs/libpacketizer_vc1_plugin.a \
../../../../build/modules/codec/avcodec/.libs/libavcodec_plugin.a \
../../../../build/modules/codec/.libs/libsubsdec_plugin.a \
../../../../build/modules/codec/.libs/libaraw_plugin.a \
../../../../build/modules/codec/.libs/libdts_plugin.a \
../../../../build/modules/codec/.libs/libcdg_plugin.a \
../../../../build/modules/codec/.libs/libsvcdsub_plugin.a \
../../../../build/modules/codec/.libs/liblibmpeg2_plugin.a \
../../../../build/modules/codec/.libs/libaes3_plugin.a \
../../../../build/modules/codec/.libs/librawvideo_plugin.a \
../../../../build/modules/codec/.libs/libkate_plugin.a \
../../../../build/modules/codec/.libs/libpng_plugin.a \
../../../../build/modules/codec/.libs/libvorbis_plugin.a \
../../../../build/modules/codec/.libs/libflac_plugin.a \
../../../../build/modules/codec/.libs/libcc_plugin.a \
../../../../build/modules/codec/.libs/liblpcm_plugin.a \
../../../../build/modules/codec/.libs/libtwolame_plugin.a \
../../../../build/modules/codec/.libs/libtheora_plugin.a \
../../../../build/modules/codec/.libs/libtelx_plugin.a \
../../../../build/modules/codec/.libs/libcvdsub_plugin.a \
../../../../build/modules/codec/.libs/libmpeg_audio_plugin.a \
../../../../build/modules/codec/.libs/libt140_plugin.a \
../../../../build/modules/codec/.libs/libdvbsub_plugin.a \
../../../../build/modules/codec/.libs/liba52_plugin.a \
../../../../build/modules/codec/.libs/libsubsusf_plugin.a \
../../../../build/modules/codec/.libs/libspeex_plugin.a \
../../../../build/modules/codec/.libs/libadpcm_plugin.a \
../../../../build/modules/codec/spudec/.libs/libspudec_plugin.a \
../../../../build/modules/video_filter/dynamicoverlay/.libs/libdynamicoverlay_plugin.a \
../../../../build/modules/video_filter/.libs/libgradfun_plugin.a \
../../../../build/modules/video_filter/.libs/libswscale_plugin.a \
../../../../build/modules/video_filter/.libs/libmirror_plugin.a \
../../../../build/modules/video_filter/.libs/libmarq_plugin.a \
../../../../build/modules/video_filter/.libs/libextract_plugin.a \
../../../../build/modules/video_filter/.libs/librv32_plugin.a \
../../../../build/modules/video_filter/.libs/libcroppadd_plugin.a \
../../../../build/modules/video_filter/.libs/libclone_plugin.a \
../../../../build/modules/video_filter/.libs/libadjust_plugin.a \
../../../../build/modules/video_filter/.libs/librotate_plugin.a \
../../../../build/modules/video_filter/.libs/libwave_plugin.a \
../../../../build/modules/video_filter/.libs/libpsychedelic_plugin.a \
../../../../build/modules/video_filter/.libs/libaudiobargraph_v_plugin.a \
../../../../build/modules/video_filter/.libs/libgrain_plugin.a \
../../../../build/modules/video_filter/.libs/libalphamask_plugin.a \
../../../../build/modules/video_filter/.libs/libcanvas_plugin.a \
../../../../build/modules/video_filter/.libs/libball_plugin.a \
../../../../build/modules/video_filter/.libs/libinvert_plugin.a \
../../../../build/modules/video_filter/.libs/libgaussianblur_plugin.a \
../../../../build/modules/video_filter/.libs/libdeinterlace_plugin.a \
../../../../build/modules/video_filter/.libs/libosdmenu_plugin.a \
../../../../build/modules/video_filter/.libs/libchain_plugin.a \
../../../../build/modules/video_filter/.libs/libripple_plugin.a \
../../../../build/modules/video_filter/.libs/libsharpen_plugin.a \
../../../../build/modules/video_filter/.libs/librss_plugin.a \
../../../../build/modules/video_filter/.libs/libyuvp_plugin.a \
../../../../build/modules/video_filter/.libs/liberase_plugin.a \
../../../../build/modules/video_filter/.libs/libnoise_plugin.a \
../../../../build/modules/video_filter/.libs/libposterize_plugin.a \
../../../../build/modules/video_filter/.libs/libmotiondetect_plugin.a \
../../../../build/modules/video_filter/.libs/libmosaic_plugin.a \
../../../../build/modules/video_filter/.libs/liblogo_plugin.a \
../../../../build/modules/video_filter/.libs/libgradient_plugin.a \
../../../../build/modules/video_filter/.libs/libtransform_plugin.a \
../../../../build/modules/video_filter/.libs/libpuzzle_plugin.a \
../../../../build/modules/video_filter/.libs/libmotionblur_plugin.a \
../../../../build/modules/video_filter/.libs/libblend_plugin.a \
../../../../build/modules/video_filter/.libs/libmagnify_plugin.a \
../../../../build/modules/video_filter/.libs/libscene_plugin.a \
../../../../build/modules/video_filter/.libs/libblendbench_plugin.a \
../../../../build/modules/video_filter/.libs/libscale_plugin.a \
../../../../build/modules/video_filter/.libs/libwall_plugin.a \
../../../../build/modules/video_filter/.libs/libpostproc_plugin.a \
../../../../build/modules/video_filter/.libs/libbluescreen_plugin.a \
../../../../build/modules/video_filter/.libs/libsubsdelay_plugin.a \
../../../../build/modules/video_filter/.libs/libcolorthres_plugin.a \
../../../../build/modules/video_filter/.libs/libsepia_plugin.a \
../../../../build/modules/audio_filter/.libs/liba52tofloat32_plugin.a \
../../../../build/modules/audio_filter/.libs/libdtstospdif_plugin.a \
../../../../build/modules/audio_filter/.libs/libchorus_flanger_plugin.a \
../../../../build/modules/audio_filter/.libs/libcompressor_plugin.a \
../../../../build/modules/audio_filter/.libs/libdolby_surround_decoder_plugin.a \
../../../../build/modules/audio_filter/.libs/libsimple_channel_mixer_plugin.a \
../../../../build/modules/audio_filter/.libs/libspatializer_plugin.a \
../../../../build/modules/audio_filter/.libs/libconverter_fixed_plugin.a \
../../../../build/modules/audio_filter/.libs/libtrivial_channel_mixer_plugin.a \
../../../../build/modules/audio_filter/.libs/libscaletempo_plugin.a \
../../../../build/modules/audio_filter/.libs/libaudio_format_plugin.a \
../../../../build/modules/audio_filter/.libs/libparam_eq_plugin.a \
../../../../build/modules/audio_filter/.libs/libequalizer_plugin.a \
../../../../build/modules/audio_filter/.libs/libmono_plugin.a \
../../../../build/modules/audio_filter/.libs/libnormvol_plugin.a \
../../../../build/modules/audio_filter/.libs/libaudiobargraph_a_plugin.a \
../../../../build/modules/audio_filter/.libs/liba52tospdif_plugin.a \
../../../../build/modules/audio_filter/.libs/libugly_resampler_plugin.a \
../../../../build/modules/audio_filter/.libs/libdtstofloat32_plugin.a \
../../../../build/modules/audio_filter/.libs/libheadphone_channel_mixer_plugin.a \
../../../../build/modules/control/.libs/libhotkeys_plugin.a \
../../../../build/modules/control/.libs/libgestures_plugin.a \
../../../../build/modules/control/.libs/libmotion_plugin.a \
../../../../build/modules/control/.libs/libnetsync_plugin.a \
../../../../build/modules/control/.libs/liboldrc_plugin.a \
../../../../build/modules/access/mms/.libs/libaccess_mms_plugin.a \
../../../../build/modules/access/zip/.libs/libzip_plugin.a \
../../../../build/modules/access/rtsp/.libs/libaccess_realrtsp_plugin.a \
../../../../build/modules/access/bd/.libs/libaccess_bd_plugin.a \
../../../../build/modules/access/rtp/.libs/librtp_plugin.a \
../../../../build/modules/access/.libs/libaccess_avio_plugin.a \
../../../../build/modules/access/.libs/libaccess_rar_plugin.a \
../../../../build/modules/access/.libs/libaccess_ftp_plugin.a \
../../../../build/modules/access/.libs/libaccess_imem_plugin.a \
../../../../build/modules/access/.libs/libaccess_attachment_plugin.a \
../../../../build/modules/access/.libs/libsdp_plugin.a \
../../../../build/modules/access/.libs/libaccess_udp_plugin.a \
../../../../build/modules/access/.libs/libstream_filter_rar_plugin.a \
../../../../build/modules/access/.libs/libaccess_http_plugin.a \
../../../../build/modules/access/.libs/libaccess_tcp_plugin.a \
../../../../build/modules/access/.libs/libfilesystem_plugin.a \
../../../../build/modules/access/.libs/libaccess_vdr_plugin.a \
../../../../build/modules/meta_engine/.libs/libfolder_plugin.a \
../../../../build/modules/services_discovery/.libs/libmediadirs_plugin.a \
../../../../build/modules/services_discovery/.libs/libsap_plugin.a \
../../../../build/modules/services_discovery/.libs/libpodcast_plugin.a \
../../../../build/modules/audio_mixer/.libs/libspdif_mixer_plugin.a \
../../../../build/modules/audio_mixer/.libs/libfloat32_mixer_plugin.a \
../../../../build/modules/audio_mixer/.libs/libtrivial_mixer_plugin.a \
../../../../build/modules/video_output/.libs/libfb_plugin.a \
../../../../build/modules/video_output/.libs/libvout_android_plugin.a \
../../../../build/modules/video_output/.libs/libyuv_plugin.a \
../../../../build/modules/video_output/.libs/libvmem_plugin.a \
../../../../build/modules/visualization/visual/.libs/libvisual_plugin.a \
../../../../build/modules/demux/avi/.libs/libavi_plugin.a \
../../../../build/modules/demux/mkv/.libs/libmkv_plugin.a \
../../../../build/modules/demux/asf/.libs/libasf_plugin.a \
../../../../build/modules/demux/mpeg/.libs/libh264_plugin.a \
../../../../build/modules/demux/mpeg/.libs/libmpgv_plugin.a \
../../../../build/modules/demux/mpeg/.libs/libes_plugin.a \
../../../../build/modules/demux/mp4/.libs/libmp4_plugin.a \
../../../../build/modules/demux/playlist/.libs/libplaylist_plugin.a \
../../../../build/modules/demux/.libs/libreal_plugin.a \
../../../../build/modules/demux/.libs/libty_plugin.a \
../../../../build/modules/demux/.libs/libvobsub_plugin.a \
../../../../build/modules/demux/.libs/libnsc_plugin.a \
../../../../build/modules/demux/.libs/libxa_plugin.a \
../../../../build/modules/demux/.libs/libpva_plugin.a \
../../../../build/modules/demux/.libs/libimage_plugin.a \
../../../../build/modules/demux/.libs/libdemux_cdg_plugin.a \
../../../../build/modules/demux/.libs/libvc1_plugin.a \
../../../../build/modules/demux/.libs/libmjpeg_plugin.a \
../../../../build/modules/demux/.libs/libogg_plugin.a \
../../../../build/modules/demux/.libs/libdemuxdump_plugin.a \
../../../../build/modules/demux/.libs/libvoc_plugin.a \
../../../../build/modules/demux/.libs/libau_plugin.a \
../../../../build/modules/demux/.libs/librawvid_plugin.a \
../../../../build/modules/demux/.libs/libdirac_plugin.a \
../../../../build/modules/demux/.libs/libnuv_plugin.a \
../../../../build/modules/demux/.libs/libtta_plugin.a \
../../../../build/modules/demux/.libs/librawdv_plugin.a \
../../../../build/modules/demux/.libs/libwav_plugin.a \
../../../../build/modules/demux/.libs/libnsv_plugin.a \
../../../../build/modules/demux/.libs/libsmf_plugin.a \
../../../../build/modules/demux/.libs/liblive555_plugin.a \
../../../../build/modules/demux/.libs/libsubtitle_plugin.a \
../../../../build/modules/demux/.libs/libps_plugin.a \
../../../../build/modules/demux/.libs/libaiff_plugin.a \
../../../../build/modules/demux/.libs/libflacsys_plugin.a \
../../../../build/modules/demux/.libs/librawaud_plugin.a \
../../../../build/modules/demux/avformat/.libs/libavformat_plugin.a \
../../../../build/modules/stream_filter/.libs/libstream_filter_record_plugin.a \
../../../../build/modules/stream_filter/.libs/libdecomp_plugin.a \
../../../../build/modules/stream_filter/.libs/libstream_filter_httplive_plugin.a \
../../../../build/modules/misc/dummy/.libs/libdummy_plugin.a \
../../../../build/modules/misc/playlist/.libs/libexport_plugin.a \
../../../../build/modules/misc/osd/.libs/libosd_parser_plugin.a \
../../../../build/modules/misc/.libs/libaudioscrobbler_plugin.a \
../../../../build/modules/misc/.libs/liblogger_plugin.a \
../../../../build/modules/audio_output/.libs/libamem_plugin.a \
../../../../build/modules/audio_output/.libs/libopensles_plugin.a \
../../../../build/modules/audio_output/.libs/libaout_file_plugin.a \
../../../../build/modules/video_chroma/.libs/libi422_yuy2_plugin.a \
../../../../build/modules/video_chroma/.libs/libyuy2_i420_plugin.a \
../../../../build/modules/video_chroma/.libs/libgrey_yuv_plugin.a \
../../../../build/modules/video_chroma/.libs/libi420_rgb_plugin.a \
../../../../build/modules/video_chroma/.libs/libi422_i420_plugin.a \
../../../../build/modules/video_chroma/.libs/libi420_yuy2_plugin.a \
../../../../build/modules/video_chroma/.libs/libyuy2_i422_plugin.a \
../../../../build/compat/.libs/libcompat.a \
../../../../build/src/.libs/libvlc.a \
../../../../build/src/.libs/libvlccore.a \
-ldl -lz -lm -logg -lvorbisenc -lvorbis -lFLAC -lspeex -ltheora -lavformat -lavcodec -lavcore -lavutil -lpostproc -lswscale -lmpeg2 -lgcc -lpng -ldca -ldvbpsi -ltwolame -lkate -llog -la52 -lliveMedia -lUsageEnvironment -lBasicUsageEnvironment -lgroupsock -lebml -lmatroska\
/home/hnc/android-ndk-r6//sources/cxx-stl/gnu-libstdc++/libs/armeabi/libstdc++.a
include $(BUILD_SHARED_LIBRARY)

But which Arguments need the libvlc_new ???

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 28 Jul 2011 08:56

Ok I understand your problem.
If you look at http://git.videolan.org/?p=vlc/vlc-andr ... =HEAD#l194 (extra/packages/android/vlc-android/jni/libvlcjni.c) you will see that we do not call libvlc_new but libvlc_new_with_builtins

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 09:32

Hey thanks for your link, but where is the definition of "vlc_builtins_modules" at line 195

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 28 Jul 2011 09:37

The definition is autogenerated (look at libvlcjni.h) from the list of available modules.

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 10:42

ok but if I include the libvlcjni.h to the project, the message would come don't know "packetizer_h264", "packetizer_mlp", "packetizer_mpeg4audio" ... and so on.

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 28 Jul 2011 10:57

What do you have in your libvlcjni.h ?

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 11:03

/* File: libvlcjni.h * Autogenerated from the list of modules */
vlc_declare_plugin(packetizer_h264);
vlc_declare_plugin(packetizer_mlp);
vlc_declare_plugin(packetizer_mpeg4audio);
vlc_declare_plugin(packetizer_dirac);
vlc_declare_plugin(packetizer_flac);
vlc_declare_plugin(packetizer_mpegvideo);
vlc_declare_plugin(packetizer_mpeg4video);
vlc_declare_plugin(packetizer_vc1);
vlc_declare_plugin(avcodec);
vlc_declare_plugin(subsdec);
vlc_declare_plugin(araw);
vlc_declare_plugin(dts);
vlc_declare_plugin(cdg);
vlc_declare_plugin(svcdsub);
vlc_declare_plugin(libmpeg2);
vlc_declare_plugin(aes3);
vlc_declare_plugin(rawvideo);
vlc_declare_plugin(kate);
vlc_declare_plugin(png);
vlc_declare_plugin(vorbis);
vlc_declare_plugin(flac);
vlc_declare_plugin(cc);
vlc_declare_plugin(lpcm);
vlc_declare_plugin(twolame);
vlc_declare_plugin(theora);
vlc_declare_plugin(telx);
vlc_declare_plugin(cvdsub);
vlc_declare_plugin(mpeg_audio);
vlc_declare_plugin(t140);
vlc_declare_plugin(dvbsub);
vlc_declare_plugin(a52);
vlc_declare_plugin(subsusf);
vlc_declare_plugin(speex);
vlc_declare_plugin(adpcm);
vlc_declare_plugin(spudec);
vlc_declare_plugin(dynamicoverlay);
vlc_declare_plugin(gradfun);
vlc_declare_plugin(swscale);
vlc_declare_plugin(mirror);
vlc_declare_plugin(marq);
vlc_declare_plugin(extract);
vlc_declare_plugin(rv32);
vlc_declare_plugin(croppadd);
vlc_declare_plugin(clone);
vlc_declare_plugin(adjust);
vlc_declare_plugin(rotate);
vlc_declare_plugin(wave);
vlc_declare_plugin(psychedelic);
vlc_declare_plugin(audiobargraph_v);
vlc_declare_plugin(grain);
vlc_declare_plugin(alphamask);
vlc_declare_plugin(canvas);
vlc_declare_plugin(ball);
vlc_declare_plugin(invert);
vlc_declare_plugin(gaussianblur);
vlc_declare_plugin(deinterlace);
vlc_declare_plugin(osdmenu);
vlc_declare_plugin(chain);
vlc_declare_plugin(ripple);
vlc_declare_plugin(sharpen);
vlc_declare_plugin(rss);
vlc_declare_plugin(yuvp);
vlc_declare_plugin(erase);
vlc_declare_plugin(noise);
vlc_declare_plugin(posterize);
vlc_declare_plugin(motiondetect);
vlc_declare_plugin(mosaic);
vlc_declare_plugin(logo);
vlc_declare_plugin(gradient);
vlc_declare_plugin(transform);
vlc_declare_plugin(puzzle);
vlc_declare_plugin(motionblur);
vlc_declare_plugin(blend);
vlc_declare_plugin(magnify);
vlc_declare_plugin(scene);
vlc_declare_plugin(blendbench);
vlc_declare_plugin(scale);
vlc_declare_plugin(wall);
vlc_declare_plugin(postproc);
vlc_declare_plugin(bluescreen);
vlc_declare_plugin(subsdelay);
vlc_declare_plugin(colorthres);
vlc_declare_plugin(sepia);
vlc_declare_plugin(a52tofloat32);
vlc_declare_plugin(dtstospdif);
vlc_declare_plugin(chorus_flanger);
vlc_declare_plugin(compressor);
vlc_declare_plugin(dolby_surround_decoder);
vlc_declare_plugin(simple_channel_mixer);
vlc_declare_plugin(spatializer);
vlc_declare_plugin(converter_fixed);
vlc_declare_plugin(trivial_channel_mixer);
vlc_declare_plugin(scaletempo);
vlc_declare_plugin(audio_format);
vlc_declare_plugin(param_eq);
vlc_declare_plugin(equalizer);
vlc_declare_plugin(mono);
vlc_declare_plugin(normvol);
vlc_declare_plugin(audiobargraph_a);
vlc_declare_plugin(a52tospdif);
vlc_declare_plugin(ugly_resampler);
vlc_declare_plugin(dtstofloat32);
vlc_declare_plugin(headphone_channel_mixer);
vlc_declare_plugin(hotkeys);
vlc_declare_plugin(gestures);
vlc_declare_plugin(motion);
vlc_declare_plugin(netsync);
vlc_declare_plugin(oldrc);
vlc_declare_plugin(access_mms);
vlc_declare_plugin(zip);
vlc_declare_plugin(access_realrtsp);
vlc_declare_plugin(access_bd);
vlc_declare_plugin(rtp);
vlc_declare_plugin(access_avio);
vlc_declare_plugin(access_rar);
vlc_declare_plugin(access_ftp);
vlc_declare_plugin(access_imem);
vlc_declare_plugin(access_attachment);
vlc_declare_plugin(sdp);
vlc_declare_plugin(access_udp);
vlc_declare_plugin(stream_filter_rar);
vlc_declare_plugin(access_http);
vlc_declare_plugin(access_tcp);
vlc_declare_plugin(filesystem);
vlc_declare_plugin(access_vdr);
vlc_declare_plugin(folder);
vlc_declare_plugin(mediadirs);
vlc_declare_plugin(sap);
vlc_declare_plugin(podcast);
vlc_declare_plugin(spdif_mixer);
vlc_declare_plugin(float32_mixer);
vlc_declare_plugin(trivial_mixer);
vlc_declare_plugin(fb);
vlc_declare_plugin(vout_android);
vlc_declare_plugin(yuv);
vlc_declare_plugin(vmem);
vlc_declare_plugin(visual);
vlc_declare_plugin(avi);
vlc_declare_plugin(mkv);
vlc_declare_plugin(asf);
vlc_declare_plugin(h264);
vlc_declare_plugin(mpgv);
vlc_declare_plugin(es);
vlc_declare_plugin(mp4);
vlc_declare_plugin(playlist);
vlc_declare_plugin(real);
vlc_declare_plugin(ty);
vlc_declare_plugin(vobsub);
vlc_declare_plugin(nsc);
vlc_declare_plugin(xa);
vlc_declare_plugin(pva);
vlc_declare_plugin(image);
vlc_declare_plugin(demux_cdg);
vlc_declare_plugin(vc1);
vlc_declare_plugin(mjpeg);
vlc_declare_plugin(ogg);
vlc_declare_plugin(demuxdump);
vlc_declare_plugin(voc);
vlc_declare_plugin(au);
vlc_declare_plugin(rawvid);
vlc_declare_plugin(dirac);
vlc_declare_plugin(nuv);
vlc_declare_plugin(tta);
vlc_declare_plugin(rawdv);
vlc_declare_plugin(wav);
vlc_declare_plugin(nsv);
vlc_declare_plugin(smf);
vlc_declare_plugin(live555);
vlc_declare_plugin(subtitle);
vlc_declare_plugin(ps);
vlc_declare_plugin(aiff);
vlc_declare_plugin(flacsys);
vlc_declare_plugin(rawaud);
vlc_declare_plugin(avformat);
vlc_declare_plugin(stream_filter_record);
vlc_declare_plugin(decomp);
vlc_declare_plugin(stream_filter_httplive);
vlc_declare_plugin(dummy);
vlc_declare_plugin(export);
vlc_declare_plugin(osd_parser);
vlc_declare_plugin(audioscrobbler);
vlc_declare_plugin(logger);
vlc_declare_plugin(amem);
vlc_declare_plugin(opensles);
vlc_declare_plugin(aout_file);
vlc_declare_plugin(i422_yuy2);
vlc_declare_plugin(yuy2_i420);
vlc_declare_plugin(grey_yuv);
vlc_declare_plugin(i420_rgb);
vlc_declare_plugin(i422_i420);
vlc_declare_plugin(i420_yuy2);
vlc_declare_plugin(yuy2_i422);

const void *vlc_builtins_modules[] = {
vlc_plugin(packetizer_h264),
vlc_plugin(packetizer_mlp),
vlc_plugin(packetizer_mpeg4audio),
vlc_plugin(packetizer_dirac),
vlc_plugin(packetizer_flac),
vlc_plugin(packetizer_mpegvideo),
vlc_plugin(packetizer_mpeg4video),
vlc_plugin(packetizer_vc1),
vlc_plugin(avcodec),
vlc_plugin(subsdec),
vlc_plugin(araw),
vlc_plugin(dts),
vlc_plugin(cdg),
vlc_plugin(svcdsub),
vlc_plugin(libmpeg2),
vlc_plugin(aes3),
vlc_plugin(rawvideo),
vlc_plugin(kate),
vlc_plugin(png),
vlc_plugin(vorbis),
vlc_plugin(flac),
vlc_plugin(cc),
vlc_plugin(lpcm),
vlc_plugin(twolame),
vlc_plugin(theora),
vlc_plugin(telx),
vlc_plugin(cvdsub),
vlc_plugin(mpeg_audio),
vlc_plugin(t140),
vlc_plugin(dvbsub),
vlc_plugin(a52),
vlc_plugin(subsusf),
vlc_plugin(speex),
vlc_plugin(adpcm),
vlc_plugin(spudec),
vlc_plugin(dynamicoverlay),
vlc_plugin(gradfun),
vlc_plugin(swscale),
vlc_plugin(mirror),
vlc_plugin(marq),
vlc_plugin(extract),
vlc_plugin(rv32),
vlc_plugin(croppadd),
vlc_plugin(clone),
vlc_plugin(adjust),
vlc_plugin(rotate),
vlc_plugin(wave),
vlc_plugin(psychedelic),
vlc_plugin(audiobargraph_v),
vlc_plugin(grain),
vlc_plugin(alphamask),
vlc_plugin(canvas),
vlc_plugin(ball),
vlc_plugin(invert),
vlc_plugin(gaussianblur),
vlc_plugin(deinterlace),
vlc_plugin(osdmenu),
vlc_plugin(chain),
vlc_plugin(ripple),
vlc_plugin(sharpen),
vlc_plugin(rss),
vlc_plugin(yuvp),
vlc_plugin(erase),
vlc_plugin(noise),
vlc_plugin(posterize),
vlc_plugin(motiondetect),
vlc_plugin(mosaic),
vlc_plugin(logo),
vlc_plugin(gradient),
vlc_plugin(transform),
vlc_plugin(puzzle),
vlc_plugin(motionblur),
vlc_plugin(blend),
vlc_plugin(magnify),
vlc_plugin(scene),
vlc_plugin(blendbench),
vlc_plugin(scale),
vlc_plugin(wall),
vlc_plugin(postproc),
vlc_plugin(bluescreen),
vlc_plugin(subsdelay),
vlc_plugin(colorthres),
vlc_plugin(sepia),
vlc_plugin(a52tofloat32),
vlc_plugin(dtstospdif),
vlc_plugin(chorus_flanger),
vlc_plugin(compressor),
vlc_plugin(dolby_surround_decoder),
vlc_plugin(simple_channel_mixer),
vlc_plugin(spatializer),
vlc_plugin(converter_fixed),
vlc_plugin(trivial_channel_mixer),
vlc_plugin(scaletempo),
vlc_plugin(audio_format),
vlc_plugin(param_eq),
vlc_plugin(equalizer),
vlc_plugin(mono),
vlc_plugin(normvol),
vlc_plugin(audiobargraph_a),
vlc_plugin(a52tospdif),
vlc_plugin(ugly_resampler),
vlc_plugin(dtstofloat32),
vlc_plugin(headphone_channel_mixer),
vlc_plugin(hotkeys),
vlc_plugin(gestures),
vlc_plugin(motion),
vlc_plugin(netsync),
vlc_plugin(oldrc),
vlc_plugin(access_mms),
vlc_plugin(zip),
vlc_plugin(access_realrtsp),
vlc_plugin(access_bd),
vlc_plugin(rtp),
vlc_plugin(access_avio),
vlc_plugin(access_rar),
vlc_plugin(access_ftp),
vlc_plugin(access_imem),
vlc_plugin(access_attachment),
vlc_plugin(sdp),
vlc_plugin(access_udp),
vlc_plugin(stream_filter_rar),
vlc_plugin(access_http),
vlc_plugin(access_tcp),
vlc_plugin(filesystem),
vlc_plugin(access_vdr),
vlc_plugin(folder),
vlc_plugin(mediadirs),
vlc_plugin(sap),
vlc_plugin(podcast),
vlc_plugin(spdif_mixer),
vlc_plugin(float32_mixer),
vlc_plugin(trivial_mixer),
vlc_plugin(fb),
vlc_plugin(vout_android),
vlc_plugin(yuv),
vlc_plugin(vmem),
vlc_plugin(visual),
vlc_plugin(avi),
vlc_plugin(mkv),
vlc_plugin(asf),
vlc_plugin(h264),
vlc_plugin(mpgv),
vlc_plugin(es),
vlc_plugin(mp4),
vlc_plugin(playlist),
vlc_plugin(real),
vlc_plugin(ty),
vlc_plugin(vobsub),
vlc_plugin(nsc),
vlc_plugin(xa),
vlc_plugin(pva),
vlc_plugin(image),
vlc_plugin(demux_cdg),
vlc_plugin(vc1),
vlc_plugin(mjpeg),
vlc_plugin(ogg),
vlc_plugin(demuxdump),
vlc_plugin(voc),
vlc_plugin(au),
vlc_plugin(rawvid),
vlc_plugin(dirac),
vlc_plugin(nuv),
vlc_plugin(tta),
vlc_plugin(rawdv),
vlc_plugin(wav),
vlc_plugin(nsv),
vlc_plugin(smf),
vlc_plugin(live555),
vlc_plugin(subtitle),
vlc_plugin(ps),
vlc_plugin(aiff),
vlc_plugin(flacsys),
vlc_plugin(rawaud),
vlc_plugin(avformat),
vlc_plugin(stream_filter_record),
vlc_plugin(decomp),
vlc_plugin(stream_filter_httplive),
vlc_plugin(dummy),
vlc_plugin(export),
vlc_plugin(osd_parser),
vlc_plugin(audioscrobbler),
vlc_plugin(logger),
vlc_plugin(amem),
vlc_plugin(opensles),
vlc_plugin(aout_file),
vlc_plugin(i422_yuy2),
vlc_plugin(yuy2_i420),
vlc_plugin(grey_yuv),
vlc_plugin(i420_rgb),
vlc_plugin(i422_i420),
vlc_plugin(i420_yuy2),
vlc_plugin(yuy2_i422),
NULL
};

that

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 28 Jul 2011 13:03

Have you tried to use directly the libvlcjni.c and modify it to meet your needs ?

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 13:22

How should I do that, if I don't know what argument I need for the libvlc_new_with_builtins? Its the same if I use libvlcjni.c or my on c-file, a c-file is a c-file and both don't know the packetizer_h264", "packetizer_mlp", "packetizer_mpeg4audio"...

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 13:38

ok these problem is solved, but it still doesn't work
Last edited by androido on 28 Jul 2011 17:02, edited 1 time in total.

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 15:42

I think I got it, thanks for your help. I made a bad mistake, I had to old header versions.
Last edited by androido on 28 Jul 2011 17:03, edited 1 time in total.

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 28 Jul 2011 17:01

A last question, cause now it is able to let it compile with these new options. But the app ends under Android wit Signal 4. Is it possible to run the whole libvlc on Android-Emulator? A part of it could run (all without plugins) thats what i tested a long time before. I use the new sdk 12 version

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Android and libvlc plugin problems

Postby ivoire » 29 Jul 2011 13:20

I haven't tried that much libvlc on the emulator because that's really slow and you can't use NEON instructions but I think you should at least launch libvlc without too many problems on the emulator. (using a real device is really more convenient).

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 29 Jul 2011 15:19

I know that you can not use NEON instructions thats why I set NO_NEON=1, maybe I use some NEON instruction. Cause Signal 4 is illegal instruction. Does something of this code cause an NEON instruction?

Code: Select all

const char *argv[] = {"-I", "dummy", "-vvv", "--no-plugins-cache", "--no-drop-late-frames"}; libvlc_instance_t *instance = libvlc_new_with_builtins(sizeof(argv) / sizeof(*argv), argv, vlc_builtins_modules);

androido
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Jul 2011 11:47

Re: Android and libvlc plugin problems

Postby androido » 01 Aug 2011 17:35

thanks for your help it works.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests