read an image of an mpeg video

I have need to progammatically read a frame of an mpeg video.

I already tried to make use of ffmpeg and convert the sequence video in a png (or other), but now I would develop a more powerful solution.

Do you have anyone try or need something similar?

Thank you!

Thanks for the reply Scott.

I solved my problem!

After several tries, I used an OpenCV dll: opencv_highgui240.dll (version 2.4.0).

Since I had some problems with the dll included in the official OpenCV package, I used those included in the package of Emgu http://www.emgu.com/wiki/index.php/Main_Page

This dll is not static, so I had to take care on the directory of current work of Windows (see here https://decibel.ni.com/content/docs/DOC-7192 ).

Now I am able to extract an MPEG2 video images and put them in an IMAQ RGB image (640 x 480 images I need 10 ms for each image).

Tags: NI Software

Similar Questions

  • Windows Media Player 12: Sound but no video DVD with files mpeg video

    Windows Media Player 12 on Windows 7: when I play DVD and mpeg video files, I hear the sound but the WMP window is black and does not show the video. WMV and mov files play as expected in WMP. Can read mpeg files in irfanview.

    Thanks in advance for any help!

    Reinstall WMP: -.

    Characteristics and control open Panel\Programs\Programs

    Click on "Turn Windows features on or off".

    Expand "Multimedia functions", uncheck 'Windows Media Player '. Click 'Yes' to continue and click OK to exit. Turn it back on.

    [Close WMP, Windows Media Center will be turned to the wide, you will need to reconfigure the settings later]

    Open "Turn Windows features on or off" again. Activate the 'Windows Media Player' and 'Windows Media Center' features. Turn it back on.

    If necessary: -.

    Download and install ffdshow and check again the question

    http://sourceforge.NET/projects/ffdshow/

    S.Sengupta Media Center MVP

  • is it possible to put an image directly on a video sprite

    Hi all

    I haven't used Director since MX - it is good to be back.

    A couple of the general question, please:

    • With Repeater indicator Dir12 is now possible to put an image directly on a video sprite reproducing / playing in QT?
    • Is it possible to put videos on top of the other?
    • If possible, is there a significant performance impact on video?
    • QuickTime is always the first choice for HD video playback?

    If I remember correctly all that was possible before, but only if you turned off "directly to the step" option... and used to result in ridiculously bad reading.

    Video capabilities (or lack of it) has been the reason why I've migrated to Flash in the first place. It would be nice to know just uped Dir his game since then.

    Thanks in advance

    • With Repeater indicator Dir12 is now possible to put an image directly on a video sprite reproducing / playing in QT?

    D12 brings nothing new. You can use a 1-bit mask to drill a hole in a QT/sprite member and display images through it, but it's that QT. You can also use MIAWs chromeless window to display the video/images.

    • Is it possible to put videos on top of the other?

    Yet once again, nothing has changed - see options above.

    • If possible, is there a significant performance impact on video?

    Not if you use MIAWs for overlay video/images. Keep layering can become problematic however. Masks come without a drop in performance, although...

    • QuickTime is always the first choice for HD video playback?

    Absolutely not. Video Flash or MP4 is now the best option. No need of a player install, good performance...

  • How do I use image capture to transfer videos from iPhone 5 on iMac

    How to use Image Capture to transfer videos from iPhone 5 on IMac

    Connect the phone to your Mac using the cable and launch the Image Capture. You should see the phone on the left under devices. Click on the phone and should allow you to import the videos.

  • Create a DLL to read an Image using OpenCV

    Hi all

    I am trying to create a DLL to perform image processing using OpenCV. In the first place, so I try to create a DLL that can read an image and display it. But I encountered a problem when I call this DLL in LabVIEW.

    The error in LabVIEW that says: "error 1097 appeared to call library function node in the .vi DLL Image playback (Play).

    Possible reasons:

    LabVIEW: An exception occurred in the external code that is called by a node call library feature. The exception may have damaged the memory of LabVIEW. Save all work to a new location and restart LabVIEW. »

    Here are the steps I followed:

    1. download OpenCV2.4.9 and extract the files. Make changes appropriate to the Environment Variables to include OpenCV.

    2 start a new 2010 Visual Studio from Microsoft Project to create a DLL.

    3. Add a property sheet in the property manager to include the OpenCV library.

    4 change the DLL of playback picture .cpp code (Play) as it is in the attachment.

    5 compile to create the DLL of playback picture .dll (Play) file.

    6 create a LabVIEW VI to call the DLL.

    Attached are the related files: 1 .cpp reading Image DLL (game) 2. Read Image .dll DLL (reading) 3. Read Image .vi DLL (game)

    If someone good to help me with this? I guess it might be the problem with the .cpp code DLL Image playback (Play).

    Thank you very much.

    1 joint code .cpp DLL Image playback (Play):

    include opencv necessary image processing libraries

    #include "stdafx.h".
    #include "opencv2/highgui/highgui.hpp".
    #include "opencv2/imgproc/imgproc.hpp".
    #include
    #include

    using namespace std;
    use of names cv;

    Function declaration
    extern "C" {}
    __declspec(dllexport) int main (int argc, char * argv);
    }

    Global variables
    Matt IMG;

    __declspec(dllexport) int main (int argc, char * argv)
    {
    Load the image
    IMG = imread (argv [1], 1);
    return 0;
    }

    Hello

    If it helps, here are some examples on Labview/OpenCV image processing:

    https://decibel.NI.com/content/blogs/kl3m3n

    Best regards

    K

  • Sound and image's market during video playback by electronic mail.

    Original title: videos sent in emails

    Sound and image's market during video playback by electronic mail. (IE, trailer attached, you tube)

    Hello
     

    1. How do you access the email? Using any email or via an Internet browser client?
    2. If you are using Internet explorer, which version is installed on your computer?
     
     
    Method 1.
    Given that most online videos require Adobe flash to work I suggest you install Adobe Flash player in Internet Explorer.

    I recommend you update Adobe flash player from the website below:
    http://get.Adobe.com/flashplayer/

     
    Method 2.
    a. If the problem persists, you can optimize Internet Explorer.
    See the link below for more information.
    How to optimize Internet Explorer?
    http://support.Microsoft.com/kb/936213
     
    b. If nothing works to solve the issue try reset Internet Explorer.
    How to reset Internet explorer:
    http://support.Microsoft.com/kb/923737
    Note: After resetting Internet explorer you will need to install Java runtime library and Adobe flash again.
    WARNING:
    Please note that reset the settings of Internet Explorer running resets all of the settings defined by the user, including those established by the installed extensions, toolbars and other add-ons for IE by default. This includes all the security, privacy and settings area. Also this will erase browsing history, delete all temporary Internet, cookies, form data files and especially all the passwords.
     
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Help: How do I allow the creation of apply random effect of images to make their video for easy and quick editing of a video?

    Help: How can I allow Prime Minister apply random effect of images to make their video for easier and faster for video editing?

    There is no automatic way to do this.  But for easy slide show creation, there is much simpler than a NLE professional level tools.

  • How can I change the default duration of a still image added to a video editing?

    How can I change the default duration of a still image added to a video editing? I think that he is currently 5 seconds.

    Hi Cheyenne,

    I think that you go to After Effects. I've never found a preference for setting the default duration for each still that you import.

  • Insert alternative background image if full-screen video does not play in muse

    Hi people,

    I use a video widget fullscreen in Muse. If the video does not appear, I want to show an image.

    Video does not play on the iPad - others do but not the full-screen one.

    So is their option another code that is see the image if the video does not play?

    Something maybe I could stick in the header that is so iPad display image or if the video plays that image?

    Thanks in advance.

    Ciao

    Cathy

    It would be difficult, you need to customize it.

    An idea can be seen here:

    http://StackOverflow.com/questions/5920830/HTML5-video-redisplay-poster-image-onmouseout

    Thank you

    Sanjit

  • reading the images and icons from jar file

    Hello
    I applied the tutorial in the corner of the adf
    [read the image of the jar file | http://www.oracle.com/technetwork/developer-tools/adf/learnmore/86-images-from-jar-427953.pdf]
    and deploy it in logical built-in web server
    my version 11.1.2.3 Jdeveloper

    but the images did not appear
    For example: when I drag the button and try to specify icon for this button no image for the library referance

    How can I fix this problem or missing steps in the application of the link above?
    Thank you

    I just ran this tutorial recently, took a few tries but everything worked according to the instructions in the article. You should check your steps on. set install to the top of the jar, add it to the project lib reference and use "/ adf/images / ' as the value of the icon. That should be all you need to do at the moment of the conception of the image displayed when running, you need to install the pot to your embedded wls and also change your weblogic - application.Xml.

  • read an image

    I'm reading a picture (with the goal of end of display on a web page), but my script hangs when it tries to read the image.

    var f = File("C:/image.jpg");
    f.encoding = "BINARY";
    f.open("r");
    var buffer = f.read();
    f.close();
    

    The image is 200 x 200 and 3KB. I tried an image that was still weaker, but still no luck. Does anyone else have this problem? Thank you!

    It is a common problem when running the code from ExtendScript Toolkit and working with binary files. I find that CS3 ESTK works better than CS4/5 or 6. The code should run OK to Bridge or Photoshop.

    When I work with binary, I have a copy in Notepad and open the Task Manager so that I can close ESTK when it freezes.

    I know that the brand has the same problem using a Mac so this is something that is common to both SBS

  • Help! Shooting auto (video) w / webcam. Reading reverse image/text. How to fix with first Pro CC?

    I filmed myself with webcam on my computer so everything is reversed. Example, the cup of coffee with the name is back, the business card that I show the camera, text, letters, words, all reverse, backward. I filmed it all the way and later learned about the setting of film to the appropriate way to avoid this problem. Is it possible that Adobe Premiere Pro CC can fix this? This difficulty? How? Thanks, JR

    Try the Outlook's FX 3D and flop of the image.

  • Burn VIDEO_TS or DMG to DVD image readable on DVD-Video players?

    I burned a movie to a DVD using toast. Now I want someone sends a file so that they can burn their own DVDs. I moved the DVD files on my desk. I burned them (a VIDEO_TS and AUDIO_TS folder inside) directly on a DVD, but it's unplayable. I used disk utility used to create an image ("read-only" Format of Image with 'none' encryption). I burned this .dmg directly on a DVD, but it's unplayable.

    Is it possible, or is it the other person must have something like Toast to burn their own video DVDs?

    Open the toast and click the video tab. In the drop-down list, choose the VIDEO_TS folder (you need not the audio file). Drag and drop the VIDEO_TS folder on your desktop in the left pane blank. Burn the disc.

  • Windows Media Player does not play .avi or .mpeg video files?

    I downloaded video files to the video format .avi, and then try to play them with Windows Media Player. He plays the sound for the video file, but no video. I try to convert the file to the format .mpeg, and this time that Windows Media Player says that it could not acquire a codec this file with, whatever saying he acquired a codec at the bottom of the screen. So I download the codec xvid on the internet and install it, but even in this case, the files are still playing. How can I fix it?

    I downloaded video files to the video format .avi, and then try to play them with Windows Media Player. He plays the sound for the video file, but no video. I try to convert the file to the format .mpeg, and this time that Windows Media Player says that it could not acquire a codec this file with, whatever saying he acquired a codec at the bottom of the screen. So I download the codec xvid on the internet and install it, but even in this case, the files are still playing. How can I fix it?

    ================================
    The free VLC Media Player will play about
    No matter what...

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player
    http://www.filehippo.com/download_vlc/
    (works on XP/Vista/7)

    If you prefer to use Windows Media Player... maybe
    GSpot is worth a try:

    The following free utility to identify the codec you
    need to read an AVI file:

    Download GSpot
    http://www.free-codecs.com/download/GSpot.htm
    (left-click the text: "Download GSpot")
    (on the next screen...
    left click: 'Download [GSpot 2.70]')

    You don't have to install it... just unzip the file and
    GSpot.exe left click to launch.

    GSpot Super quick start
    http://www.headbands.com/GSpot/v26x/Quick_Start.html

    If all else fails... it may be worth trying to download
    and install 'one' of the following codec packs:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    * Proceed at your own risk *.

    (1) Windows 7 Codec Pack
    http://download.CNET.com/Windows-7-Codec-Pack/3000-13632_4-10965840.html
    (2000/XP/2003/Vista/Server 2008 / 7)

    (2) K-Lite Codec Pack (full)
    http://www.filehippo.com/download_klite_codec_pack/
    (Windows 2000 / XP / 2003 / Vista / Windows7 / XP64 / Vista64 / Windows7 64)

    (3) info on CCCP (combined Community Codec Pack)
    http://www.CCCP-project.NET/wiki/index.php?title=Main_Page
    (XP SP1 or more, Vista, Windows 7 - 32 bit - 64 bit)

    And you may need to update your video driver.

    Good luck...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How can I get the videos and stills to appear in the order early in the timeline, and not all images so all the videos. I chose the oldest Date

    Hi I have a mix of photos and video clips loaded into my Mac Adobe organizer of the external drive, where they show (on PC) in the correct order as, still images and videos mixed. After loading in the Organizer, and chronology in first 12 items, I select more "old first". But in the timeline, stills appear first in the correct order, then after that video clips, in the correct order in themselves. Is it possible to actually load everything in the right order, IE pictures and videos mixed. Thanks Chris

    Chris

    Thanks for the follow-up.

    Be strictly one of the Windows elements, I can not give you a 100% guarantee for the use of the organizing elements Mac Albums to get your first items editor Timeline ordering media, but what I've read, the chances are good for working on the item Organizer organizing Mac as well as windows.

    We will review your progress as your schedule allows.

    Best wishes

    RTA

Maybe you are looking for

  • iPod dropped in the water aid

    The first time I dropped my phone in water, so there nothing wrong with it until the next morning. When I took on the port of loading there was something black on the end of the lightning cable and the home button would not work. I decided to use the

  • iTunes game - iCloud status - 'Apple Music'

    Hey guys,. You are looking for some kind of fix to my iTunes library. I recently decided to try downloading my entire library on the cloud using iTunes game (decided against the free Google game option as I want it to be integrated into all my iOS de

  • Read wma file music by AO card usb-6251

    Hey everybody, Can I play music wma file throught analog output or usb 6251. I have an error that my program "can not recognize the sound format. I am user of the version of Labview 8.5. If someone knew and can help me, please. Marek

  • Not able to connect Sony HandyCam via USB

    I have a Sony HandyCam DCR-DVD905E, which was acquired a few years back.  I've never had a problem plug it into my laptop Vista 32 via a USB cable.  However, recently, my computer stopped recognizing the camcorder and tell me that the driver installa

  • Network HP 4300 card is dead

    Suddenly, my Laserjet 4300 printer in network works today. Luckily I also have network Laserjet 9040 printer as a backup. I have serched the HP website, but couldn't find a place to order a replacement of the Commission on the network. This printer i