I have a bunch of short videos from my digital cam. i know how to convert them to a better codec with ffmpeg but i would also like to make a preview image for the video. Not a thumbnail that window does, something like media player classic which takes about 5-30 shots of the video. I was hoping MPC would be able to do it through cmd line but it doesnt.
What (command line) util can i use to do this or what lib (preferably c/c++) can i use to generate the images?
You could use a programmable automation tool, such as wintask, to do this using your exisiting manual apps.
Related
I am using web cam in WPF application. I am using Expression Encoder for video capture. for video capture I have created Job and its working properly. While I want to get picture with same resolution as video is. for this I am using ffmpeg to extract first frame from video. but quality of image is very low. the priority is that image quality should be best of attached web cam and resolution should be as much as video is.
Either we have any better option in Expression Encode for taking picture or kindly help me with any alternative.
You can have a look at this control:
The control provides the following functionalities:
Gets a list of available web camera devices on a system.
Displays a video stream from a web camera device.
Gets the current image being captured.
Requirements
The WPF version of the control is implemented using .NET Framework 4 Client Profile.
The control uses the VMR-9 renderer filter available since Windows XP SP2.
The control supports both x86 and x64 platform targets.
For some reason, accessing images from a web cam is far more complicated then it should be. While I have not used the Expression Encode application, I can provide you with two links to CodePlex, where you can find two different libraries that could help you to solve your problem. Please see the following pages:
WebCam Library for WinForm and WPF with C# and VB.NET
WPF MediaKit - For webcam, DVD and custom video support in WPF
Alternatively, if you're happy with using Expression Encode, then you could take a look at the following links:
Extracting still pictures from movie files, with C#
Extract frames from video files – The Code Project – Multimedia
I would recommend AForge.Net, it works flawless, free and licensed under LGPL v3 license, it also seems to work in both 32 and 64 bit.
The only drawback is that you need ~400 kb worth of dlls to get the webcam control.
I am building one app which can pick videos from our channel and list and play from within the application.
I have done all the json parsing and have everything ready but the only problem
is that I am not able to play the rtsp videos coming from the Youtube API.
I have read that it is possible to play rtsp videos using the MediaElement control
but its not working, my sample XAML code is as below.
<MediaElement Width="500" Height="500" AutoPlay="True" Source="rtsp://v6.cache5.c.youtube.com/CiQLENy73wIaGwkNCW3rSEjLahMYDSANFEgGUghzdGFuZGFyZAw=/0/0/0/video.3gp"/>
I have also looked at Player Framework for Windows 8 Metro Style Applications and Smooth Streaming Client SDK
Using these I am able to play a direct video stored in the server(http://localhost/video.mp4), but not videos streamed via rtsp.
Please help. I want mainly youtube videos via rtsp to be played
I have searched a lot but not finding any solution, please help.
The rtsp stream is also working I have tried playing via VLC, its playing there.
OS: Windows 8 Release Preview w/ VS 2012 Express for Windows 8
I'm pretty sure there's more to playing YouTube videos than just the RTSP protocol. Your example shows a file of type .3gp, which is traditionally treated as QuickTime and not playable by MediaElement. MediaElement can, however, play MP4s and with a codec installed and a custom DirectShow graph it's even able to play FLVs. There's even a sample WPF YouTube player discussed here and it looks like the source is still available for download.
I'm building a Windows Phone 7.5 app that needs to play videos that are pulled from a remote XML feed. Some of these videos are in .mov format, while others are in .mp4 format. The .mp4's play just fine, but the .mov's don't play (just a blank screen). I'm using MediaElement to play these files. Is there any way to make MediaElement play .mov files?
On a Windows Phone? No.
The MediaElement uses whatever codecs are available and installed. Since you can't install your own codecs and only ships with a certain number of codecs, you cannot play them.
The QuickTime Format is just a container around MPEG-4 - it should be very simple to transcode them to MP4 (Which is supported) if you have control over the source.
I have a new project assigned to me today. I need to load a TTF file and then write the specified string to a bitmap using that font. However, I do not have much information about the TTF structure. Is there any library specifically for this job?
I suggest you have a look at the SDL_ttf project. SDL is also a good start to build a small gfx app.
Here is also a useful tutorial aboud using SDL_ttf in OpenGL and rendering text as textures.
I just came across this requirement, could find this URL is of close match but the source downloaded is corrupted.
http://blogs.msdn.com/adam_nathan/archive/2005/10/24/using-com-interop-to-create-a-wpf-visualization-for-windows-media-player.aspx
Also how to add this visualization into Windows Media Player for playing audio files (like copying to proper folder for WMP 11 and change registry entries)
Any body else have the source code or other best way of doing this?
Thank you,
Sahridhayan
I too found the link you posted and could not download the code. I am trying to do the same thing and have posted a similar question here:
C# Com Interop with Windows Media Player Visualisation (With Sample Code)
I have provided code to demonstrate my progress. If I get no help I will just use C++ and interop to C# to perform my drawing (I'm not a C++ programmer and I want to use XNA for my effects).