How to convert jpeg/imges to .avi file by applying Microsoft RLE Compression?

I am doing windows based application for converting jpeg/bmp images into avi file by applying various compressions using C#.Net language. For that I have referred avifil32.dll.
Here is the code:
Avi.AVICOMPRESSOPTIONS opts = new Avi.AVICOMPRESSOPTIONS();
opts.fccType = (uint)Avi.streamtypeVIDEO;
opts.fccHandler = (UInt32)Avi.mmioFOURCC('M', 'R', 'L', 'E');//Microsoft RLE
opts.dwKeyFrameEvery = 2;
opts.dwQuality = 75; // 0 .. 100
opts.dwFlags = 0; // AVICOMRPESSF_KEYFRAMES = 4
opts.dwBytesPerSecond = 0;
opts.lpFormat = new IntPtr(0);
opts.cbFormat = 0;
opts.lpParms = new IntPtr(0);
opts.cbParms = 0;
opts.dwInterleaveEvery = 0;
//get the compressed stream
this.compressOptions = opts;
int result = Avi.AVIMakeCompressedStream(out compressedStream, aviStream, ref compressOptions, 0);
if (result != 0)
throw new Exception("Exception in AVIMakeCompressedStream: " + result.ToString());
SetFormat(compressedStream, 0);//To set format before the first frame can be written,and not to changed later.
In this code I have used Microsoft RLE Compression i.e. MRLE. But Its not working, Getting exception becuase value of result coming zero.Other compressions such as IYUV,MSVC,CVID are working properly. So why MRLE is not working. Any solution for this? I
have stucked with this problem from some days. Need a help.
Thanks in advance.

