Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:24:39+00:00 2026-05-29T15:24:39+00:00

Is there a way to read an mms stream, with open cv, for direct

  • 0

Is there a way to read an mms stream, with open cv, for direct analyze?

I’m trying to do a small project with c++. and I don’t know how to plug the mms to the opencv.

I guess ill need to add a library to the visual studio.

There is only video on the mms stream im reading:

mms://s3ewm.castup.net/991450009-52.wmv?ct=IL&rg=BZ&aid=145&tkn=20120201230602&ts=0&cu=FC1B06E9-7ABE-4B1C-9B2A-7A5C6019E99F

Update:

I found this link: Microsoft msdn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:24:41+00:00Added an answer on May 29, 2026 at 3:24 pm

    here someone did get the mms with vlc package.

    struct ctx
    {
       IplImage* image;
       HANDLE mutex;
       uchar*    pixels;
    };
    
    void *lock(void *data, void**p_pixels)
    {
        struct ctx *ctx = (struct ctx*)data;
        WaitForSingleObject(ctx->mutex, INFINITE);
         *p_pixels = ctx->pixels;   
        return NULL;
    
    }
    void display(void *data, void *id){
       (void) data;
       assert(id == NULL);
    }
    void unlock(void *data, void *id, void *const *p_pixels){
       struct ctx *ctx = (struct ctx*)data;
       /* VLC just rendered the video, but we can also render stuff */
       uchar *pixels = (uchar*)*p_pixels;
       cvShowImage("image", ctx->image);
       ReleaseMutex(ctx->mutex);
       assert(id == NULL); /* picture identifier, not needed here */
    }
    
    int main()
    {
       cvNamedWindow("image", CV_WINDOW_AUTOSIZE);
       libvlc_media_t* media = NULL;
       libvlc_media_player_t* mediaPlayer = NULL;
       char const* vlc_argv[] = {"--plugin-path", "C:\\Users\\Oscar\\Documents\\libvlc\\vlc-1.1.4"};
       libvlc_instance_t* instance = libvlc_new(2,vlc_argv);
       mediaPlayer = libvlc_media_player_new(instance);
       media = libvlc_media_new_path(instance, "mms://81.89.49.210/musicbox");
    
       struct ctx* context = ( struct ctx* )malloc( sizeof( *context ) );
       context->mutex = CreateMutex(NULL, FALSE,NULL);
       context->image = cvCreateImage(cvSize(VIDEO_WIDTH, VIDEO_HEIGHT), IPL_DEPTH_8U, 4);
            context->pixels = (unsigned char *)context->image->imageData;
    
       libvlc_media_player_set_media( mediaPlayer, media);
       libvlc_video_set_callbacks(mediaPlayer, lock, unlock, display, context);
            libvlc_video_set_format(mediaPlayer, "RV32", VIDEO_WIDTH, VIDEO_HEIGHT, VIDEO_WIDTH*4);
       libvlc_media_player_play(mediaPlayer);
    
    
       while(1)
       {
       }
       return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way with vb.net of accomblishing MMS audio streaming? Also, i read
Is there a way to read Open Type fonts in Java the same way
Is there a way to read a locked file across a network given that
Is there a way to read a module's configuration ini file? For example I
Is there any way to read a collection of extension elements with Universal Feed
Is there a way to read value for the WiX variable from a text
Is there a way to read a ByteBuffer with a BufferedReader without having to
Is there a way to read off from an [external] xml (an xml file
Is there any way to read a file using sharpsvn................
Is there any way to read a TIFF file using AIR ? Looks like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.