Is it possible to grab a snapshot from a previously recorded video on Windows Phone 7? - windows-phone-7

I'd like to know if it's possible to grab snapshots from previously recorded videos. Those videos are recorded in the app itself.
By the way, I'd like to grab the snapshot from a video file saved in IsolatedStorage without having to play the video.
Is it possible? If so, how can I do it?
Cheers,
Rafael

I am not aware of an official platform feature to do this. However, if the video file is within your app's isolated storage, you might be able to:
Send the video to a server to do the processing
Add codecs/C# code to your app to process the raw MPEG4 frames.
Try using WriteableBitmap to capture a specific frame when using the media element. Since most media is handled in hardware, however, it is possible that the frame will be blank.

I solved the problem by creating the thumbnail while recording the video (captureSource.CaptureImageAsync()). To do that, I used the same instance of the CaptureSource I'm using to record the video.

Related

Compression method for file transfers in Android

I am developing an android app, where I require to upload image/video files really quick. What could be the best approach to do the same? I am using windows azure media server.
I researched and went through the entire documentation on Azure yet couldn't find the right solution for the below problems. So, I am elaborating the list of issues and scenarios for your understanding.
Just to add top-up on this issue. Following are the scenarios.
We are uploading the video through app. - Need help is optimising the upload transfer rate by using viable compression.
As of now it is taking approximately 1-2 mins to complete the upload.
Post uploading the Video we crop the video using FFmpeg codecs in our application on VM and then move the video file to Blob Storage.
Followed by that we use the Azure Media SDK to make an asset to encode the cropped video for adaptive streaming and we also create the Progressive Download file for downloading the video which is cropped and has stiched images with it.
Cropped and Unstichhed video is played in the app which is of max length 32 seconds.
This still shows the buffering on the 4G network which is questionable?
Downloadable file which has images stiched with it comes out with noise in the bottom of the video. (Attached image for ref.) Ref. Image. Look at the right botton pixelation.

How to play uploaded videos in an iframe on a Mac system

I have tried using iframe and also video tag and object tag to play the video. In some cases, it plays only the audio from the video, but video doesn't show up.
Secondly, the same video file plays well on a separate tab in the browser, but not within my iframe.
This issue is on all browsers on my Mac, but on a windows machine it plays well.
I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual/qtscripting_html/QTScripting_HTML_Document/ScriptingHTML.html#//apple_ref/doc/uid/TP40001525-2-GettingaBrowsertoLoadQuickTime
I simply had to use the embed tag properly as they have explained.

How to download and save audio and video in wp7 mediaLiabrary?

Can you please tell me how to save or store sample audio and vidio into mediaLibrary.From my application if i long press on a picture i get a save picture option that saves the picture under saved pictures category in MediaLibrary. Similarly how do i save a mp3 and mp4 file.
I am able to downloadcontent and play the audio on emulator directly but not able to save any mp3 file from the web onto the MediaLibrary. Is there any other way to add songs to MediaLibrary?
Please Help me.
Thanks
The Windows Phone 7 API does not allow saving audio and video to the Media library, only on the isolated storage of the application itself.
This is in contrast to Pictures, which like you said you can save to the Media library.

stream video with eventmachine?

It seems to me that EM::FileStreamer should be usable out of the box, but I tried it with the <video> tag and with an embedded Quicktime plugin, but neither one would actually show the video.
I've connected to my EM server with telnet and found that it does indeed stream my video file. I'm at a loss as to why it's not buffering and playing in my browser. Anyone have any hints for me?
That should work, however the video must be encoded properly to stream in that fashion. I am assuming your using an mp4? If so, have you run qt-faststart on the file?
Here's an article with a bit of info.
http://www.stoimen.com/blog/2010/11/12/how-to-make-mp4-progressive-with-qt-faststart/
I also have my sample video encoding app on github, which does this automatically for you when you upload videos.
https://github.com/zquestz/asset-manager
Just make sure qt-faststart is in your PATH. Once the index information is at the beginning of the file, thing should work as expected.
Videos encoded with libtheora should work out of the box for supported browsers.

How to show audio details when played using MediaPlayerLauncher?

In my application i am playing an audio file (let it be .mp3) using MediaPlayerLauncher. File is downloaded from network and stored in IsolatedStorage.
I managed to play the audio but it was a bit disapointing to see that there is absolutly no details about the played track.
Is there a way to show picture and/or track name when launched with MediaPlayerLauncher? Or am i forced to use MediaElement?
Unfortunately, if you're just playing an audio stream using the MediaPlayerLauncher there si no way to specifyu additional (meta) data for the launcher to also display.
If you want additional information displayed then you'll need to create the UI yourself and play the track via a MediaElement (or background audio).

Resources