Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VLC player

VLC player

Scheduled Pinned Locked Moved C / C++ / MFC
helpdockertutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gmallax
    wrote on last edited by
    #1

    Hi all, I am trying to write MJPEG frames into AVI container. When i try to play the .avi file in VLC player,It displays the following error message: No suitable decoder module: VLC does not support the audio or video format "����". Unfortunately there is no way for you to fix this. How to solve this? Pls help me.

    C M 2 Replies Last reply
    0
    • G gmallax

      Hi all, I am trying to write MJPEG frames into AVI container. When i try to play the .avi file in VLC player,It displays the following error message: No suitable decoder module: VLC does not support the audio or video format "����". Unfortunately there is no way for you to fix this. How to solve this? Pls help me.

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      check whether the decoder needed to decode the frames you wrote is installed on your system. use microsoft GraphEdit or similar kind of tools to check it..

      G 1 Reply Last reply
      0
      • G gmallax

        Hi all, I am trying to write MJPEG frames into AVI container. When i try to play the .avi file in VLC player,It displays the following error message: No suitable decoder module: VLC does not support the audio or video format "����". Unfortunately there is no way for you to fix this. How to solve this? Pls help me.

        M Offline
        M Offline
        mav octaval
        wrote on last edited by
        #3

        Are you sure you are writing a correct AVI file? Looks like VLC does not find the fourcc code for your codec (it should be something like MJPG). I am sure that you have a MJPEG codec in your system, but VLC cannot identify your AVI file as coded in MJPG.

        -- Si dos montan un caballo, uno debe ir detrás.

        G 2 Replies Last reply
        0
        • M mav octaval

          Are you sure you are writing a correct AVI file? Looks like VLC does not find the fourcc code for your codec (it should be something like MJPG). I am sure that you have a MJPEG codec in your system, but VLC cannot identify your AVI file as coded in MJPG.

          -- Si dos montan un caballo, uno debe ir detrás.

          G Offline
          G Offline
          gmallax
          wrote on last edited by
          #4

          May be.I am using the fourcc code as mmioFOURCC('M', 'J', 'P', 'G'). How can we find whether we wrote a correct AVI file or not? .AVI file size is 10 mb . Also,AVIWriteStream function works fine. So,I assumed that MJPEG frames were written into AVI container. How to solve this?

          1 Reply Last reply
          0
          • M mav octaval

            Are you sure you are writing a correct AVI file? Looks like VLC does not find the fourcc code for your codec (it should be something like MJPG). I am sure that you have a MJPEG codec in your system, but VLC cannot identify your AVI file as coded in MJPG.

            -- Si dos montan un caballo, uno debe ir detrás.

            G Offline
            G Offline
            gmallax
            wrote on last edited by
            #5

            hi could u explain this? I have implemented as following: UINT_PTR test = (UINT_PTR)processedJpegData; //This is the data to be written into AVI LPVOID p = reinterpret_cast<LPVOID>(test); if(!g_bCreated) { AVISTREAMINFO streamInfo; memset(&streamInfo, 0, sizeof(streamInfo)); streamInfo.fccType = streamtypeVIDEO; streamInfo.fccHandler = mmioFOURCC('M', 'J', 'P', 'G'); //streamInfo.fccHandler = mmioFOURCC('X', 'V', 'I', 'D'); streamInfo.dwScale = 1001; streamInfo.dwRate = 30000; streamInfo.dwSampleSize = 0; streamInfo.dwSuggestedBufferSize = 0 ; SetRect(&streamInfo.rcFrame, 0, 0,0,0);/* 720, 480,frameInfo.m_width, frameInfo.m_height*/ HRESULT hrCreate = AVIFileCreateStream(m_pAVIFile, &m_pVideoStream, &streamInfo); if (hrCreate!=AVIERR_OK) return ; BITMAPINFOHEADER *bi = new BITMAPINFOHEADER(); bi->biSize = sizeof(BITMAPINFOHEADER); bi->biWidth = 720; bi->biHeight = 480; bi->biPlanes = 1; bi->biBitCount = 16; bi->biCompression = mmioFOURCC('M', 'J', 'P', 'G'); // 0 = BI_RGB bi->biSizeImage = size; bi->biXPelsPerMeter= 0; bi->biYPelsPerMeter= 0; bi->biClrUsed = 0; bi->biClrImportant = 0; HRESULT hrSetformat = AVIStreamSetFormat(m_pVideoStream, 0,&bi, 40); if(hrSetformat != 0) return; g_nIndex = AVIStreamLength(m_pVideoStream); g_bCreated=true; } HRESULT hrStreamWrite = AVIStreamWrite(m_pVideoStream, g_nIndex++, 1, p,size, AVIIF_KEYFRAME, 0, 0); if (hrStreamWrite!=AVIERR_OK) return ; This executes successfully and creates the AVI file also.But the problem is in playing that AVI file.

            1 Reply Last reply
            0
            • C Cool_Dev

              check whether the decoder needed to decode the frames you wrote is installed on your system. use microsoft GraphEdit or similar kind of tools to check it..

              G Offline
              G Offline
              gmallax
              wrote on last edited by
              #6

              hi I have implemented as following: UINT_PTR test = (UINT_PTR)processedJpegData; //This is the data to be written into AVI LPVOID p = reinterpret_cast<LPVOID>(test); if(!g_bCreated) { AVISTREAMINFO streamInfo; memset(&streamInfo, 0, sizeof(streamInfo)); streamInfo.fccType = streamtypeVIDEO; streamInfo.fccHandler = mmioFOURCC('M', 'J', 'P', 'G'); //streamInfo.fccHandler = mmioFOURCC('X', 'V', 'I', 'D'); streamInfo.dwScale = 1001; streamInfo.dwRate = 30000; streamInfo.dwSampleSize = 0; streamInfo.dwSuggestedBufferSize = 0 ; SetRect(&streamInfo.rcFrame, 0, 0,0,0);/* 720, 480,frameInfo.m_width, frameInfo.m_height*/ HRESULT hrCreate = AVIFileCreateStream(m_pAVIFile, &m_pVideoStream, &streamInfo); if (hrCreate!=AVIERR_OK) return ; BITMAPINFOHEADER *bi = new BITMAPINFOHEADER(); bi->biSize = sizeof(BITMAPINFOHEADER); bi->biWidth = 720; bi->biHeight = 480; bi->biPlanes = 1; bi->biBitCount = 16; bi->biCompression = mmioFOURCC('M', 'J', 'P', 'G'); // 0 = BI_RGB bi->biSizeImage = size; bi->biXPelsPerMeter= 0; bi->biYPelsPerMeter= 0; bi->biClrUsed = 0; bi->biClrImportant = 0; HRESULT hrSetformat = AVIStreamSetFormat(m_pVideoStream, 0,&bi, 40); if(hrSetformat != 0) return; g_nIndex = AVIStreamLength(m_pVideoStream); g_bCreated=true; } HRESULT hrStreamWrite = AVIStreamWrite(m_pVideoStream, g_nIndex++, 1, p,size, AVIIF_KEYFRAME, 0, 0); if (hrStreamWrite!=AVIERR_OK) return ; This executes successfully and creates the AVI file also.But the problem is in playing that AVI file.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups