Record and playback video in slow motion

Hi
I am COMPLETELY new to labview and am having some trouble.
I would like to record a video using a USB camera and be able to play it back on multiple occasions at different speeds.
The file attached is what I have so far. The signal generated at the top is controlling the equipment I am recording. Currently, I am saving the video to the hard drive in AVI format and retreiving it to watch again. However I would like to be able to play this at different speeds and be able to pause/rewind. Is this possible? I would also prefer not to have to save and retreive the file and much prefer it to stay within the system memory.
Thanks in Advance
Alex
Attachments:
Complete 2.vi ‏145 KB

Hi!
In your program you set the "frames per second" input on the "Init AVI" Vi to 50. If your camera is set up to acquire 50 frames/sec this is ok. But your "playback" loop will (as it is) run at much higher rate, since it is not limited in speed. You need to control the playback rate with a delay function (maybe the Wait (ms)-vi). If the acq-rate is 50Hz, you need to limit the playback loop to 50 iterations per sec -> 20ms delay.
Set the delay to a lower value for a faster playback, or higher value for slow motion playback.
If you decide to use the AVI-vi:s you need to associate the video with a file. You can however keep the frames in memory by simply create an array of images and write to them instead of to the AVI-file. Modify your code like this:
1) Create an array of IMAQ-images, Note that you need diffrent images on each index in the array.
2) In your acqure-loop. Instead of writing to the AVI-file, write to the array at index "i". Note that you must modify this image, so retreive the image-ref at array index "i", then modify it by writing to it, the put the image-ref back in the array.
3) In your playback loop.Read image-ref to display from the array by index "i".
Done
Best regards
Dan

