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

Herman Schultz herman.schultz at gmail.com
Fri Jul 27 07:28:24 CEST 2007


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'

Can you please tel me what am I missing?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070727/b383c00b/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