[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


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=

 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

More information about the vlc-devel mailing list