Наложение текста с помощью команды FFmpeg в Android программноAndroid

Форум для тех, кто программирует под Android
Ответить
Гость
 Наложение текста с помощью команды FFmpeg в Android программно

Сообщение Гость »


I need to know what is the issue with my FFmpeg command for overlaying text to a video in android.

command = new String[]{"ffmpeg", "-i", original_path, "-vf", "drawtext=text='SiteName.local': fontsize=18: fontcolor=white: x=10:y=h-th-10", "-acodec", "copy", "-y", dest.getAbsolutePath()}; I am trying to create a video with a text overlay. However, i'm getting an error

[NULL @ 0xea699600] Unable to find a suitable output format for 'ffmpeg' ffmpeg: Invalid argument I have tested for the input file and output file using different command for trimming videos and it worked. However, the FFmpeg command for overlaying text does not work. I kindly ask for help.

Besides, i also need to know how i can animate the text to scroll from left to right, bounce using FFmpeg commands in android etc
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»