- Moderator
- #111
I must use this :
But regroup 4 files something failed for me here.
Code:
for (i = 0; i < (PreviewColumns * PreviewRows); i++)
{
TimeOffset = preGapSec + i * TimeBetweenThumbs;
ffmpegArgs = string.Format("select=isnan(prev_selected_t)+gte(t-prev_selected_t" + "\\" + ",{0}),yadif=0:-1:0,scale=600:337,setsar=1:1,tile={1}x{2}", 1, 1, 1);
ExtractorArgs = string.Format("-loglevel quiet -ss {0} -i \"{1}\" -vf {2} -vframes 1 -vsync 0 -an \"{3}_{4}.jpg\"", TimeOffset, aVideoPath, ffmpegArgs, strFilenamewithoutExtension, i);
Success = Utils.StartProcess(ExtractorPath, ExtractorArgs, TempPath, 120000, true, GetMtnConditions());
Log.Debug("VideoThumbCreator: thumb creation {0}", ExtractorArgs);
if (!Success)
{
Log.Debug("VideoThumbCreator: failed, try to fallback {0}", strFilenamewithoutExtension);
break;
}
else
{
pictureList.Add(string.Format("{0}_{1}.jpg", strFilenamewithoutExtension, i));
}
}
if (i == PreviewColumns * PreviewRows)
{
if (Util.Utils.CreateVideoThumbV2(pictureList, string.Format("{0}.jpg", strFilenamewithoutExtension), PreviewColumns, PreviewRows))
{
Log.Debug("VideoThumbCreator: thumb creation success {0}", strFilenamewithoutExtension);
}
else
{
Log.Debug("VideoThumbCreator: failed, try to fallback {0}", strFilenamewithoutExtension);
}
}
But regroup 4 files something failed for me here.