I want to cut videos and add background music using timestamps using FFmpeg in my WPF app.
My app is totally basic.
I have a button to select file And field for timestamps
I am able to cut videos using cmd. But how can I do that in WPF?
Related
I've been working on a project that requires me to display multiple videos at the same time.
It's the first time I use gstreamer.
At first, I tried to use videosink to display one and use opencv and cairo to display other one,
but this failed.
And I tried to add more drawing area and use same video sink, but it came out that videos were displayed on same drawing area widget.
I also tried to add more gstvideooverlay, but this could not work.
Is it possible to display multiple videos on different drawing area widgets at the same time?
but this could not work.
is not very descriptive. It sounds like you are doing something wrong here.
On the other hand if you are developing a GTK gui application I would use gtksink or gtkglsink respectively. With these you can simply set GtkWidgets into your GUI.
I want to stream video in a WPF application. There are two potential ways:
Embed VLC. Problem: I know how to embed VLC in a WinForm application but not in a WPF one.
Use MediaElement. Problem: I know how to play a wmv file, but I don't know how to play a stream.
So what can I do to play video streams in WPF?
It's very easy task. You can find out VlcDotnet. it's open source and using the VLC libraries. This is the Github link. It is fit with WPF.
Source File
Is it possible to take a picture from the front camera on a Windows 7/8 slate using WPF?
You can try the VideoCaptureElement control in my WPF MediaKit library. It should have everything you need for showing a webcam in WPF and/or getting snapshots. (copy from here)
I'm trying to add videos to my WPF project, but I can't find a proper solution for generating previews/thumbnails of the video. A lot of solutions on the internet mention you should play and then pause the video in code behind. I don't really like that solution especially because it gets very messy in combination with the MVVM structure of our project.
Another solution I thought of is generating a screenshot from the video and display that screenshot instead of the video, but I also have no success in creating the screenshots.
How do you guys show thumbnails of your videos?
You do this by setting the MediaPlayer's property of ScrubbingEnabled to true and still you need to move forward to capture any movie at real time.
For more samples, please read this nice blog entry by Clint Rutkas:
http://www.betterthaneveryone.com/archive/2009/10/02/882.aspx
You can use ffmpeg.exe to generate thumbnail for your video as a jpg file,
ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg
Which is simpler way to do it, because by default we only show Thumbnail image and media element is hidden or inactive, and only when we click on it, we start playing the video. This also improves resource usage as media element is heavy if you are displaying multiple videos.
I need to prepare proof-of-concept for a silverlight application. For that I need to load PPT in silverlight. I just need to load PPT in browser and allow the user to perform next, previous, stop and pause actions. Anybody can help out.
It may be that you need to convert the powerpoint slides to images first? then build a "player" in silverlight to show these slides?
Not sure if Office supports export to Images? (for a manual process) but you could print to PostScript and convert to images using GhostScript.