I would like to download and store videos given the url of that video (i.e.: youtube) using MATLAB. Any idea where I can start or if there already exist some function that does this?
Mat,
There is currently no functionality shipping with MATLAB that allows you to read videos from youtube into MATLAB.
Related
I've recently get a set of medical videos data in DICOM format. The problem is that I know they should be videos but any DICOM program I've used till now, knows each video as a single image!
I've also tried MATLAB dicomreader to convert videos to stream of frames but the same problem occurs.
Does anyone know how can I convert my data to a known video format like avi, mpg, wmv,...?
Can the problem be the system(GEMS echocardiography) which has burnt data on CD? or maybe there must be a setting before writing...
Thank you all for your help and guides.
Imebra has an example called dicom2jpeg that can also convert to video if you have ffmpeg installed on your pc.
The downside is that you have to compile the example yourself using QMake or QtCreator.
In the case that the originator really stored the video as a collection of single images, your best bet is still to use ffmpeg and give the bunch of images (converted to jpeg or png) as input.
How do you take a live video feed from a webcam and selectively extract frames of it? Do I need a special toolbox or can this be done through normal matlab functions?
I have the image acquisition toolbox, but haven't seen a good way to use it for this yet...
The image acquisition toolbox is all you need. Just look at the documentation and it should be pretty straight forward.
make sure that the webcam is properly installed and connected.
type the following code:
obj = videoinput('winvideo', 1);
preview(obj)
this shall generate a window capturing live video input.
I have a question about video stream processing. Is it possible to get access and modify real time video stream during recording (f.e. I want to add some text to video)? I can do this as a preview by getting separate frames, but I'm looking for tool which will allow me to store video with my text in video frames.
Probably there is already some libraries/tools available (but I haven't found any yet).
Try GPUIMAGE library. It can help you.
You should check AVCam sample code by apple. That might be a starting point.
I'm doing a project where we want to create a video inside an iPhone app and upload it to YouTube. I've seen the you upload the video using Google's Data API (http://code.google.com/p/gdata-objectivec-client/).
However it seems that you need to upload the movie as an actual movie. Has anyone got any experience on making a movie in a format that YouTube will accept via the Data API and care to give me a few pointers on what would work?
(Just a quick note, I cannot use hidden APIs for this project)
Many thanks
Youtube accepts a broad range of formats. Just try it yourself, use any free video editing software to create a short movie and upload that movie to youtube, you're almost guaranteed that youtube would be able to process that.
The second part of your question is whether ios is able to produce a movie from still frames, then the answer is - yes - and you want to look at AVFoundation, particularly at AVAssetWriter
I have been trying to figure out how to do this for most of the day, but I haven't been able to find much help. We have this multimedia app that allows users to view pictures, videos, and music/ringtones about the particular subject. I know you can save images using UIImageWriteToSavedPhotosAlbum and you can save a video file using UISaveVideoAtPathToSavedPhotosAlbum. But I can't figure out how to allow the user to save an audio file. All the files are stored within the app, so its not like I'm trying to stream or download them from the internet. Does anyone have any pointers on how to do this?
The official SDK only allows you to retrieve information with MPMediaLibrary, no write access.