Наложение текста с помощью команды FFmpeg в 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
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
Мобильная версия