Hello,<br><br>I solved my problem. In my first e-mail, the code was :<br><br>/* ***************************************** */<br>string trspts = "\"#transcode{vcodec=mp2v,vb<div id="mb_0">=512k,scale=1,acodec=128,ab=128}:duplicate{dst=std{access=file,dst="+ this->home +"}}\"";
</div>/* ***************************************** */<br><br>There is no need to add \" when API is used though it's needed by using VLC in command line.<br>I hope it will help whereas it was a stupid mistake :(.
<br><br>Regards,<br><br>JF<br><br><div><span class="gmail_quote">2007/6/24, Jean-François Massol <<a href="mailto:jf.massol@gmail.com">jf.massol@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello !<br><br>I look for informations about how to compose arguments in order to transcode<br>through API. After some researches, it seems that it's not possible to<br>use "sout" with API (no problem for vout, aout etc.). I saw a "to do" in the
<br>API documentation. Am I wrong ?<br><br>regards,<br><br>JF<br><br>Le vendredi 22 juin 2007 15:01, vous avez écrit:<br>> Hello everybody,<br>><br>> I fixed my API problems (0.9.0). I followed API guidelines given. But I'm
<br>> facing a problem, within API, as argv arguments given (mainly for<br>> transcoding), I got those error messages :<br>><br>> /* error messages */<br>> [00000328] stream_out_standard private error: no access _and_ no muxer
<br>> (fatal error)<br>> [00000327] main stream output error: stream chain failed for<br>> `std{mux="",access=""#transcode{vcodec=mp2v,vb=512k,scale=1,acodec=128,ab=1<br>>28}",dst="duplicate{dst=std{access=file,dst=/home/videogate/FRANCE.ts}}""}'
<br>> [00000326] main input error: cannot start stream output instance, aborting<br>> [00000317] access_mms access error: error while asking for file -1<br>> [00000317] access_mms access error: error while asking for file -1
<br>> [00000317] access_mms access error: cannot connect to server<br>> [00000317] access_mms access error: no stream selected<br>> [00000317] access_mms access error: cannot start stream<br>> /* ************ */
<br>><br>> and this is my source code :<br>><br>> int Transcoder::transcoder_init()<br>> {<br>> cout << "Transcoder_init() : " << this->home << endl;<br>> string trspts =
<br>> "\"#transcode{vcodec=mp2v,vb=512k,scale=1,acodec=128,ab=128}:duplicate{dst=<br>>std{access=file,dst="+ this->home +"}}\"";<br>> char *opts[] = {"vlc","--sout",(char *)trspts.c_str()};
<br>> libvlc_exception_init (&_transexcep);<br>> _transcoder = libvlc_new(3,opts,&_transexcep);<br>><br>> if(libvlc_exception_raised(&_transexcep))<br>> {<br>> cerr << "Transcoder init : " <<
<br>> libvlc_exception_get_message(&_transexcep);<br>> MSG_GENERIC("Cannot init Transcoder")<br>> libvlc_exception_clear(&_transexcep);<br>> exit(1);<br>> }
<br>><br>> if(_transcoder == NULL)<br>> {<br>> cerr << "No Transcoder instance found !";<br>> MSG_GENERIC("Cannot init Transcoder")<br>> exit(1);
<br>> }<br>><br>> MSG_GENERIC("Transcoder successfully initialized")<br>> return 0;<br>> }<br>><br>> My VLC instance is successfully initialized. But I don't understand why a
<br>> "std{mux="",access=" in addition to my args ?<br>> Is there a special format for argv in order to transcode my streams ? When<br>> I tried "-vvv", it works fine, but no way for my transcode args.
<br>><br>> Thanks a lot one more time.<br>><br>> regards,<br>><br>> JF<br><br>--<br>Jean-François Massol<br><a href="mailto:jf.massol@gmail.com">jf.massol@gmail.com</a><br></blockquote></div><br>