tanersener / react-native-ffmpeg

FFmpeg for react-native. Not maintained anymore. Superseded by FFmpegKit.
GNU General Public License v3.0
401 stars 52 forks source link

Text Position on Video #236

Closed Osamasomy closed 3 years ago

Osamasomy commented 3 years ago

Hey first of all thanks for this amazing library, Im trying to put Text above the Video, The idea is that user can write text and drag on the video on any place and then I got x and y coords, Now the problem occurred when I pass these x and y coords to the ffmpeg its not on exact position,

`-i ${videoStream} -vf drawtext="fontfile=/system/fonts/Roboto-Regular.ttf: \ text=${text}: fontcolor=${color}: fontsize=${size}: x=(${x}): y=(${y})" -codec:a copy ${newSource} `

and also I face some problem while passing FONTSIZE its not exact same that I pass to the ffmpeg.

THANKS.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.