Temporary Video Files Problem

I am developing a Flashlight app for Windows Phone. First the problem was that it was not working on some higher end phones which I solved by adding the following code to my solution:
 // Create video encoding profile as MP4 
                    var videoEncodingProperties = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Vga);
                    // Start Video Recording
                    var videoStorageFile = await KnownFolders.VideosLibrary
                        .CreateFileAsync("tempVideo.mp4", CreationCollisionOption.GenerateUniqueName);
                    await _mediaDev.StartRecordToStorageFileAsync(videoEncodingProperties, videoStorageFile);
Now the problem is that the above code create a temporary video file everytime Torch is enabled. Is there anyway to delete those files created when the torch is disabled by user?
Prajjwal Dimri

Hi Prajjwal,
>>Now the problem is that the above code create a temporary video file everytime Torch is enabled. Is there anyway to delete those files created when the torch is disabled by user?
We can use StorageFile.DeleteAsync method to delete this temporary file:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.storagefile.deleteasync.aspx
StorageFile videoStorageFile;
private async void FunStart()
// Create video encoding profile as MP4
var videoEncodingProperties = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Vga);
// Start Video Recording
videoStorageFile = await KnownFolders.VideosLibrary
.CreateFileAsync("tempVideo.mp4", CreationCollisionOption.GenerateUniqueName);
await _mediaDev.StartRecordToStorageFileAsync(videoEncodingProperties, videoStorageFile);
private async void FunStop()
//Something to stop torch....
await videoStorageFile.DeleteAsync();
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

  • Relatively large video file problems

    Videos larger than about 4GB don't seem to get converted properly by the desktop app when syncing to the playBook.
    I have done a fair bit of testing and the file size seems to be the common denominator of the problem. In other words, its not a problem of what file types or codecs are supported, just when the file gets to a certain size when converting, it gets corrupted.

    Hey Proton2,
    When you attempt to synchronize the video file what error message displays? 
    What file formats have you tested?
    How much free space do you have In the PlayBook?
    Can you manually transfer the file to the PlayBook from the PC? (http://www.blackberry.com/btsc/KB26068)
    Thank you.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Downloading video file problem

    when i used to click on links to mp4 files before, a popup would show up asking what I want to do with it. now, it opens up a new tab and starts playing video file. I haven't added any new plugins but i think there has been a Firefox update. Wondering how I can fix it. Thx!

    Yes, this is a new feature on Windows. If you want to block Firefox from natively playing MP4s, which basically would return Firefox to the previous behavior, you can switch a setting under the covers.*
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''media''' and pause while the list is filtered
    (3) Double-click '''media.windows-media-foundation.enabled''' to switch its value from true to false. Not sure whether this takes effect immediately when you reload the tab you were in or whether you need to restart Firefox before it takes effect.
    ''* Technically, this setting governs the use of code supplied by Microsoft for H.264 decoding. MP4s that use another form of encoding may still play after flipping this setting.''

  • Iphone videos files problems

    Hello, I'm having the follows problems:
    I can't drag and drop the *.m4v files from computer to Iphone usign Itunes. If I add the *.m4v files to Itunes using the add file to library option, and them drag and drop to Iphone it works, but I can't play the files on the Iphone.
    if I use the get info option and change the *.m4v file from movie to TVShow at the Itunes it shows the change, but at the Iphone it does not show, the files disappear.
    Thanks for help me.

    Sounds like the videos are not in an iPhone compatible format.
    http://www.apple.com/iphone/specs.html
    Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format.

  • Noodles Development - importing video file problem

    Hi, Everyone...
    I need to import avi video into my flash, but I cannot locate
    the Flash Video Encoder application. Should it be located in my
    macromedia folder?
    Thanks in advance...
    Best Regards
    Noodles Development

    On my PC here is flash:
    C:\Program Files\Macromedia\Flash 8
    and here is the encoder:
    C:\Program Files\Macromedia\Flash 8 Video Encoder
    Everything is in the Macromedia Folder.
    Did you install Version 8 pro?

  • Video File problem N900

    I cant seem to sync vido files into my N900 through OVI but when I plave the files in hardrive mode the N900 still wont recognise them ??????????

    yes.  it does play avi files as that is the file type that the boot up screens/videos are in.
    this is the one that i am using now:  http://www.youtube.com/watch?v=ujF3bKDs52A
    and this one:  http://www.youtube.com/watch?v=eaIJ3e1kQ0k
    and this one:  http://www.youtube.com/watch?v=neb56-0a26Y
    and this one:  http://www.youtube.com/watch?v=0snhk-tqNH4
    and this one:  http://www.youtube.com/watch?v=f-svLEHVq54
    and this one:  http://www.youtube.com/watch?v=uxEkFuNqLbs
    all are avi files.  i created the two long ones myself by taking a couple different ones and tweaking them.
    and when i select them to play out of my file manager, they play just fine.  they even show up in my video menu when i open of the media player.

  • Elements 10 - Location of temp video files

    Hi all,
    I imported a video into Elements 10 for Mac, and then it crashed while manipulating the video. When I restarted the project, the video clips don't appear anymore. However, my HDD still has lost space from the project. Can someone tell me where those files are stored so I can delete them to regain the 2GB of space lost?
    Thanks

    I read that post you made, and thanks so much for responding.
    I understand that the projects link back to the original video file form the import, so the project files themselves aren't large. I was curious about this and was checking my HDD storage capacity during my project editing. When I started the project, I had about 16.5GB of free space. After I had edited a few clips and deleted others, I checked again and my HDD was at ~14.5GB. I assumed that meant that my tinkering had resulted in Adobe making temporary video files and that was what had taken up my HDD space. So I was confused as to what had happened. I noticed that some of the space has now returned since my original post, but I'm not sure why that 2GB was lost.
    I should also mention I haven't downloaded/changed anything else on my HDD during this time.
    Thanks again for responding Bill!

  • N95 8GB: Problem on deleting video file

    Hi,
    Is there any body experienced this problem. When I'm trying to delete a file from Video Centre > My videos directory, I'm receiving this error... "Unable to delete. File video.mp4 is open."
    Do you have resolution for this? Tnx in advance.
    Br,
    Pete

    21-Nov-200709:06 PM
    pmpinguel wrote:
    posted my detailed steps in the n95 8gb main discussion thread. go see
    I followed your steps but I got this message.... "USB data transfer mode activated. MASS MEMORY MAY NOT BE USED DURING THIS TIME."
    Actually the video file was not there anymore in my File Mgr folder but the problem is the video file is still there in Video centre > My videos folder. When I tried to delete the file using "c" or Options > delete, the error says "Unable to delete. File video.mp4 is open."
    I also tried to reset the phone to its factory settings but still video file was there.
    I think this is a bug. Pls advice. Tnx in advance.
    Br,
    Pete

  • How can we change the default folder location (avoiding problems with Temporary Internet Files)

    (Environment in question: Windows 7 secure desktop (running as user not admin), Office 2010)
    Hello,
      As has been touched on in various forums (such as here: http://forums.adobe.com/thread/797451), when one opens a PDF attachment in Outlook, Acrobat and Reader store the file in the "Temporary Internet Files" folder (f/k/a OLK folder in previous versions of Outlook.  There are two major problems with this:
      First, as Microsoft has documented in http://support.microsoft.com/kb/817878, attachments end up here staying here under certain conditions (go checks your now, you'll find some!), which ends up being a file attachment no man's land, and that can present security risks (e.g. if data we thought was deleted still lives in that folder).
      Secondly, the first time you open an attachment in Acrobat and do a Save As, Acrobat is defaulting to the Temporary Internet Files location.  This folder (as noted in the thread linked above) is ridiculously hard to get to for the average user, so they can end up storing a file and then losing it.
      We've found that if we open Acrobat once, do a save as, and change to the users Documents folder, the change sticks.  But how can we have Acrobat default to Documents instead of that temporary location? 
      Any help is greatly appreciated.

    Have you check to see if Acrobat sets a registry entry or file preference for the first Save As?  That's where I would start looking.  Process Monitor is a good tool for this.

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • Problem on Macbook Pro (16GB RAM, i7) with large video files

    Hallo,
    I have a recurring problem working with Premiere Pro CS6 on a new Macbook. THe Macbook has16GM RAM, i7 processor and I have the video files on my internal disc. THere is enaough space on the disk, aprox 250 GB free.
    I have a Canon Legria HF28. After loading the videos from the camara it's .MOV files. When I have files about 1 GB it seems to work fine. But if I have a large file, e.g. 1 hour HD video in 3,5 GB size, it loads the video, but the playback and any kind of edits does not work properly. Sometimes I am able to start the video, but it stops after a few minutes and I can't rewind or move forward. In the most cases Adobe Premiere crashes. But also restart or opening in new projects does not help. I wonder if somebody has similar problems. My understanding is, that I have enought RAM, and fast processor, that it should actually work fine. The video files are OK. As they run in Quicktime with no problem. Also moving back and forth in the video is fine in a simple player, but not in Premiere.
    Any ideas? And thank you for your help in advance.
    Thomas

    My 2011 MBP can take 16 GB RAM.  macsales.com sells the 16 GB kit for $160 currently.  Apple tests against the more commonly available RAM types when publishing hardware limits, so only reports 8 GB as a maximum.
    8 GB RAM is abut $50 through macsales.com, so buy the default 4 GB regardless of where you decide to go.

  • Hi! I´m having problems with showing video files in Qlab on my Macbook Air. A sound/video technician told me to "blow out" my Mac. Was told to use  cmd+ r  when restarting. Is this the right way?

    Hi! I´m having problems with showing video files in Qlab on my Macbook Air. It started suddenly. Consulted a sound/video technician who told me to "blow out" my Mac. Was told to use cmd+r  when restarting. Is this the right way to clean up my Mac? And is it likely that some kind of bug is causing problems for Qlab to show video files? I´ve already tried with a bunch of different video files and sometimes Qlab plays them and sometimes not. I need the Qlab playlist for a theatre show and only have a week until showtime so starting to really worry. Is there anyone out there who can help?

    Your Mac runs maintenance in the background for you.
    Command + R gives you access to restore, repair, or reformat the drive using OS X Recovery
    No idea why that was suggested.
    You may have a third party video player installed that's causing an incompatibility issue.
    Check these folders:
    /Library/Internet Plug-Ins/
    /Library/Input Methods/
    /Library/InputManagers/
    /Library/ScriptingAdditions
    ~/Library/Internet Plug-Ins/
    ~/Library/Input Methods/
    ~/Library/InputManagers/
    ~/Library/ScriptingAdditions
    The first four locations listed are in the root-level Library on your hard disk, not the user-level Library in your Home folder.The tilde (~) represents your Home folder.
    To access the Home folder in OS X Lion or Mountain Lion, open the Finder, hold the Option key, and chooseGo > Library.

  • Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive but many are not showing up in Aperture.

    Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive with import date not created date, but many of these same files are not showing up in Aperture. Sometimes the clips actually show up with the current import but take on the video information from a previously imported file.

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • Problem with RTPExport output video files

    Hi, I have a problem with RTPExport output video files. One side streams H263/RTP(AVTransmit2.java) and other write this steam to a file by RTPExport.java. When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Pls how can I achieve output file that will have the same fps like original one? How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Its there a way to modifi rtpexport or avreceiver to do this? Thanks a lot!

    Trubka wrote:
    When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Okay, first off, the second file is smaller on purpose. RTP intentionally drops packets that are old/out of order in order to make sure real-time video stays as close to real time as it can. This is by design, so there's really nothing that can be done about it.
    How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Technically speaking, what you're getting in the RTPExport is exactly what you got on the receiving end. Any frames that are dropped during transmission will not be seen by the receiver, nor saved by the receiver.
    Pls how can I achieve output file that will have the same fps like original one? I'm not 100% sure that you can, but, you can give the following idea a try. I make no guarentees that it'll work, but it should work for you...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/RTPConnector.html]
    That example is an example of a "custom transport layer" for RTP connections. Essentially, it's some code that's handed the RTP packets on the transmission end, and it's expected to deliver those RTP packets on the other end. And it doesn't care about how they get from A to B, only that they do.
    If you were to replace the UDP socket in that example with a TCP socket, you would be guarenteed not to drop packets due to network reasons. Every RTP packet you were handed by the transmitter, you would then hand to the receiver. There is no guarentee that none of the packets would be cast away as "old" by the RTP protocol itself, but there's also no guarentee any of them would be. It's a crap-shoot at best, but it's certainly worth a try.

  • HT202020 Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Oh, baby! This bad boy flies!! Here's what to expect:
    I had 40,000 images in Aperture 3 and it was dog slow at everything. I installed 3.1 update today. It took 5 minutes to update the database and then behaved marginally better than before at ASIC library navigation. I was disappointed.
    Then I QUIT the app. It took a couple of hours to "update files for sharing" with a counter that went to 110,000 images. So it must have updated every thumbnail and variation of preview. Turned it back on , and BAM. Came up fully in seconds. Paused for 10 seconds ten everything was lickrty split. For the first time ever, I can use the Projects view with all 791 projects and scroll quickly. I even put it in photos modevand whipped thru all 49,000 images!
    Haven't done anybprocessing yet, but i'm liking it!!
    Jim

Maybe you are looking for