Read H.264 (.mp4) into labview. Anyone?

Hi all... So i am really tired of uncompresssing .mp4 videos with third part tools so that i can read them in using ni visions avi functions.  Has anyone figured out a way to read mp4 files in directly to labview?  I saw this DirectShow .NET LabVIEW SDK and thought it might work, but have not started playing with it yet.  Anyone have any solutions?  Thanks so much,
Dave

Hello Dave, 
Unfortunately there is no current way of reading in other formats such as mp4 files directly into LabVIEW. They will have to be uncompressed in order to be compatible with the AVI Functions. 
It is expected that upon the next version of LabVIEW and NI Vision, that they might start adding other video formats to be compatible. However, this has not yet been confirmed.
But I want to encourage you to voice your opinions concerning the need for this by posting it to the NI Idea Exchange.
R&D regularly checks this discussion forum to get feedback about NI products and particular features that our customers are requesting. The more posts about a particular topic, the greater the chance R/D will address them for a future release. 
Huntington W
National Instruments
Applications Engineer
***Don't forget to give Kudos and Accepted as Solution where it is deserved***

Similar Messages

  • How can I read the trace data into LabVIEW for E5071B

    HI 
    I am setting up the measurement using vector network analyzer (VNA) E5071B controlled by NI 488.2. How can I read the trace data into LabVIEW and display on the graph? If anyone having an idea or know well about this process please give me the suggestion, I will much appreciate it.
    Many Thanks

    You want to start with the driver
     In case you do not know it, you can do the driver search in LabVIEW from Tools>Instrumentation>Find Instrument Drivers. You might also want to bookmark the Instrument Driver Network for information on what a driver is and how to use it.

  • How do I divide a long h.264 .mp4 into smaller movies?

    I have 2.5 hrs of .mp4 movie in h.264 format that I would like to divide into 1/2 hr units.
    1. I find it very difficult to get my crops accurate in QT.
    2. When I save it it saves a .mov, just changing the file type to .mp4 in Finder renders it unreadable
    3. Exporting to mpeg4, which I presume will create an .mp4 file, takes forever
    There has to be a better way surely.
    Can anyone help? Much appreciated.

    Use the Movie Inspector window and some keyboard shortcuts to get accurate "cuts". The left/right arrow keys move one frame at a time. Hold down the Shift key as you tap the arrow keys to expand or reduce your selection. Letter i and o keys set in and out points to make a selection.
    Once you have your selection use Command-C (copy), open a new (empty) Player window and Command-V (paste). Save As to make a new file.
    Switch back to your longer file. If you no longer need your current selection simply hit the delete key. Repeat the steps above until your made all your "parts".
    When you get to your final selection and just Save As to make a new file. Close the older window and make sure not to save "changes" when you close the window. This will leave your original file untouched by these edits.
    These new files will be identical to your source but will be in a .mov container. No need to edit the file extension or export again.

  • Reading Large Matlab files into LabVIEW

    Hi All,
    I am using the 'Open Data Storage [MATLAB] block to read data from a mat file into MATLAB. The data is very large (in the order of millions). When I try to run my vi which is relatively simple to read in and manipulate the data, my LabVIEW said it does not have enough memory. Is there any way to around this problem without physically increasing computer memory.
    Thanks in advance for any help and assistance.
    Chris

    Hi Chris,
    Did the 'not enough memory' happen on 'Open Data Storage' or 'Read Data' ?
    If it happened on the 'Read Data', you might want to try specifying 'index/count' inputs of the 'Read Data' to read channel values chunk by chunk.
    Best Regards,
    Mavis

  • How to read H.264 video by Labview?

    My customer has High definition camera with LAN-100 out of H.264 compressed video. The video that transmitted by the camera is a static pictures.
    I want that my Labview program will take pictures transmitted by the camera and analyze them. It should not be done at real time. What is a best way to achieve picture frames from H.264 compressed video?  

    I would suggest looking at the IMAQdx library. You can determine if the camera is compatible by looking here: http://digital.ni.com/public.nsf/allkb/4331B4AA3AE​95233862574C200539A2F

  • Is it possible to directly read a barcode into Labview?

    I  have a barcode reader that reads codes into Notepad as expected, but I'm having no luck reading a code into Labview 8.6. Is it possible to read a code directly into Labview using a bar code reader. The reader I'm using is a Symbol DS6708.   Thank you.
    Solved!
    Go to Solution.

    A bit off topic, and I believe it's been discussed int he Feedback board before.
    But this marking of the wrong post seems to happen very often.  Why do the users  have a tendency to mark their thank you message as the solution rather than the actual helpful message?  Is it a difficult concept?  Something about the wording of solution or the layout of the messages that leads them to it?
    I would go so far as to suggest that users are unable to mark their own messages as the solution.  While it can be perfectly legitimate and there are instances where people solve their own problem, it seems to happen very rarely compared to how often people are wrongly marking their own message.

  • Reading Waveform (.hws) files from Analog Waveform Editor into LabVIEW causes read errors

    Hi Gang,
    In my application, I want to create files Using the Analog Waveform Editor and then, through LavVIEW, play them out through an D/A.
    I've not been able to read the .hws file into LV.  I've tried two methods:
    Using the Read Waveform VI in the Waveform palette, yields Error -1821.
    I looked in the knowledgebase and found the article "Using the Analog Waveform Editor and HWS Files with Multifunction DAQ Devices"  That recommended using the HWS VIs that are a part of the FGEN driver.  I tried that and get an Error -21515.
    The file I want to read is quite small, only 20 samples.  Is there some limitation on .hws files or the Waveform Editor I'm not aware of?
    I've attached the file if anyone is willing to experiment. I had to change the extension from .hws to .txt to be able to attach it.
    All responses will be appreciated.
    Thanks,
    Roger
    Solved!
    Go to Solution.
    Attachments:
    Havesine.TXT ‏108 KB

    Interesting. I tried to look at your file with the low level read .hws file vi's and I too got error -21515. So I tried the NI-HWS express load.vi and it looks like it worked. I'm not familiar with the analog waveform editor...does it store using the dynamic data type? Oh I converted the dynamic data to 1d array of waveforms using the convert from dynamic data.vi.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Reading controller data into LabVIEW through serial connections to controllers?

    I'd like to read data from environmental chamber controllers (System Plus) into LabVIEW through RS232 connections.  Has anyone done something similar?
    I see interfacing with the serial controllers as the biggest obstacle and although not directly related to LabVIEW programming, I'm hoping someone here can give me some advice or resources on how best to do so now days.
    My first thought is to write a program with VB or C++ to act as a terminal and write the data to a text file for LabVIEW to poll.  Aside from using Telix decades ago to work with BBSes, my only other serial experience consists of interfacing with a Kiethly multimeter using a C++ program. 
    I would rather not use multiple PCs but I have never worked with more than one serial port on a computer before in the past.  Perhaps LabVIEW itself already provides for multiple serial card communications (wouldn't that be perfect)?
    Any info would be great.
    Regards,
    Dave

    Thanks Dennis.
    I spoke with Envirotronics and they do not provide the driver for the System Plus controller any longer since there were issues with changing hardware and software.  Their IT department may be able to put something together for me.
    Using USB->RS232 connections would be nice given the abundant number of USB ports available on modern PCs.
    Without a driver I see parsing the serial text as a challenge in LabVIEW.  I know how to approach this with a traditional programming language but are there any examples around here of how this is done with LV (most recent version is fine)?
    Dave

  • Help with reading information coming from a software into LabVIEW through Serial port

    Hi,
    I am new to LabVIEW and also an amateur in using RS232 for communication. I have this software that has these icons like speed increase/decrease, elevation up/down, start/stop. Now, when I click these buttons on the software, they perform the appropriate functions. For example, if I press start button, the signal must go through a serial COM port into LabVIEW to start the machine. How do I do that? How do I find what format the code word is when I press a button on the software? And how to decode the information to read whether the button pushed is start etc...? Any help would be appreciated.

    I may not be perfect, but I'm all I got!

    That information would be in the programming manual for the device you're controlling. Unless you have a device that has no documentation or you cannot get the documentation that's the first place you should look. If you cannot get the documentation at all then you've got some reverse-engineering to do. To do this you will either need a serial port sniffer (a hardware device), or you can try to use a software-based port capturing program. On Windows PortMon is the most prevalent. This will show you how the port was configured (baud rate, stop bits, etc). Warning: the information is technical.
    As far as how to get it running in LabVIEW, you should take a look at the serial port communication examples that ship with LabVIEW. The most problems occur in figuring out how to (a) terminate a write command, and (b) determining when to stop reading. For (a) this is typically done by appending a carriage return or linefeed to the command. This is device dependent. For (b) this is usually done by the byte stream ending with a character like a linefeed. Again, this is device-dependent. 
    You may also want to peruse this KB article: Serial Instrument Control Tutorial. There are also lots of tutorial on the internet for basic tutorials on serial port communication.

  • Read 16 bit binary image into LabVIEW, convert to TIFF and display

    Hello,
    I have what is probably a simple problem - I have RAW images (1536 x 1944) saved in binary files consisting of unsigned 16 bit integers that I need to read into LabVIEW and be able to view on the front panel (so presumably convert to TIFF or something like that).  
    This is not information that was written using LabVIEW - it was actually written using the fwrite command in C++ if that is any help, and has no header information.
    I found this example VI:
    http://forums.ni.com/t5/LabVIEW/read-the-raw-image-file/td-p/505871/page/2
    The picture of the final VI solution that is posted at that link - it looked promising, but the flatten pixmap function appears to only take in 8 or 24 bit inputs, not 16 bit inputs, and I was unsure it if was possible to configure it for 16.  Is it possible to use this same structure to read in my binary files as well?  If so, what changes need to be made?  Otherwise do I need a different function?  I am very new to image processing in LabVIEW.  
    Thank You.

    Hello,
    The flatten pixmap function does not appear to be able to take in 16 bit inputs and I cannot find a function that flattens a 16 bit pixmap.  Is there any way you can convert your binary file into that of 8 or 24 bits?  
    Also, I don't know if this other forum thread may help or give context to the subject.
    http://forums.ni.com/t5/LabVIEW/Can-a-16-bit-image-be-displayed-in-a-picture-control/td-p/33347 
    Cameron T
    Applications Engineer
    National Instruments

  • I want to read a Matlab MAT file into labview.

    I do not have Matlab.  I have a series of *.mat files that are created by another program that I want to read into LabVIEW.  The *.mat files should contain a very long 2 dimensional array of complex numbers, with only 2 columns.  I am hoping that the *.mat format is straight forward.  I need to read this into a LabVIEW array to manipulate it.
    Has this been done?  I've found several routines that allow you to save data from LabVIEW into a *.mat file so that Matlab can read it, but I have not seen anything that goes in my direction.  Any help is appreciated.
    Mike

    Oh, yeah, that certainly makes a big difference.
    You're even luckier that I was still bored, so I whipped something together.
    See attached.
    Couple of things:
    (1) I couldn't test it for all data types so the "Parse Data" VI may need to be tweaked for some of the data types.
    (2) Your file contained multiple variables and the one matrix of complex values was a 1D array so you may need to insert a "Transpose 2D Array" function where the bundle function is for your 2D array.
    (3) A couple of the variables were character arrays but Matlab stores the individual characters as floating point numbers between 0 and 255 representing ASCII-encoded characters. These are the "XUnit" and "YUnit" arrays.
    For your reference, the MAT file format is at http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf
    Oh, I think I may have left breakpoints in when I saved the VI. Sorry about that. You should remove them when you run the VI so they don't become annoying.
    Message Edited by smercurio_fc on 02-09-2006 05:07 PM
    Attachments:
    Read Level 4 MAT File.zip ‏69 KB

  • Can Pr Elements read H.264/MPEG-4 AVC ?

    Premiere Elements 7 has been fine for my limited purposes until now, but I've recently started using wildlife cameras, which record video in the H.264/MPEG-4 AVC codec in an AVI wrapper. The resulting videos play perfectly well on Windows Media Player, and can be edited by Windows Movie Maker, but Premiere Elements 7 won't read them. 
    Is there a way I can persuade PrE7 to read this sort of video? If that's not an option, does anyone know if PrE12 can read them?

    Blacknest
    Thank you for the opportunity to take a look at your .avi files which both appear to have H.264 video compression and MPEG Audio (probably MP2) 2 channel. That video presented an atypical one for Premiere Elements in its 1280 x 720 @ 18.000 progressive frames per second. MediaInfo read the video compression as H.264 rather than the avc1 which it typically uses to represent AVCHD (MPEG2 AVC/H.264). We could dig deeper into any subtle differences here in the naming and other for H.264 versus AVCHD.  But the best course of action comes from the great contribution of John T. Smith and your follow up on that to get your video into Premiere Elements.
    I looked at changing the file extension from .avi to the types that I mentioned previously, including .mp4. All would not import into Premiere Elements. Premiere Elements did accept the .avi file, but only the audio was represented. I was able to convert your H.264.avi into H.264.mp4 using VLC Player converter component. That H.264.mp4 did import into Premiere Elements, but, although there was a video component represented, its thumbnail was distorted.
    You did a great job with the Dropbox download setup.
    Please update us on your progress with the Premiere Elements editing and export of your H.264.mp4 video now that you have gotten into a format that Premiere Elements will accept. From what you wrote, the video compression is supposed to be the same as the original. It is just the file extension that has been changed. Is that correct?
    Continued success and congratulations to you and John T. Smith on a job well done.
    ATR

  • Conversion of Vector BLF format into LabView

    Hello,
    I am trying to import Vector Cantech BLF logging files into LabView.  Does anyone know of a converter or process to do such a thing?
    Thanks!

    Good day!
    National Instruments offer a series of Data Plugins to extend the data file acces capabilities of NI products such as LabVIEW, DIAdem and NI Data Finder. Among these dataplugins, there are two for Vector products.
    Check the following links to learn how to use Data Plugins with LabVIEW:
    http://www.ni.com/white-paper/11951/en
    And the following two to download the relevant Data Plugin (I don't know which version of the MDF file you are using)
    http://zone.ni.com/devzone/cda/epd/p/id/452
    http://zone.ni.com/devzone/cda/epd/p/id/6568
    Hope that helps!
    Cheers.

  • Audio sync issues with H.264 / MP4

    Hi,
    If I render out a guide video as a .mp4 it doesn't play quite in sync with the audio in Audition (CS6 with ASIO). It looks to be a few frames out. I'll try rendering a video with a 2-pop and work out how precisely many, but has anyone else experienced this? Should I be using a different codec?
    There's various ways to reproduce this, but this is the simplest:
    - Render a MP4 in PPro (Profile 4.1; 6Mbps/8Mbps Max) with audio
    - Import .mp4 into Audition
    - Place audio an video onto tracks
    - Video playback is out!
    Sam

    I filed a bug report and got this fix back from the audition team:
    First, in Audition go into Preferences > Media & Disk Cache and put a check next to "Enable DLMS format support"
    Then, open the MP4 file you created, only make sure to change the "Enable:" dropdown at the bottom of the Open dialog from "All Supported Media" to "MPEG Movie"
    And let me know if you see the problem.
    By default, Audition CS6 used Quicktime to import mp4 video files where Premiere used its own Dynamic Link Media Server (DLMS) importer.  Audition CS6 can use DLMS, but due to a slightly slower startup time, we did not enable it by default.  Enabling this and forcing the import through the DLMS MPEG importer, rather than the Quicktime importer, SHOULD display the video properly.
    In effect, we determined this was a problem in Quicktime before and there was little we could do.  Fortunately, with our next release we enable DLMS by default and will not require Quicktime support.

  • How to import MP4 into iMovie 09

    How to import MP4 into iMovie09

    You will need to convert it to something that iMovie can edit.
    1) The first step is to see if QuickTime can play it. See if you can open it in QuickTime Player.
    If you can, Proceed to Step 3
    2) If QuickTime cannot play it, I would try to download a set of open source codecs called Perian. They will handle many odd codecs like this. Go to Perian.ORG and download them. Then go back to step 1.
    Note: If Perian does not work for you, come back for some more ideas.
    3) Once QuickTime can play it, you need to convert it to something iMovie can edit. If you have QuickTime Pro, use that. If you would prefer a free alternative, download MPEG STREAMCLIP from Squared 5. Drag the 3G2 clip into MPEG Streamclip and then FILE/Export to QuickTIme...
    Choose Apple Intermediate Codec (for highest quality) or choose h.264 (for smallest file size) and save it in a place you can find it.
    4) Now open iMovie, and use FILE/IMPORT...MOVIES to import the converted file into iMovie for editing.

Maybe you are looking for