Skip to content

Commit

Permalink
Test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tqk2811 committed Jun 6, 2022
1 parent 906de32 commit 3deb342
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions FFmpegArgs.Test/TanersenerSlideShow/Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ public static List<ImageMap> GetImagesInput(this FFmpegArg ffmpegArg)
{
DirectoryInfo directoryInfo = new DirectoryInfo(".\\Images");
var files = directoryInfo.GetFiles("*.jpg");
return files.Select(x => ffmpegArg.AddImagesInput(new ImageFileInput($"Images\\{x.Name}").StreamLoop(1)).First()).ToList();
return files
.Select(x => ffmpegArg
.AddImagesInput(new ImageFileInput($"Images\\{x.Name}")
.SetOption("-loop", 1)//https://ffmpeg.org/ffmpeg-formats.html#image2-1 image demux option
).First()).ToList();
}
public static ImageMap FilmStripH(this FFmpegArg ffmpegArg)
{
return ffmpegArg.AddImagesInput(new ImageFileInput($"Images\\film_strip.png").StreamLoop(1)).First();
return ffmpegArg.AddImagesInput(new ImageFileInput($"Images\\film_strip.png").SetOption("-loop", 1)).First();
}
public static ImageMap FilmStripV(this FFmpegArg ffmpegArg)
{
Expand Down

0 comments on commit 3deb342

Please sign in to comment.