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/4331B4AA3AE95233862574C200539A2F
Similar Messages
-
How can I record a video with LAbview?
Hi,
I have a question: How can I record a video with labview?
I have a camera (AXIS 221) connected via rj45 on PC. I see the video of the camera in a browser.
And I would to acquire the video in labview.
Could someone help me?
Thanks
RafUnfortunately I haven't any experience with this camera. Iguess, you should install API, then crete new VI, place ActiveX container (palette Container->ActiveX) on the Front Panel, then right mouse click, then choose Insert ActiveX object..., then found you camera object and select it and press OK. Then you probably can see image from the on the front panel. Also probably you will be able to get image data in array (how easy is it - depends from the camera API).
If you able to see image from camera in the Internet Explorer, then another method - you can put Microsoft Web Browser as ActiveX object, then you should also see the image. Disadvantage of this method - you will be not able to get image data.
Andrey. -
How to read avi file created in labview from matlab?
in labview, i created an avi file using 'microsoft video 1' compression codec and with each frame i have a string data attached to it.
i tried to load the avi file in matlab for further processing, but 'aviread.m' doesn't seem to work.
also does anyone know in matlab how can i play/read an avi file (created by labview) frame by frame and also have access to the data string attached to each frame?
thanks!Maybe you can use Java.
http://stackoverflow.com/questions/9155642/how-to-read-an-excel-file-in-c-sharp-without-using-microsoft-office-interop-exce
Or, get excel Viewer.
http://www.microsoft.com/en-us/download/details.aspx?id=10
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
How to split H.264 video file then playback with FlashPlayer
Hi all,
I want to develope a Flash or Flex application that can stream a video file in H.264 codec.
It's easy to do this with FMS, but it becomes difficult with my budget
I have an idea to do the streaming (not really streamming ) via HTTP.
My idea is: Split the large H.264 file into small pieces.
The client can download the small files then play back in order. (MyVideo1, MyVideo2.dat.....MyVideoM.dat)
The client first will download the metadata in XML format.
The client is able to play/jumb to the middle stream, the client will start download from MyVideoM.dat...(1<=M<=N)
My question is: How can i split my large Video file in H.264 codec in to smaller pieces (MyVideoN.dat) that flash player can play.
Which is the minimum metada that i have to put into my small file so that FlashPlayer can understand my video files?
Am i able to simply split the video file at serverside, then Client will inject the metadata into the downloaded small DAT files using Flash??
Thanks for your support
Binh LeIs there anyone out there can help me???
-
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,
DaveHello 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*** -
How to read playlist with wmp in labview
I have implemented the WMP apllication into labview with the ActiveX object and also loaded my desired playlist (which I earlier saved with the WMP under C:\Songs\myplaylist.wpl) through writing a constant string into the URL. So far so god. I want now to load all the songnames from this play list into my labview program. The best would be to use a WMP-Methode which delivers me a 1D Stringarray with all the songs which are in this playlist. I experimented with the Classes "Current Media" and "Current Playlist" but unfortenately, I was not able to get all the songs of this play list at once.
Can somebody help me out?
LabVIEW 2011Hello Mike. I made a simple WMP LabVIEW program which is attached to this thread. As soon as i load a mp3-song (with the load-button) I get the file-name as the song-name and a 0 for duration. After I press play (on the WMP play button) this 2 informatins change. The songname is suddenly the title and the duration has a correct value. I can use some mp3-editing tool like mp3tag to change the title of a mp3 song, so that the filename and the title have same names. But it is not a nice solution. And there is still the problem with the duration value which is 0 in the begining.
I realized that your liddle program (attached in your first reply) gets the title-names and not the filenames, while going through that loop. I could use the "item" method of the "IWMPPLaylist Class" like you did in your for-loop. In order to do that, I need to know exactly which songnumber of a songlist is beeing played, as the "count" value for that method. How can I get that information? This would solve at least the "filename - titlename" problem. But I still dont know what to do with the duration problem?!?
LabVIEW 2011
Attachments:
WMP_test_2.vi 29 KB -
How to modify H.264 Video Files?
Hi,
at first sorry for my bad english. I hope, you'll understand
my request anyway.
I produce live streamings of events with des FMS3 and the
Flash Media Encoder 2.5 in the new H.264 format. Addionally I save
the files (.f4v) on my local machine. After the events I want to
work with these files, before uploading them to a OnDemand Server.
I need to cut some scences, rearrange them and so on. My problem, I
do not find any tool for those modifications. I tried Adobe
Premiere Pro, but it can not import the files. I also tried to
rename them in .mp4. But no success. Can anybody help me!
Thanks a lot,
MarkusYou try download this software Sorenson Squeeze.
Otherwise, you live streaming the format is H.264?
How about the sound can sync?
thx -
How to take advantage of H.264 video streaming of webcam BCC950
We used flex 4.6 to develop an web app using Logitech webcam of BCC950, We used Graphedit of Directdraw to know BCC950 has pin 0 to support i320,RGB24,and mjpg stream, and pin 3 to support H.264 stream. We also set h264videostreamingsettings in as code to ask for H.264 data directly from the webcam, but from the CPU consuming we can judge flash player only fetch pin 0 uncompressed data instead of H.264 data directly. We need to take advantage of BCC950 H.264 support to get webcam hardware compressed H.264 streaming data to avoid compression by CPU/software. As we know flash does not give programmers choice to define the pin to get data, then what we need to do to make sure we can get H.264 video stream from the webcam directly? thanks. Henry
...well I did follow that article on playing an h264/mpeg4
video in flash. It works well, but how would you add playback
controls?
FLVPlayback component only allows you to source an FLV video
not h264/mpeg4.
This is probably a simple as3 answer...but I am not
knowledgeable on as3 to know what code to add.
Any suggests or direction that I should look would be great.
In the meantime I am researching actionscript 3 to find and anwer.
E. -
How to read and display a signal from my PIC Microcontr​oller onto Labview?
Hi,
I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/00774a.pdf
Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
1) Open a New VI and used the Instrument I/O(Read & Display) template?
2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
Thank You
Best regards,
Ashwin
Ashwin Kumar Mansukhani
Attachments:
Getting Started with Labview.pdf 901 KBHi Ashwin,
It is a good idea to first be able to communicate with the microcontroller using some sort of serial communication software such as "HyperTerminal" or "Procomm", etc. Refer to MicroChip's recommendations on this.
Once that works, then you are ready to use LabView.
Here is a link which covers many aspects of serial communication. Link - click here
You probably received a development kit. They usually have a readily available interface. It's been a long time since I played with the PIC, but I seem to remember that you need to program the serial communication driver (as well as at least a bootloader) to get the serial communication going. The driver contains the necessary protocols so that you PC can have a machine conversation with the target (PIC).
It sounds like a fun & interesting project. Please avoid to have replies to your personal email. By having the answers posted to this thread, you will get much more support and advice.
Have fun,
JLV -
How to read and display a signal from my PIC Microcontroller onto Labview
Hi,
I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/00774a.pdf
Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
1) Open a New VI and used the Instrument I/O(Read & Display) template?
2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
Thank You
Best regards,
Ashwin
Ashwin Kumar Mansukhani
Attachments:
Getting Started with Labview.pdf 901 KBHi Ashwin,
I am not familiar with the PIC Microcontrollers, but I am assuming you mean that you have the microcontroller sending out serial data that you want to read on another computer with LabVIEW. Please let me know if this is incorrect.
What type of data is coming out of the serial port? Is it ASCII, or binary? The reason I ask this is that the serial communication in LabVIEW is done through a protocol called VISA, which uses ASCII data to send and receive. You can later convert this data into whatever form you need, but this is what it is designed to read and write.
You can check the settings such as baud rate and data bits in a configuration utility called Measurement and Automation Explorer, or MAX. When you open up the MAX interface, you can expand the Devices and Interfaces entry on the left, and then expand the Ports entry to see your serial port. When you highlight this port, select the Port Settings tab at the bottom of the window, and you can see what the current settings are, and change them if you need to. You can also set these parameters in LabVIEW using the VISA Configure Serial Port VI.
You can also test communication in MAX by right clicking on the correct port and choosing Open VISA Session. Then choose the Basic I/O light blue tab, and then go to the Read tab. When you click execute, it should read in what is coming from the serial port. This will allow you to verify that the correct information is coming in before even trying to acquire the data in the LabVIEW environment.
In LabVIEW, the best resource to use the Basic Serial Write and Read example program that ships with LabVIEW. By examining the block diagram of this program, you will be able to see the basic programming flow of serial communication in LabVIEW.
I hope this information was helpful! Please let us know if there's anything else we can help with.
john
Applications Engineer -
How to read data from a router by using labview
I am a beginner labview. How to read data from a router by using labview ?
What kind of data are you trying to read?
Does the router behave like a webserver that you log into? If so, search the forums for threads discussing HTML. -
Hi all, I'm new to using the labview, and I have some trouble doing my project using the labview software.
I have been trying to use the spectrum analyzer (Anritsu MS2661C) which connect to computer using the GPIB connection.
I have got the instrument driver which can write and control the instrument using Labview 2010.
and my Question is how do read the data or result from the spectrum analyzer and send it to the microsoft excel?
Do I need to use other software or programming to do this step?
If anyone know how is this done, please let me know.
Regards,
EryHi ery,
In order to send data that you have read in from an instrument to Excel, the most convenient way to do this would be to use our Report Generation Toolkit. The Report Generation Toolkit is a very useful tool that allows you to interface to Microsoft Office software from LabVIEW, including Word and Excel. I am not sure if you are familiar with this, but I have attached a link that explains more about the Report Generation Toolkit below.
Another way would be to use the Write To Spreadsheet File VI. While this will store your data to a spreadsheet data file, it will not allow you to programmatically perform any Excel formatting like the Report Generation Toolkit offers. I have also attached a link to some information on the Write To Spreadsheet VI below.
Also, be sure to check out the Example Finder in LabVIEW for a number of examples on how to write data to a spreadsheet file. From LabVIEW, you can go to Help»Find Examples to launch the Example Finder. From there, you can search for "spreadsheet," which should populate examples for use in different applications. I hope this helps, ery. Please let me know if you have any further questions about these!
NI LabVIEW Report Generation Toolkit for Microsoft Office
Write To Spreadsheet File VI
Taylor G.
Product Support Engineer
National Instruments
www.ni.com/support -
How can I put a video in my Ipad from my pc? (I made this video with another Ipad, but if send it with Imessage, the quality is worse, if i try to put this video in Itunes it don't read it, if I try to put the video in Ipad like it is a normal pendrive i can't)
Okay, I figured out that Windows has "AutoPlay" settings which can automatically download photos and videos from a newly connected device, such as an iPad Mini. I think I could open it in Windows Explorer too that way but the auto download solved my problem.
-
Hi !
I want to change the speed of a video in Labview. Unfortunaletly, The VLC ActiveX does not function in my version of Labview.
Is there any other program I don't know and which is able to modify the speed of a video ?
If no, what is the way to do what i want ? Is it possible to program it in Labview ?
Thanks in advance !Hey,
If it is an AVI file you could use the Vision Development Modules AVI Functions to read it and save it with a higher frame rate.
Thanks,
Christian -
How to read a binary file written in LabVIEW 6.1 using VB ?
How to read a file saved in binay forrmat in LabVIEW 6.1 platform through VB.
Is there any code ?
ThanksHello,
LabVIEW files stored in binary can take on just about any format that
you choose, so there will not be a single piece of code that will give
you what you are looking for. You can use VB's standard file
operation functions to read in a binary file created by LabVIEW, just
as you would read in any other binary file. See this page
on Microsoft's web site for more information on the binary file read
operation. How you stored the data in the binary file will
determine how you need to extract it from the byte array. So, if
the first element stored in the file was a 32-bit integer, you could
extract an int from the byte stream to recover that piece of your
data. You would need to know in advance how the file was
formatted in order to successfully retrieve the information. If
you need a reference for the VB functions, the microsoft link above
will get you to some good information.
Cheers,
Matt Pollock
National Instruments
Maybe you are looking for
-
Is there a new bios coming for P6N SLI Platinum for E8400 ?
Hi everyone, ( My system specs are in the signature ) I have been thinking to upgrade my cpu to E8400, but after some time passing through the forums, internet and asking some of my friends, I have decided not to. This is because I have see
-
Fring is not support on Nokia E7-00 Belle
Hey! Any one can help me here!!! ?? I am try to install fring on my Nokia E7-00 Belle device , it is not running...!!!!
-
Emergency Question Re: Aspect Ratio
I'm shooting for the first time today with an HD Camera. I'm going to shoot in SD, but which aspect ratio? 16:9 or 4:3? I don't know what type of TV the video will ultimately be viewed on, but I'd like the flexibility for it to look great on both wid
-
Loading swf files from an iPhone Air App
Although the faq says its possible ( http://bit.ly/gyxmCo ) I can't seem to load .swf files from my app. There's no .AS code in the .swf file I'm trying to load. PNG files load with no problems, swf's fail. A working example would be appreciated in
-
I am having problems downloading updates
I bought my iMac a couple of weeks ago and when I ordered it I had "Pages" and "Keynote" installed too. My problem is that I have updates waiting to be installed for these, but every time I try to install them I get a dropdown notice that says the up