Quantcast
Channel: Splicer
Viewing all articles
Browse latest Browse all 19

New Post: watermark video mp4/mov/avi

$
0
0
Lora,

(If you still have his question after 7+ months),

I have an essentially identical project. I also had an identical issue. As far as I know, there is no way to import any types of videos to Splicer besides .Avi and .wmv.

In my case, I want to overlay a clock on a video. I haven't quite gotten the whole clock-not-blocking-video part down, but I have imported the .MP4's I wanted to overlay, but only by converting it first with ffmpeg.

That link sends you to a page with a crap ton of different star-trek style formats. I spent a good hour downloading different formats to see if my Windows 10 could actually open one before finally downloading 7Zip and unzipping this format.

I converted the video using:
using System.Diagnostics;

Process pProcess = new Process();

pProcess.StartInfo.FileName = "ffmpeg" //This has to be a path with the executable extension (C:\\Users\\BillyBob\\Downloads\\ffmpeg-crazy-folder-name\\ffmpeg.exe)

 // The escaped double quotes must be there, or paths with spaces will be treated as different arguments and throw errors.
// eg. "C:\\Users\\BillyFredAndFrank\\Documents\\holy cow.avi" would give "C:\\...\\holy" and "cow.avi"
string inPath = "\"C:\\awesomeMP4.mp4\""; 
string outPath = "\"C:\\WHAAAATTTT??  ITS AN AVI!!.avi\""; 

string args = "-i "+ inPath+" "+outPath;  //don't ask what the -i does.  I just that without it stuff doesn't work.

pProcess.StartInfo.Arguments = args;

 pProcess.Start();

 //Get program output
string strOutput = pProcess.StandardOutput.ReadToEnd();

 //Wait for process to finish
pProcess.WaitForExit();

 Console.Write(strOutput);
After the videos were converted, I passed the converted paths to my overlaying function in place of the original path and everything worked (relatively) well.

Hope this all helps!
The Hermanoid

Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>