W WangShiQin Member Jun 4, 2025 #1 Hi, everyone. I need to add a watermark with the text "Happy New Year" to 1.MP4 and generate 4.MP4. However, the process only creates a 0-byte 4.MP4 file. There are no error messages during runtime or compilation. Could someone please help identify the issue? and give me some advice .(PndFFmpegKit 、 ffmpeg-kit-full-gpl-6.0-2.LTS.aar is ready) Dim InputFilePath As String =File.Combine(VideoFileDir, "1.mp4") Dim OutputFilePath As String =File.Combine(VideoFileDir, "4.mp4") Dim TextContent As String = "Happy New Yea" Dim FFmpegCommand As String = "-i " & InputFilePath & " -vf " & "drawtext=fontsize=40:text='" & TextContent & "':x=(w-text_w)/2:y=85:fontcolor=white:box=1:[email protected] " & "-acodec copy -y " & OutputFilePath FFmpegKit.ExecuteAsync(FFmpegCommand) thanks very much
Hi, everyone. I need to add a watermark with the text "Happy New Year" to 1.MP4 and generate 4.MP4. However, the process only creates a 0-byte 4.MP4 file. There are no error messages during runtime or compilation. Could someone please help identify the issue? and give me some advice .(PndFFmpegKit 、 ffmpeg-kit-full-gpl-6.0-2.LTS.aar is ready) Dim InputFilePath As String =File.Combine(VideoFileDir, "1.mp4") Dim OutputFilePath As String =File.Combine(VideoFileDir, "4.mp4") Dim TextContent As String = "Happy New Yea" Dim FFmpegCommand As String = "-i " & InputFilePath & " -vf " & "drawtext=fontsize=40:text='" & TextContent & "':x=(w-text_w)/2:y=85:fontcolor=white:box=1:[email protected] " & "-acodec copy -y " & OutputFilePath FFmpegKit.ExecuteAsync(FFmpegCommand) thanks very much