Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 6424  / 2 Years ago, tue, july 19, 2022, 11:12:53

I have a video with text that I am trying to translate into other language, I will not place the translation as subtitles, the idea is to use the same font and place the translated text in the same place as the original text is.



The software that I need is a software that either let me do the previous (i.e. remove the text within the video) or that allows me to convert video frames to images (that I'd be able to edit with GIMP) and backwards (i.e. images to video) AND in both cases the software should allow me to introduce text in any coordinates of the video with any font I desire.



The software should also be able to "remove" any object from a video like Adobe After Effects as shown in this tutorial.



Important note:



This question is not a duplicate of Ubuntu is there any frame by frame video editor software which can allow to place a picture? as this question asks for a different goal that was solved differently in the link provided.


More From » apt

 Answers
3

In order to have a frame by frame sequence of a video, the more elegant solution is to export all the sequence of frames once for all, instead of specific frames one by one.



In that case, the use of the ffmpeg package is required, as well as to convert the image sequence back to video.



FFmpeg installation



In order to install ffmpeg the ppa should be added first. You can have deeper information about this in Is FFmpeg missing from the official repositories in 14.04?



To add the ppa, open a terminal and run:



sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update


After that addition, in a terminal run the following to install FFmpeg:



sudo apt-get install ffmpeg


Conversion from video to image sequence



Navigate with the terminal to the folder where you have the video and run:



ffmpeg -i video.mp4 -qscale 0 scene%05d.jpg


Note: the command -qscale 0 is to keep the quality of the video in the images.



This images may be edited with the software of your preference: GIMP recommended.



Conversion from image sequence to video



Once all the images edition have been done you can turn your images back to video by opening a terminal and running:



ffmpeg -framerate 25 -i scene%05d.jpg -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p newvideo.mp4


A little plus



If you want to add sound to the video, the best way to do it is by installing a BASIC video editor, like: OpenShot(recommended), blender, cinelerra, kdenlive, etc.


[#18864] Wednesday, July 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
;