Creating a video from photos with uniform audio in C#.

soprano

Client
Joined
Aug 25, 2011
Messages
985
Reaction score
1,171
Points
93
Hello, everyone.

I'm sharing a template on the suggested topic:
"Creating a video for YouTube from your own photos with various transitions, voice-over, and evenly timed frame display based on the length of the audio track."

To work with the template, you need to place your photos in .jpg format in the /images folder.

In the /audio folder, place the file text.mp3.

After launching the template, it resizes the photos to a uniform size, renames them, applies effects and text, calculates how long each image should be displayed based on the audio file's length, then stitches the images into a video matching the audio's length and merges the audio and video together.

FFMPEG is used for video generation (https://ffmpeg.org/download.html#build-windows, add in the project Directory).

Original image files:
118638


Processed images:
118639


Video from images:
118640


Video with sound:
118641


The following libraries need to be downloaded from nuget.org and installed in the GAC:
using Microsoft.WindowsAPICodePack;
using Microsoft.VisualBasic.FileIO;
using ImageProcessor;
using System.Speech;
using Microsoft.Office.Core;

There are no input settings.

I am attaching files for reference - images before processing, images after processing, video from images without sound, video with sound, and audio for the voice-over.

Happy generating!
 

Attachments

  • Thank you
Reactions: cesario678

cesario678

Client
Joined
Mar 10, 2022
Messages
225
Reaction score
13
Points
18
Hello, everyone.

I'm sharing a template on the suggested topic:
"Creating a video for YouTube from your own photos with various transitions, voice-over, and evenly timed frame display based on the length of the audio track."

To work with the template, you need to place your photos in .jpg format in the /images folder.

In the /audio folder, place the file text.mp3.

After launching the template, it resizes the photos to a uniform size, renames them, applies effects and text, calculates how long each image should be displayed based on the audio file's length, then stitches the images into a video matching the audio's length and merges the audio and video together.

FFMPEG is used for video generation (https://ffmpeg.org/download.html#build-windows, add in the project Directory).

Original image files:
View attachment 118638

Processed images:
View attachment 118639

Video from images:
View attachment 118640

Video with sound:
View attachment 118641

The following libraries need to be downloaded from nuget.org and installed in the GAC:
using Microsoft.WindowsAPICodePack;
using Microsoft.VisualBasic.FileIO;
using ImageProcessor;
using System.Speech;
using Microsoft.Office.Core;

There are no input settings.

I am attaching files for reference - images before processing, images after processing, video from images without sound, video with sound, and audio for the voice-over.

Happy generating!
Thank you for the template. Could you help me? Every time I log in, I receive this message, and the bot never runs. I have already installed the latest .NET Framework and downloaded System.IO in the GAC, but it still doesn’t work.
 

Attachments

cesario678

Client
Joined
Mar 10, 2022
Messages
225
Reaction score
13
Points
18
I installed the latest version of .NET Framework, reinstalled ZennoPoster, updated and installed Visual +++, and installed in the GAC the add-ons you recommended, yet the error persists.
 

soprano

Client
Joined
Aug 25, 2011
Messages
985
Reaction score
1,171
Points
93
check your dll
 

cesario678

Client
Joined
Mar 10, 2022
Messages
225
Reaction score
13
Points
18
check your dll
I went to the NuGet site and downloaded the DLLs requested here, but I saw that some were already in the GAC, and for others, I set them to be found on my PC. However, it still didn't work. Could this be the issue, or is it something else?
 

soprano

Client
Joined
Aug 25, 2011
Messages
985
Reaction score
1,171
Points
93
I can’t help anything else, at the time of the release of the article, the template worked.
I am no longer engaged in this topic.
 

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)