<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Hi,<BR>
 <BR>
Thanks a lot for your reply.<BR>
When I pass the "--module-path=/...." to libvlc_new, the segment error occurs.<BR>
So I changed the module to "--plugin-path=/usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so"<BR>
and I also add "--plugin-path=/usr/local/lib/vlc/codec/libffmpeg_plugin.so".<BR>
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?<BR>
 <BR>
The message is still:<BR>
main private error: no sout stream module matched "transcode"<BR>
main stream output error: stream chain failed for 'transcode{vcodec=mp4v,vb=1024,scale=1}:duplicated{dst=display,dst=<BR>
std{access=udp,mux=ts,dst=192.168.0.2:1234}}'<BR>
main input error: cannot start stream output instance, aborting<BR>
main playlist: nothing to play<BR>
 <BR>
But when i run the installed vlc, everything is ok.<BR>
 <BR>
Is there anyother way to solve this problem? <BR>
I attached the c file and makefile here, could you help me to identify the problem?<BR>
 <BR>
This problem has stopped me for more than one week now......<BR>
 <BR>
thanks again!<BR>
 <BR>
------------myvlc.c--------------------------<BR>
#include <stdio.h><BR>#include <stdlib.h><BR>#include <vlc/libvlc.h><BR>
static void quit_on_exception (libvlc_exception_t *excp) {<BR>   if (libvlc_exception_raised (excp)) {<BR>      fprintf(stderr, "error: %s\n", libvlc_exception_get_message(excp));<BR>      exit(-1);<BR>   }<BR>}<BR>
int main(int argc, char **argv) {<BR>   libvlc_exception_t excp;<BR>   libvlc_instance_t *inst;<BR> char *myarg0 = "test";<BR> char *myarg1 = "v4l://";<BR> char *myarg2 = ":v4l-vdev=/dev/video0";<BR> char *myarg3 = ":v4l-adev=";<BR> 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}}";<BR> char *myarg5 = "--plugin-path=/usr/local/lib/vlc/codec/ffmpeg/libffmpeg_plugin.so";<BR> char *myarg6 = "--plugin-path=/usr/local/lib/vlc/stream_out/libstream_out_transcode_plugin.so";<BR> char *myargs[7] = {myarg0,myarg1,myarg2,myarg3,myarg4,myarg5,myarg6};<BR>   libvlc_exception_init (&excp);<BR>   inst = libvlc_new (7, myargs, &excp);<BR>   quit_on_exception (&excp);//<BR>   libvlc_playlist_play (inst, -1, 0, NULL, &excp); <BR>   quit_on_exception (&excp);<BR>   usleep (10000000);<BR>   libvlc_destroy (inst);<BR>   return 0;<BR>}<BR>---------Makefile------------------------------------<BR>
VLC_SRC=/usr/src/vlc-0.8.6c/vlc-0.8.6c/src<BR>KERNELV = `uname -r`<BR>CC=gcc<BR>INS=install<BR>INSDIR=/usr/local/bin<BR>LIBDIR=-L/usr/local/lib/vlc/stream_out -L/usr/local/lib/vlc/codec<BR>includes=-I/usr/src/linux-$(KERNELV)/include -I${VLC_SRC}/include/<BR>LIBS=-lvlc -lstream_out_transcode_plugin -lffmpeg_plugin<BR>SRC=myvlc.c<BR>OBJS=myvlc.o<BR>PROG=myvlc<BR>libusbtest: ${OBJS}<BR>  ${CC} $(includes) -o ${PROG} ${SRC} ${LIBDIR} ${LIBS}<BR>install:${PROG}<BR> ${INS} -g root -o root ${PROG} ${INSDIR}<BR>
------------------------------------------<BR>
 <BR>
 <BR>
 <BR>
On Sep 30, 2007, at 12:39 PM, ChengYQ wrote:<BR>> <BR>> > When I run the original installed vlc, all modules works fine, but <BR>> > when I use libvlc,and try to put<BR>> > arguments ":sout=#transcode{vdev=mp4v......." and run it, the <BR>> > system said that "there are no modules<BR>> > matched the transcode", I think maybe because of the options when I <BR>> > compile/link it.I used:<BR>> > export VLC_SRC=/tmp/vlc-0.8.6c<BR>> > gcc -I ${VLC_SRC}/include/ -lvlc -L ${VLC_SRC}/src/.libs/ demo.c -o <BR>> > demo<BR>> > How can I specify a typical location of the transcode? Should this <BR>> > be done when link or through passing arguments to libvlc_new?<BR>> --module-path=/path/to/the/module may help (as an argument to <BR>> libvlc_new).<BR>> <BR>> Pierre.<BR>> <BR>> <BR>> ------------------------------<BR><BR><BR><BR><BR>

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