[vlc-devel] problems using libvlc.
ChengYQ
crashboat at hotmail.com
Mon Oct 1 15:57:02 CEST 2007
Hi,
Thanks a lot for your reply.
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, aborting
main playlist: nothing to play
But when i run the installed vlc, everything is ok.
Is there anyother way to solve this problem?
I attached the c file and makefile here, could you help me to identify the problem?
This problem has stopped me for more than one week now......
thanks again!
------------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=192.168.0.2: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}
------------------------------------------
On Sep 30, 2007, at 12:39 PM, ChengYQ wrote:> > > When I run the original installed vlc, all modules works fine, but > > when I use libvlc,and try to put> > arguments ":sout=#transcode{vdev=mp4v......." and run it, the > > system said that "there are no modules> > matched the transcode", I think maybe because of the options when I > > compile/link it.I used:> > export VLC_SRC=/tmp/vlc-0.8.6c> > gcc -I ${VLC_SRC}/include/ -lvlc -L ${VLC_SRC}/src/.libs/ demo.c -o > > demo> > How can I specify a typical location of the transcode? Should this > > be done when link or through passing arguments to libvlc_new?> --module-path=/path/to/the/module may help (as an argument to > libvlc_new).> > Pierre.> > > ------------------------------
> From: vlc-devel-request at videolan.org> Subject: vlc-devel Digest, Vol 4, Issue 107> To: vlc-devel at videolan.org> Date: Sun, 30 Sep 2007 18:38:38 +0200> > Send vlc-devel mailing list submissions to> vlc-devel at videolan.org> > To subscribe or unsubscribe via the World Wide Web, visit> http://mailman.videolan.org/listinfo/vlc-devel> or, via email, send a message with subject or body 'help' to> vlc-devel-request at videolan.org> > You can reach the person managing the list at> vlc-devel-owner at videolan.org> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of vlc-devel digest..."> > > Today's Topics:> > 1. vlc: svn commit r22322 (pdherbemont) (Subversion daemon)> 2. Re: problems using libvlc. (Pierre d'Herbemont)> 3. Re: FW: Mac OS X Framework: Patch for minimal_macosx and> lopengl (Enrique Osuna)> 4. vlc: svn commit r22323 (courmisch) (Subversion daemon)> 5. vlc: svn commit r22324 (courmisch) (Subversion daemon)> 6. vlc: svn commit r22325 (courmisch) (Subversion daemon)> 7. vlc: svn commit r22326 (courmisch) (Subversion daemon)> 8. vlc: svn commit r22327 (courmisch) (Subversion daemon)> 9. Re: vlc: svn commit r22324 (courmisch) (Pierre d'Herbemont)> 10. vlc: svn commit r22328 (fenrir) (Subversion daemon)> 11. vlc: svn commit r22329 (courmisch) (Subversion daemon)> 12. vlc: svn commit r22330 (courmisch) (Subversion daemon)> > > ----------------------------------------------------------------------> > Message: 1> Date: Sun, 30 Sep 2007 12:40:31 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22322 (pdherbemont)> To: <vlc-devel at videolan.org>> Message-ID: <20070930104031.2AF041602C at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22322 | pdherbemont | 2007-09-30 12:40:30 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/extras/MacOSX/Framework/Sources/VLCLibrary.m> > MacOSX/Framework: Use --opengl-provider=minimal_macosx. (Original patch by Enrique Osuna <enrique.osuna a gmail d com>).> > > http://trac.videolan.org/vlc/changeset/22322> > > ------------------------------> > Message: 2> Date: Sun, 30 Sep 2007 12:44:03 +0200> From: Pierre d'Herbemont <pdherbemont at free.fr>> Subject: Re: [vlc-devel] problems using libvlc.> To: Mailing list for VLC media player developers> <vlc-devel at videolan.org>> Message-ID: <2F6D807B-9194-4540-AB26-CA6CA06C0032 at free.fr>> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed> > > On Sep 30, 2007, at 12:39 PM, ChengYQ wrote:> > > When I run the original installed vlc, all modules works fine, but > > when I use libvlc,and try to put> > arguments ":sout=#transcode{vdev=mp4v......." and run it, the > > system said that "there are no modules> > matched the transcode", I think maybe because of the options when I > > compile/link it.I used:> > export VLC_SRC=/tmp/vlc-0.8.6c> > gcc -I ${VLC_SRC}/include/ -lvlc -L ${VLC_SRC}/src/.libs/ demo.c -o > > demo> > How can I specify a typical location of the transcode? Should this > > be done when link or through passing arguments to libvlc_new?> --module-path=/path/to/the/module may help (as an argument to > libvlc_new).> > Pierre.> > > ------------------------------> > Message: 3> Date: Sun, 30 Sep 2007 11:48:13 +0100> From: "Enrique Osuna" <enrique.osuna at gmail.com>> Subject: Re: [vlc-devel] FW: Mac OS X Framework: Patch for> minimal_macosx and lopengl> To: "Mailing list for VLC media player developers"> <vlc-devel at videolan.org>> Message-ID:> <8b7befa80709300348i78d02e8bn9c748acf5a3b2761 at mail.gmail.com>> Content-Type: text/plain; charset=ISO-8859-1> > Just updated local copy from repository, works like a charm.> > Thanks for the feedback.> > Enrique> > On 9/30/07, Pierre d'Herbemont <pdherbemont at free.fr> wrote:> > I'll apply this same patch, with a few modifications. But the general> > structure is ok.> >> > Thanks!> >> > Pierre.> >> > On Sep 29, 2007, at 4:53 PM, Enrique Osuna wrote:> >> > > Ok. So I'm a bit retarded today. Sorry.> > >> > > Third time is a charm?> > >> > > Enrique<opengl-select-> > > provider.patch>_______________________________________________> > > vlc-devel mailing list> > > To unsubscribe or modify your subscription options:> > > http://mailman.videolan.org/listinfo/vlc-devel> >> > _______________________________________________> > vlc-devel mailing list> > To unsubscribe or modify your subscription options:> > http://mailman.videolan.org/listinfo/vlc-devel> >> > > ------------------------------> > Message: 4> Date: Sun, 30 Sep 2007 15:59:28 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22323 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930135928.B2BC31F5C6 at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22323 | courmisch | 2007-09-30 15:59:28 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/include/vlc_vout.h> > reference count should really be unsigned> > > http://trac.videolan.org/vlc/changeset/22323> > > ------------------------------> > Message: 5> Date: Sun, 30 Sep 2007 16:01:24 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22324 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930140124.EDD331F5C7 at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22324 | courmisch | 2007-09-30 16:01:24 +0200 (Sun, 30 Sep 2007) | 4 lines> Changed paths:> M /trunk/include/vlc_common.h> M /trunk/src/control/media_instance.c> M /trunk/src/input/vlm.c> M /trunk/src/libvlc.h> M /trunk/src/misc/objects.c> M /trunk/src/osd/osd.c> > Hide object reference counter.> Good news is, no plugins used it anyway.> Bad news is, some parts of libvlc still use which is wrong (i_refcount is protected by the "structure lock", meaning only misc/objects.c functions can use it safely).> > > http://trac.videolan.org/vlc/changeset/22324> > > ------------------------------> > Message: 6> Date: Sun, 30 Sep 2007 16:11:47 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22325 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930141148.9D84D1F5CD at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22325 | courmisch | 2007-09-30 16:11:47 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/src/osd/osd.c> > Fix tiny race condition> > > http://trac.videolan.org/vlc/changeset/22325> > > ------------------------------> > Message: 7> Date: Sun, 30 Sep 2007 16:33:22 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22326 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930143322.ADE651F5E7 at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22326 | courmisch | 2007-09-30 16:33:22 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/include/vlc_variables.h> M /trunk/modules/codec/ffmpeg/audio.c> M /trunk/modules/codec/ffmpeg/encoder.c> M /trunk/modules/codec/ffmpeg/ffmpeg.c> M /trunk/modules/codec/ffmpeg/video.c> M /trunk/modules/codec/quicktime.c> M /trunk/modules/misc/gnutls.c> M /trunk/modules/misc/gtk_main.c> M /trunk/modules/misc/qte_main.cpp> M /trunk/modules/video_output/sdl.c> M /trunk/src/libvlc.sym> M /trunk/src/misc/variables.c> > Rename var_GetGlobalMutex to var_AcquireMutex and make it lock the mutex automatically> > > http://trac.videolan.org/vlc/changeset/22326> > > ------------------------------> > Message: 8> Date: Sun, 30 Sep 2007 16:50:13 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22327 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930145013.5EC6C1F31F at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22327 | courmisch | 2007-09-30 16:50:12 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/modules/codec/ffmpeg/video.c> > Typo> > > http://trac.videolan.org/vlc/changeset/22327> > > ------------------------------> > Message: 9> Date: Sun, 30 Sep 2007 17:18:20 +0200> From: Pierre d'Herbemont <pdherbemont at free.fr>> Subject: Re: [vlc-devel] vlc: svn commit r22324 (courmisch)> To: Mailing list for VLC media player developers> <vlc-devel at videolan.org>> Message-ID: <3A81C836-3114-4E45-9E69-F85D2CD3C2FB at free.fr>> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed> > > On Sep 30, 2007, at 4:01 PM, Subversion daemon wrote:> > > Bad news is, some parts of libvlc still use which is wrong > > (i_refcount is protected by the "structure lock", meaning only misc/ > > objects.c functions can use it safely).> > The part of libvlc which uses it is a nasty hack, which works for > now, but should be deleted once libvlc_playlist_get_media_instance > gets removed.> > Pierre.> > > ------------------------------> > Message: 10> Date: Sun, 30 Sep 2007 17:40:34 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22328 (fenrir)> To: <vlc-devel at videolan.org>> Message-ID: <20070930154034.AEC601F58D at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22328 | fenrir | 2007-09-30 17:40:34 +0200 (Sun, 30 Sep 2007) | 7 lines> Changed paths:> M /trunk/include/vlc_common.h> M /trunk/include/vlc_demux.h> M /trunk/modules/access/dvdnav.c> M /trunk/modules/access/dvdread.c> M /trunk/modules/access/fake.c> M /trunk/modules/demux/a52.c> M /trunk/modules/demux/aiff.c> M /trunk/modules/demux/au.c> M /trunk/modules/demux/avi/avi.c> M /trunk/modules/demux/avi/libavi.c> M /trunk/modules/demux/cdg.c> M /trunk/modules/demux/demuxdump.c> M /trunk/modules/demux/dts.c> M /trunk/modules/demux/flac.c> M /trunk/modules/demux/gme.cpp> M /trunk/modules/demux/mjpeg.c> M /trunk/modules/demux/mod.c> M /trunk/modules/demux/mp4/libmp4.c> M /trunk/modules/demux/mpc.c> M /trunk/modules/demux/mpeg/h264.c> M /trunk/modules/demux/mpeg/m4a.c> M /trunk/modules/demux/mpeg/m4v.c> M /trunk/modules/demux/mpeg/mpga.c> M /trunk/modules/demux/mpeg/mpgv.c> M /trunk/modules/demux/nsc.c> M /trunk/modules/demux/nsv.c> M /trunk/modules/demux/nuv.c> M /trunk/modules/demux/ogg.c> M /trunk/modules/demux/playlist/asx.c> M /trunk/modules/demux/playlist/dvb.c> M /trunk/modules/demux/playlist/gvp.c> M /trunk/modules/demux/playlist/ifo.c> M /trunk/modules/demux/playlist/m3u.c> M /trunk/modules/demux/playlist/pls.c> M /trunk/modules/demux/playlist/sgimb.c> M /trunk/modules/demux/playlist/shoutcast.c> M /trunk/modules/demux/ps.c> M /trunk/modules/demux/ps.h> M /trunk/modules/demux/pva.c> M /trunk/modules/demux/rawdv.c> M /trunk/modules/demux/rawvid.c> M /trunk/modules/demux/subtitle.c> M /trunk/modules/demux/ts.c> M /trunk/modules/demux/tta.c> M /trunk/modules/demux/ty.c> M /trunk/modules/demux/vc1.c> M /trunk/modules/demux/xa.c> M /trunk/src/input/meta.c> M /trunk/src/input/var.c> > Added const wheen needed for stream_Peek (demuxer/access)> Made demux2_IsPathExtension case insensitive.> Used demux2_IsPathExtension/p_demux->b_force when appropriate> Fixed a regression in flac demuxer (segfault when reading meta data)> Added a VLC_UNUSED(x) macro to avoid seeing ugly (void)x around the code.> Improved a bit a few vlc_common.h macro (do {}?while(0))> > > http://trac.videolan.org/vlc/changeset/22328> > > ------------------------------> > Message: 11> Date: Sun, 30 Sep 2007 18:31:03 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22329 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930163103.48EF11F636 at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22329 | courmisch | 2007-09-30 18:31:02 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/modules/access_output/http.c> M /trunk/modules/codec/cinepak.c> M /trunk/modules/demux/playlist/qtl.c> M /trunk/modules/misc/profile_parser.c> M /trunk/src/input/subtitles.c> M /trunk/src/interface/interaction.c> > Remove FREE() macro, since free() does the same internally> > > http://trac.videolan.org/vlc/changeset/22329> > > ------------------------------> > Message: 12> Date: Sun, 30 Sep 2007 18:37:08 +0200 (CEST)> From: Subversion daemon <svn at videolan.org>> Subject: [vlc-devel] vlc: svn commit r22330 (courmisch)> To: <vlc-devel at videolan.org>> Message-ID: <20070930163708.877DE1F63D at ganesh.localdomain>> Content-Type: text/plain; charset=UTF-8> > r22330 | courmisch | 2007-09-30 18:37:07 +0200 (Sun, 30 Sep 2007) | 2 lines> Changed paths:> M /trunk/include/vlc_common.h> > Actually remove unused FREE() macro> > > http://trac.videolan.org/vlc/changeset/22330> > > ------------------------------> > _______________________________________________> vlc-devel mailing list> vlc-devel at videolan.org> http://mailman.videolan.org/listinfo/vlc-devel> > > End of vlc-devel Digest, Vol 4, Issue 107> *****************************************
_________________________________________________________________
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071001/ad353919/attachment.html>
More information about the vlc-devel
mailing list