VLC player
-
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.
-
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.
-
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.
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.
-
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.
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?
-
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.
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.
-
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..
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.