Similar Messages

  • Is it possible to my play my uploaded videos in slow motion?

    Hello All,
    I have the macbook pro and I am trying to figure out how to play my uploaded videos in slow motion.
    I am using the quicktime player version 10.1 and I am only seeing the ability to playback, pause, play, enlarge screen and fast forward through my videos.
    If it is not possilbe to get the videos to play in slow motion using quicktime, I would appreciate suggestions on software that I could get. Nothing complicated, I just really need that slow motion feature! Thank you!
    -Trish

    I have the macbook pro and I am trying to figure out how to play my uploaded videos in slow motion... I am using the quicktime player version 10.1 and I am only seeing the ability to playback, pause, play, enlarge screen and fast forward through my videos.
    This capability is dependent on the media player. QT X.1 does not have either a slow or fast motion playback feature control. The closest you can get is holding down the right arrow key in which case the "slow motion" spped will be dependent on your computer's CPU power and the clip's frame rate.
    If it is not possilbe to get the videos to play in slow motion using quicktime, I would appreciate suggestions on software that I could get. Nothing complicated, I just really need that slow motion feature!
    The QT 7 Player (free) can play files with sound between 0.5 and 3.0 times normal speed. The VLC player (free) has a wider range of speed variations with sound but audio usually drops out at below 0.25 times normal playback speed. The TV player also has three slow speed (and fast speed) playback options but I don't know their exact speeds and it is without sound.

  • Quicktime plays video in slow motion

    Quicktime plays my video from a Sony NEX-3 camera [H.264 MP4 files] in slow motion. The images plays at a reduced speed, while the sound plays at full speed. One consequence is that image and sound is completely out of sync. The video plays fine in iMovie and MPEG stream clip.
    I tried in two Macs: a Macbook Air (10.6.6) and a Macbook (10.6.5) and on both the video is slow motion, but on the Macbook it is extreme slow motion, while on the Macbook Air it is slight slow motion [mainly noticeable through lack of sync between image and sound].
    Video from iPhone 4 plays without problems in Quicktime.
    Since iMovie plays the Sony video fine, I would assume it is not a Sony video problem, but a bug in Quicktime. How do I get Apple to fix that bug?

    How do I get Apple to fix that bug?
    You can provide Apple feedback at: http://www.apple.com/feedback/.

  • Is it possible to put videos in slow motion?

    Is it possible to put videos in slow motion?

    Yes, probably the easiest method is to use the Time Stretch Tool and just lengthen the Duration of the Clip. Or Rt-click and choose Time Stretch to do this numerically.
    Good luck,
    Hunt

  • How can I replay the video in slow motion?

    I would like to replay my videos in slow motion on my iPad so that I can analyze my tennis and golf strokes.

    I'd like to know how to do this now too since the terminal command doesn't work in Lion / ML. Anyone know how?
    And Leroy - the reason is because I have custom hot keys configured and the shift key is a key I want to use for this command. I would like to know how to disable the slow motion effect permanently since I never need it and would certainly like to use my shift key as a modifier for various keyboard commands.

  • IPhone cannot record and open videos?

    It happens today, the iPhone 4 cannot record and open videos. When I try to record, there is flashlight on and off on the top. I dont know why, I know it will show up when I take a photo, but it show up in video taking and it didn't show the time that I record. I look at my Photos, but it show the word "mov" and I click on it it said can't open. PLEASE HELP!!!

    I have very similar problems on an iphone 4s, you think it takes video, when on ios 5.1.1 i pressed record button to end shooting video and picture would freeze! This would then freeze the whole camera app by showing the shutter screen and neither the camera or video camera would work. After about 4-5 minutes the phone would unfreeze itself and allow camera shots, but if you tried to take video footage again, exact same fault would arise! Ive tried reinstalling software and full on reset, deleted itunes and refreshed all that, no such luck!  After the 4 or so minutes has passed the video would appear as a grey screen in the camera roll, and if i click it to view it, a quicktime Q appears in middle of screen with a black background, you hear the sound from the video but no motion picture!
    Tried hard/soft resets, numerous backups with restores, tried using phone as s new iphone it still happens!  Ive spoken to apple who say take it to apple store at bristol uk, and they'll swap it for a refurb, but i dont want a refurb I say, as ive had the phone 2 months and paid £250 upfront for the 64gb version, why should I want a swap when components inside phone could possibly be older than the new phone I have?
    Just downloaded ios 6, the symptoms are the same, but now the picture doesn't freeze, but after pressing record button to stop recording the timer keeps counting up and red light still flashes! I give up honestly!
    I swear its a software fault, as the camera focuses fine and takes a nice photo, even if it is a bit grainy if zoomed in? Is that normal, as its always been like that, but normal non zoomed are brilliant!
    Can anyone help me and this guy who asked the same question back in april!
    Please help, apple dont know what it is I dont think, which is annoying, they told me ios 6 might fix the issue!
    Any advice or help would be greatly appreciated
    Cheers
    Dean

  • Record and Playback performanc​e goes down at high frequency

    Hi,
    We're testing record and playback using USRP-2920( LV 2013sp1, NI-USRP 14)
    To test it, we downloaded record and playback example code.
    Signal source is a function generator outputting 6 MHz bandwidth 8 VSB modulation signal.
    USRP Rx parameters are center = variant / gain = 0 / IQ rate = 25MHz and Tx parameters are center = same as Rx center / gain = 0 / IQ rate = 25MHz
    The problem is... in low carrier frequency like 70MHz, quality of playback signal is great.
    But in high carrier freqency like 2.2GHz, SNR and signal power dropped significantly i.e. they tend to drop as carrier frequency goes high.
    And  the strange thing is as carrier frequency is increased, a small peak on the center is increased as well.
    Please check the attatched file to see the tendancy.
    So.. my question is why is this tendancy occures?(we tested another USRP and the result was same as before)
    and what should we do to reduce this effect?
    Regards,
    Youngmin
    Attachments:
    record and playback results.xls ‏469 KB

    Hi,
    I suggest a couple of things:
    NI USRP 2920 is a non-calibrated device. So setting a gain value of 0 at different frequencies could mean a different actual gain. So try increasing the Rx recording gain (on the USRP) in cases where you observe low SNR. Similarly Tx is not calibrated.
    Is the signal recording done with cables or over wireless medium ? You can try to eliminate any spurious signals if you use SMA cables while recording.
    I think the power at the center of the spectrum is the DC offset. You may refer to the DC Offset/LO leakage section in the best practices section here http://www.ni.com/white-paper/13881/en/
    Thanks.

  • Missing VI - RF Record and Playback Reference Application

    Tried to load and run "RF Record and Playback Reference Application" just posted on Developer zone.  Have all correct versions of SW.  Missing MITEoptimization.llb containing optimizeMITe.vi.  Found the win32fileiovis but still missing this one.  Reference to "file below" on web site but not there. 

    Thanks, Andrew.  I do have the files, but the strangest thing happened.  Although the locations of the web page linked to as well as the file locations appear to be identical, the file that is downloaded is different depending on whether I link to it with Firebird browser or IE.  Same behavior whether I double click on the file or right click & save as
    File sizes are 383KB  (short file) and 628 KB (complete file including MITEOptimization and benchmarking files)
    Using Winzip 9.0
    Should be OK now though.
    Tried again later and both were the same.  Is it possible that I linked to different servers which had different files?? Noticed that dir.mnu in the win32filieio directory has different time stamp for the two.

  • Can the iPhone 4 shoot video in slow motion?

    Can the iphone 4 shoot in slow mo? This video says they shot it in slow motion but I don't think it can?
    http://www.youtube.com/watch?v=_rV0tzYx8Gk

    This question is too funny...
    Nothing can shoot in slow motion (since things always occur in real time). You can only *play back* a video in slow motion (i.e., reduced frame rate).....

  • Slow motion recording and playback with Flash Player with web browers

    Hi,
    I am using a MacBook, have installed Flash Player 10, and everything was great until a couple of days ago. Then, my audio playback with Flash seems to be in slow motion. I record my voice in this program call Voicethread using either Safari or Firefox and what it should be a 3 seconf audio track seems to be elongated to 9, streching my voice like it is on slow motion. I have tried everything that it is recommended (restaring, uninstallins, reinstalling, etc) and NOTHING... I have spent hours already trying to fix this issue that came from nowhere... 36 hours ago was working just perfectly!
    Any suggestions?
    Many thanks,
    Luis

    Adobe Flash Player has also been crashing periodically on 2 of my computers, I'm still running XP, one of them a powerful HTPC, Dell Optiplex 755 SFF over a new Cable Internet Connection. Buffering, Lagging, crashing when streaming video for Catchup TV (Freeview) via Firefox Adobe Flash Player Add-On, does not happen on Youtube though. Lagging & Crashing does NOT occur AT ALL in Google Chrome, but I hate that browser.
    Have tried the usual disabling Flash Hardware Acceleration + Protected Mode, setting storage to Unlimited, disabling FF Ad Blockers + Hardware Acceleration, cleaning Caches, updating program versions, everything bar reinstalling programs. It's not happening in Chrome, why in Firefox?

  • I imported video from a card into IPhoto and it plays in slow motion.  Any suggestions? Would importing into IMovie help at all?

    Hello
    I am importing video and pics into Iphoto and the video plays in slow motion.  Would importing in Imovie help or does it have something to do with the type of camera or file the video is in?

    It should. So they aren't shown in the Last Import smart album, right? Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #4, Rebuild Database, followed by Option #1 if needed.
    OT

  • Imported Video not in sync with sound. Video in slow motion...

    Hello,
    I am fairly new to Premiere and I wanted to spend some time playing around with it. When I import my videos, the playback is out of sync. The sound is normal but the video is in slow motion so it doesnt sync together. Am I missing something? Using Premiere Pro CS4 and filmed it on a Sony Xacti with MPEG4 AVC sequence.
    Thanks in advance.
    Steve
    Oh by the way, it seems to open and play just fine in any other media player

    Steve,
    Glad that you got some material to practice with. That was your goal here.
    Now, file conversions from compressed source material will usually not yield great quality. Unfortunately, the conversion process, unlike what some would love to believe, does not restore quality to the compressed material. It only changes some of the characteristics, but imporved quality is not one of them. Also, depending on the actual conversion program used, the quality can suffer even more. This is a fact of life in Video.
    Now, when you go to get your camera, there are many great threads on many camera makes and models already posted. If you cannot find info on your considerations, post to get recommendations, based on your budget and what you wish to use the camera for. I'm not positive, but I think that the new Equipment sub-forum would be a good place to ask. Previous posts will not be there yet, but will be in the general forum. Many, but obviously not all, cameras have been discussed in length, and their pluses and minuses have been debated.
    Good luck,
    Hunt

  • Music puts video in slow motion

    I love the fact that I can get online here and seek help. IT has always helped me before-so hopefully I will get lucky now. I am using Imovie 9-- am new user and so far have learned how to use it-compared to the later versions-- a few learning curves but not bad.
    My problem is when I import a sound effect or music clip- the video portion goes into slow motion. Quite simply- when I remove the sound effect-it resumes to regular speed? what am I doing wrong or how to I just add the music and have the video play as is?
    THanks so much!

    The following packages were updated when linux was upgraded:
    enca (1.15-1 -> 1.16-1)
    linux-firmware (20140828.13eb208-1 -> 20141009.0e5f637-1)
    linux (3.16.4-1 -> 3.17.1-1)
    lirc-utils (1:0.9.1.a-5 -> 1:0.9.1.a-7)
    python2-pillow (2.6.0-1 -> 2.6.1-1)
    Since the 24/10 there is an error message in systemd's journal:
    Oct 24 13:41:36 001 kernel: nouveau E[  DEVICE][0000:01:00.0][0x80000080][de023100] failed to create 0x00000002, -13
    Oct 24 13:41:36 001 kernel: nouveau E[  DEVICE][0000:01:00.0][0x80000080][de023100] failed to create 0x00000002, -13
    There is no output when I start smplayer from the console. In vlc there is no problem. In smplayer the video playback slows down when I maximize the window using maximize button of the window itself. When I resize the window to its maximum manually or use the full screen button of smplayer, then there is no problem. It appears to be a problem with smplayer, because in mplayer there is no problem when I maximize with the window using the maximize button.
    I tried nvidia-304xx yesterday, but that didn't help.

  • Youtube playing all videos in slow motion

    youtube.com videos are playing in slow motion. i don't want them to. how can i change this? as far as i know flash is new. we bought this computer not 4 months ago. it's a Mac os X 10.6.8. Flash is 10.3.181.26

    All music and videos on my computer is also in slow motion!! 

  • How do you add video effects-slow motion

    Not real happy with 08 over previous versions but I would like to gain back some of the functionality that I regularly used. How do I add special effects, such as slow motion to a video clip or a portion of a video clip.

    How do you do it IMovie HD in Ilife 08?
    Both applications can be run on the same computer. Use whichever application best serves your needs. If you need a lot of plug-in effects, use HD. If few or nor effects other than standard transitions and titles are required and speed is paramount, then use iMovie '08. If you like being innovative and want to try your hand at creating your own effects, use iMovie '08 and learn how perform pre- and post-edits to create your own fast motion, slow motion, stop motion, pseudo time lapse, still framed, backgrounded, blended, layered, picture-in-picture, etc. that may "tickle your fancy."

Maybe you are looking for