Click here to Skip to main content
15,167,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I will work on FFMPEG , I want a face replacement by my image in a video. For this subject I searched for something which I am describing below. Please let me know if I am wrong, and suggest a more proper procedure for the task.

1) I can extract all images from a video frame by frame.

2) Then we detect face from each image.

3) Morph an image onto the face.

4) Then again make a video with these images through FFMPEG.

Am I right? If yes then what about audio in this process? And if wrong then where am I mistaken?


Please help me in this windows application ..
Posted
Comments
Kenneth Haugland 23-Sep-15 7:55am
   
You might consider using a PixelShader here, it will ensure that all frames are treated.
a.anvesh 24-Sep-15 3:21am
   
Can you please tell me how to strat this project..

Above one is requirement in .NET.

So can you please help me in that...

Thanks Kenneth
sreeyush sudhakaran 27-Sep-15 6:31am
   
Have a glance at http://www.montivision.com/en/support/blog/
a.anvesh 28-Sep-15 6:22am
   
Please sreeyush.. Can you please help me in this task.. I would greatly appreciate it if you help me in this task.
sreeyush sudhakaran 28-Sep-15 6:23am
   
Google is great master make him as friend..and also sorry I don't have experience in Video Processing projects :-)

1 solution

Please make you of following links which may guide you.


1) Extract all images from a video frame by frame.
Extracting still pictures from movie files, with C#[^]
Extract Frames from Video Files[^]
http://stackoverflow.com/questions/17825677/extracting-frames-of-a-avi-file[^]
http://www.c-sharpcorner.com/uploadfile/krishnasarala/get-framesimages-from-video-in-Asp-Net/[^]
http://superuser.com/questions/666430/how-to-extract-jpegs-from-a-video-file-using-ffmpeg[^]

2) Detect face from image.
http://stackoverflow.com/questions/7368709/c-sharp-detect-face-and-crop-image[^]
http://www.emgu.com/wiki/index.php/Face_detection[^]
Camera Face Detection in C# using Emgu CV and WPF[^]
Multiple face detection and recognition in real time[^]
Haar-feature Object Detection in C#[^]

3)Morph an image.
http://morphing.codeplex.com/[^]
http://www.owlnet.rice.edu/~elec539/Projects97/morphjrks/automorph.html[^]
Image Processing Lab in C#[^]
http://www.cg.tuwien.ac.at/~xmrm/[^]
http://www.aforgenet.com/framework/[^]
http://www.aforgenet.com/framework/docs/html/80514f4d-0a69-dacf-3a4e-8819250d8226.htm[^]
http://blogs.msdn.com/b/nativeconcurrency/archive/2012/08/09/image-morphing-c-amp-sample.aspx[^]

4) Make a video with images through FFMPEG.
https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images[^]
http://stackoverflow.com/questions/24961127/ffmpeg-create-video-from-images[^]
http://hamelot.co.uk/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/[^]
http://linuxers.org/tutorial/how-extract-images-video-using-ffmpeg[^]
http://www.itforeveryone.co.uk/image-to-video.html[^]
https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/image_sequence[^]
http://electron.mit.edu/~gsteele/ffmpeg/[^]
http://video.stackexchange.com/questions/7903/how-to-losslessly-encode-a-jpg-image-sequence-to-a-video-in-ffmpeg[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900