Hi Yenka,
MRLE is not support on this forum. This forum is to discuss CLR programming issue. I recommend you reopen thread on desktop development forum. Refer to
http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to convert jpeg images into video file of any ext using JMF

    I want to convert the Jpeg files into video clip with the help of JMF
    any one can help me?
    Plz reply me at [email protected]
    or [email protected]

    I'm not sure of his/her reasoning behind this, but I have yet to find a way to record video with mmapi on j2me. So with that restriction, I can see how one could make it so that it just records a lot of jpegs, and then makes it a movie.
    I would be interested finding a workaround for this too. Either if someone would explain how to record video with mmapi or how to make recorded images into a video. Thanks!

  • How to convert jpeg files into word

    How to convert jpeg files into Word

    Hi Eugene,
    I don't think you can convert an image to a Word document, but you could place the JPEG into a Word document using the Insert > Object command in Word.
    For other questions relating to Word, you will probably have more luck getting an answer if you post on the Microsoft forums (we can help if you're using Acrobat, or another Adobe product, but you'll find the Word experts on the Microsoft forums.)
    Best,
    Sara

  • How to convert jpeg to pdf for free?

    How to convert jpeg file to pdf file for free?

    You can also Download Acrobat XI Trial from the below link and Install it and use it for 30 days ....
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&loc=us

  • How can i export a 24bit avi file from photoshop for mac?

    how can i export a 24bit avi file from photoshop for mac? i have a client that specificly needs the files to be avi and in 24bit what are the settings that i need to use to export the video using photoshop on a mac?

    Hello,
      To make a 24-bit AVI file in Photoshop, go to File>Export>Render Video. Then, under File Options, choose AVI from the Quicktime Export drop-down menu. Click the Settings button. Click the Settings button in the AVI Settings window. Change Compression to None, and then choose "Millions of Colors" from the Depth drop-down under Compression.
      The Millions of Colors option is for 24-bit video (8-bit R+G+B channels, 8x3=24). Millions of Colors+ is for 32-bit video (24-bit video plus an 8-bit alpha channel).
    -Brett

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • How do I export wmv and avi files from media encoder on a mac in CC2014

    How do I export wmv and avi files from media encoder on a mac in CC2014?

    John T Smith wrote:
    As far as I know, you don't... those are Windows formats that are not available on a Mac
    Nonsense.
    Apple Compressor has been doing wmf exports for a decade. I have the Quicktime export components from Telestream and they appear as presets in Compressor. They should be available in Media Encoder or they should be importable. Adove apparently refuses to see them. Still trying to figure that out.

  • How to convert JPEG/RTP Buffer to non-RTP (RAW) format ?

    Hi everybody !
    Could somebody tell me how to convert JPEG/RTP Buffer to non-RTP (RAW) format ? Thanks !

    Hi
       The way is you have to split the data several and concatenate after that.
    Regards,
    kumar

  • How to convert database table into xml file

    Hi.
    How to convert database table into XML file in Oracle HTML DB.
    Please let me know.
    Thanks.

    This not really a specific APEX question... but I search the database forum and found this thread which I think will help
    Exporting Oracle table to XML
    If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
    http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
    Hope this helps
    Chris

  • How can i make quicktime play avi. files?

    pls..how can i make quicktime play avi. files? because i have some avi files on my ipod or data cd but i can't play them on my laptop. pls help me..
    and also, im trying to make a music video but i dont how to select different clips from a movie.

    Hello,
    You can get from Microsoft, the flip4mac free player. Since Windows Media Player for Mac is no longer supported, this is the way to go.
    http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx
    In my opinion, it is by far the best solution for playing .avi or .wmv files, because you get all the advantages of Quicktime.
    regards,
    Jeff
    PowerBook G4 15-inch Double-Layer SD (with lines) 1gb Mac OS X (10.4.6) 3G iPod, iPod Nano, 5G iPod

  • I am trying to convert a standard definition AVI file 720x576 widescreen file into a full sized Quicktime file in imovie but having cropping issues

    Hi
    I am trying to convert a standard definition AVI file 720x576 (16:9)  file into a full sized Quicktime file in imovie 11. When importing the file I get two options either import as large 960 x540 or full original size. So I choose full original size but when I drag this imported clip to my timeline the bottom of the clip has been cut off? I tried to export it as a quicktime file thinking that perhaps it might resize to the original size but of course that was wishful thinking
    Any ideas appreciated?

    Hi No I have just checked its definitely a PAL 16;9 project. I am also slightly confused because when importing the video into the project it has squashed it into 4:3 format even though my file is 16:9?

  • Anyone know how to convert a 3D sphere .STL file into a .igs file?

    Anyone know how to convert a 3D sphere .STL file into a .igs file?

    And for what? Why? This would be kinda atrocious and awful, but weird things happen...
    Mylenium

  • How to convert jpeg to AI files

    I need to convert jpeg to AI files...

    And why do you need to do this? JPG images are used by every operating system and every image editing cataloging program made. Even Adobe Illustrator. Just put the JPG images in an illustrator project.
    I suggest you brush up on how to use Illustrator over at the Adobe website.

  • How to convert JPEG Files into Streams for Darwin Streaming Server?

    Hi!
    Is there any possibility to convert JPEG Files locatet in a Folder into a Videostream for the Darwin Streaming Server, like Quicktime Broadcaster does with my iSight Video??? I know I can convert JPEGs into Movies using QuickTime Pro, but that is not exactly what I am seraching for: I have a folder, where some kind of Webcam writes about 5 JPEG pictures per second. Now I would like to have these pictures in converted into a videostream in realtime. QuickTime Broadcaster would be the weapon of choice if it would accept JPEG Files as input...
    Is there any posibility to solve this problem??
    CU Jan

    Hello Karthik,
    I just tried to solve my problem with your suggestions, unfortunately, my JSP channel still doesn't work :(
    The portal server keeps reporting "Server Error..." when I tried to add query at the end of the href.
    Do you still have any other suggestions?
    Thank you

  • How to Export a HIGH QUALITY .avi file.  help PLEASE

    Hi, I am trying to export my movie to an avi file, so I can upload it on youtube. I've done some searches online, but have not found any answers that work. I keep getting very low image quality, no matter what settings I choose. I've gone into quicktime preferences and saved the file in "high quality" and that doesn't work. How can I export a movie file with the same image quality as the original project? I'm using Explicit to split the file into two parts, but it can only handle .avi files. Please help!
    zaike

    Ah, I just converted it with the wrong compressor. I used DV/DVCPRO-NTSC prog. scan and it looks beautiful.

Maybe you are looking for

  • APP Error same problem last 4 days..

    Hi gurus, Thanks for your time, i done all settings, i check all settings twice but When i run APP it showing some problem, iam sending log overview for your review. Due date determination additional log---- >>Document 400007 line item 001 visa MYR 3

  • Windows XP and Photoshop Elements

    I want to re-download Photoshop Elements due to a computer hard drive crash.  My computer runs XP.  I see that he versions available require Windows 7 min.  Is there any way that I can use XP.  I cannot upgrade to Windows 7?   Can I get the older ver

  • White lines appear on OAM placed in InDesign

    Hello. This is my first post in the forums. I've just placed my first OAM file into an InDesign folio. The initial/downstage image views great in both Edge Animate and InDesign but once the folio is uploaded and viewed on a tablet device horizontal w

  • Cannot do wifi sync after update IOS 6 using windows vista pc with itunes 10.7

    I cannot do the wifi sync,I am using IPAD 3 with IOS 6.I heard people said to do synchronous wireless.It would work I using Windows Vista,then I using Itunes 10.7.Somebody can help me  to solve these problem or give me feedback to solve these problem

  • Does the 8540 support VLAN Trunking

    I would like to VLAN trunk four VLANs(8540 bridge-groups) from an 8540 switch router to a Cat 5000. I have not seen in Cisco's documentation anything that indicates that the 8540 supports VLAN trunking.