[vlc-devel] how to pass '--sout-ffmpeg-keyint' in libvlc_new()

Pierre d'Herbemont pdherbemont at free.fr
Fri Jul 27 07:44:17 CEST 2007


On 27 juil. 07, at 07:28, Herman Schultz wrote:

> Hi,
>
> I am trying to enable '--sout-ffmpeg-keyint' in  libvlc_new() like  
> this:
>
>       std::vector<char *> vec( 8);
>
>       vec[0] = "./vlc";
>       vec[1] = "-I";
>       vec[2] = "dummy";
>       vec[3] = "test.flv";
>       vec[4] = "--sout-ffmpeg-keyint";
>       vec[5] = "15";
>       vec[6]= "--sout";
>       vec[7]= "#transcode{vcodec=mp4v,vb=400,acodec=mpga,ab=128}:rtp 
> {dst= 127.0.0.1,port-video=3342,port-audio=3346,sdp=file:///usr/ 
> local/movies/mytest2.sdp,port-server=5000}";
>
>  libvlc_exception_t exception;
>       libvlc_exception_init( &exception );
>
>       libvlc_instance_t *p_instance = libvlc_new( i_argc , &vec.at 
> (0), &exception );
>
> But I get this error when I execute my code:
>
> vlc: unknown option or missing mandatory argument `--sout-ffmpeg- 
> keyint'

try
vec[4]="--sout-ffmpeg-keyint=15"
vec[5]="--sout='#transcode{vcodec=mp4v,vb=400,acodec=mpga,ab=128}:rtp 
{dst= 127.0.0.1,port-video=3342,port-audio=3346,sdp=file:///usr/local/ 
movies/mytest2.sdp,port-server=5000}'";

That may help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070727/bf5d5d13/attachment.html>
-------------- next part --------------
_______________________________________________
vlc-devel mailing list
vlc-devel at videolan.org
http://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list