[vlc-devel] problems using libvlc.
ChengYQ
crashboat at hotmail.com
Mon Oct 1 16:11:40 CEST 2007
Hi,
Really sorry about last post of this topic, the mail content is a mess, I don't know why, it was ok when I sent it.
I quoted the mail and formated it again<hope this time no mess>:
When I pass the "--module-path=/...." to libvlc_new, the segment error occurs.So I changed the module to "--plugin-path=/usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so"and I also add "--plugin-path=/usr/local/lib/vlc/codec/libffmpeg_plugin.so".When I put the "--plugin-path="to a directory, the segment error comes, so I put the path to the certain *.so files, is this ok?The message is still:main private error: no sout stream module matched "transcode"main stream output error: stream chain failed for 'transcode{vcodec=mp4v,vb=1024,scale=1}:duplicated{dst=display,dst=std{access=udp,mux=ts,dst=192.168.0.2:1234}}'main input error: cannot start stream output instance, abortingmain playlist: nothing to play I attached the c file and makefile here, could you help me to identify the problem?------------------myvlc.c------------------------#include <stdio.h>#include <stdlib.h>#include <vlc/libvlc.h>static void quit_on_exception (libvlc_exception_t *excp) { if (libvlc_exception_raised (excp)) { fprintf(stderr, "error: %s\n", libvlc_exception_get_message(excp)); exit(-1); }}int main(int argc, char **argv) { libvlc_exception_t excp; libvlc_instance_t *inst; char *myarg0 = "test"; char *myarg1 = "v4l://"; char *myarg2 = ":v4l-vdev=/dev/video0"; char *myarg3 = ":v4l-adev="; char *myarg4 = ":sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=display,dst=std {access=udp,mux=ts,dst=143.53.20.231:1234}}"; char *myarg5 = "--plugin-path=/usr/local/lib/vlc/codec/ffmpeg/libffmpeg_plugin.so"; char *myarg6 = "--plugin-path=/usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so"; char *myargs[7] = {myarg0,myarg1,myarg2,myarg3,myarg4,myarg5,myarg6}; libvlc_exception_init (&excp); inst = libvlc_new (7, myargs, &excp); quit_on_exception (&excp);// libvlc_playlist_play (inst, -1, 0, NULL, &excp); quit_on_exception (&excp); usleep (10000000); libvlc_destroy (inst); return 0;} --------------Makefile-------------------------VLC_SRC=/usr/src/vlc-0.8.6c/vlc-0.8.6c/srcKERNELV = `uname -r`CC=gccINS=installINSDIR=/usr/local/binLIBDIR=-L/usr/local/lib/vlc/stream_out -L/usr/local/lib/vlc/codecincludes=-I/usr/src/linux-$(KERNELV)/include -I${VLC_SRC}/include/LIBS=-lvlc -lstream_out_transcode_plugin -lffmpeg_pluginSRC=myvlc.cOBJS=myvlc.oPROG=myvlclibusbtest: ${OBJS} ${CC} $(includes) -o ${PROG} ${SRC} ${LIBDIR} ${LIBS}install:${PROG} ${INS} -g root -o root ${PROG} ${INSDIR}-------------------------------------------------
Yours
Jay
_________________________________________________________________
用 Live Search 搜尽天下资讯!
http://www.live.com/?searchOnly=true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071001/6569f7d0/attachment.html>
More information about the vlc-devel
mailing list