You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have deployed an azure function with ffmpeg.exe. The function adds audio and srt/ass subtitles to a video.
When I test locally this code works (running on azurite). When I deploy The audio is added to the video but the subtitles don't show up. I've tried with SRT and ASS but they both don't work using this code.
What am I doing wrong?
awaitFFMpegArguments.FromFileInput(videoInputPath,true, options =>{options.WithCustomArgument("-stream_loop -1");}).AddFileInput(audioPath,true).OutputToFile(videoOutputPath,true,(options)=>{options.WithDuration(thread.AudioData.TotalAudioDuration);options.WithVideoCodec(VideoCodec.LibX264);// Re-encode video using x264 codecoptions.WithAudioCodec(AudioCodec.Aac);// Re-encode audio to AACoptions.WithSpeedPreset(Speed.VeryFast);options.UsingShortest(true);options.WithVideoFilters((videoOptions)=>{videoOptions.HardBurnSubtitle(SubtitleHardBurnOptions.Create(subtitlesFile));});}).ProcessAsynchronously();
I have deployed an azure function with ffmpeg.exe. The function adds audio and srt/ass subtitles to a video.
When I test locally this code works (running on azurite). When I deploy The audio is added to the video but the subtitles don't show up. I've tried with SRT and ASS but they both don't work using this code.
What am I doing wrong?
Here's the command it creates on Azure function:
The text was updated successfully, but these errors were encountered: