LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2021, 02:59 AM   #1
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Rep: Reputation: Disabled
Software to add subtitles to an existing video


Hello all,
I have linuxmint.
I want to be able to add subtitles on existing videos. For example I download a video from telegram, so the format of the video can be anything, fpr example the speaker speaks in English, I want to translate this video by adding subtitles in French.

Which software is most appropriate ?
Please make sure that tutos/videos exist so I can learn.

If you were to send explanation in writing, please do explain the technical words used as if you were speaking to a child (I am not a computer geek) and English is not my mother tongue.
The video that I will "create" with the subtitles must be in a format that can be read by anyone on computers and mobile phones, and not too heavy so it loads quickly.

Thank you very much

Joelle
 
Old 08-05-2021, 03:53 AM   #2
valeoak
Member
 
Registered: Apr 2020
Location: United Kingdom
Distribution: Debian Sid, Pop!_OS
Posts: 49

Rep: Reputation: Disabled
Hello, Joelle.

Subtitles in videos can be achieved in two principal ways:
  1. The subtitles are contained within a text file (normally with a .srt file suffix) that's read by the video player alongside the video file.
  2. The subtitles are directly embedded into the video file - as much a part of the video as anything else like the background or people captured in the video.

Where you can toggle the subtitles on and off (like for a DVD or YouTube video), this will mean the subtitles aren't hardcoded directly into the video but instead are contained as a separate file or track. For this purpose, you might want to take a look at some of the options in this article. Aegisub is also meant to be very good.

However, it seems like you want to have the subtitles directly embedded as part of the video (which means that as long as the video player supports the file format and codec, it will show the subtitles). In this case, if you don't want to make any significant other edits to the video, then you may be best looking at this article on how to directly embed subtitles from a .srt file into a video using VLC. You could also look at HandBrake, which I believe can do the same. Both assume you've already created such a subtitles file, probably using one of the methods already mentioned above.

Alternatively, and particularly if you need to make more edits to the video, you will probably need to use a fully-fledged video editor. The latest versions of Kdenlive have a dedicated captions tool that allows you to type in and time your subtitles directly and is easier than handling traditional title overlays. The tool is still being developed by the Kdenlive developers so its features are limited at the moment, but it might just be what you're looking for.

I hope that helps.
 
Old 08-05-2021, 04:03 AM   #3
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
Hello Valeoak
I will look deeply at what you wrote this afternoon.

The subtitles are contained within a text file (normally with a .srt file suffix) that's read by the video player alongside the video file.
The subtitles are directly embedded into the video file - as much a part of the video as anything else like the background or people captured in the video.

I DO NOT KNOW IF WE CAN USE COLOR OR BOLD TEXT SO I USE CAPS TO ANSWER (NOT TO BE RUDE)
IF PEOPLE DOWNLOAD THE VIDEO USING VIDEO DOWNLOADHELPER, THEY MUST HAVE THE SUBTITLE WITH THE VIDEO

Where you can toggle the subtitles on and off (like for a DVD or YouTube video), this will mean the subtitles aren't hardcoded directly into the video but instead are contained as a separate file or track. For this purpose, you might want to take a look at some of the options in this article. Aegisub is also meant to be very good.

However, it seems like you want to have the subtitles directly embedded as part of the video (which means that as long as the video player supports the file format and codec, it will show the subtitles) YES CORRECT
In this case, if you don't want to make any significant other edits to the video: NO, NO EDITS OF THE VIDEOS AT ALL
, then you may be best looking at this article on how to directly embed subtitles from a .srt file into a video using VLC.
OK I WILL LOOK
You could also look at HandBrake, I ALREADY HAVE THIS SOFTWARE BUT I MUST LEAR HOW TO USE IT
which I believe can do the same. Both assume you've already created such a subtitles file, probably using one of the methods already mentioned above. OK

Alternatively, and particularly if you need to make more edits to the video, you will probably need to use a fully-fledged video editor. The latest versions of Kdenlive have a dedicated captions tool that allows you to type in and time your subtitles directly and is easier than handling traditional title overlays. OK I WILL LOOK, I HAVE THAT SOFTWARE ALREADY INSTALLED
The tool is still being developed by the Kdenlive developers so its features are limited at the moment, but it might just be what you're looking for.
I WANT SOMETHING SIMPLE (DOHHH!!!)

THANK YOU VERY MUCH
I will probably come back with more questions later
Have a nice day where ever you are, here the weather is as sad as people (From the dictatorial former republic of France - Europe)
 
Old 08-05-2021, 04:57 AM   #4
valeoak
Member
 
Registered: Apr 2020
Location: United Kingdom
Distribution: Debian Sid, Pop!_OS
Posts: 49

Rep: Reputation: Disabled
Quote:
Originally Posted by Joelleisfedupwithlinux View Post
Hello Valeoak
I will look deeply at what you wrote this afternoon.

The subtitles are contained within a text file (normally with a .srt file suffix) that's read by the video player alongside the video file.
The subtitles are directly embedded into the video file - as much a part of the video as anything else like the background or people captured in the video.

I DO NOT KNOW IF WE CAN USE COLOR OR BOLD TEXT SO I USE CAPS TO ANSWER (NOT TO BE RUDE)
You've not offended me! But just for your future reference you can use bold and italics using the usual forum tags:
PHP Code:
[B]This will be bold.[/B]
[
I]This will be italicised.[/I
Code:
This will be bold.
This will be italicised.
More usefully, you can also enclose quoted text in quote tags:
PHP Code:
[QUOTE]This is quoted text.[/QUOTE]
This is my reply
Code:
Quote:
This is quoted text.
This is my reply.
Of course, if you click the quote button in the bottom-right corner of the post you're replying to, it will embed in the quote tag the name of the user who wrote it and a link to the post in which they wrote the text.

Quote:
Originally Posted by Joelleisfedupwithlinux View Post
THANK YOU VERY MUCH
I will probably come back with more questions later
Have a nice day where ever you are, here the weather is as sad as people (From the dictatorial former republic of France - Europe)
Let us know how you get on.

I'm from Britain, so it's a rare day in August or September when it's not overcast or raining. Today is not one of those days.
 
Old 08-05-2021, 06:41 AM   #5
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
Let us know how you get on.
Yes I will. Here is one video that I will try to add subtitles to it (I have added it as an attachment, I hope it is there). I hope to have finished before midnight tonight otherwise my PC turns into a pumpkin .... and I also have real things to do

I'm from Britain, Yes it is written on the left next to your name that you are in the UK, it is funny, it is not written for me
 
Old 08-05-2021, 09:56 AM   #6
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
Hi again valeoak

I have translated a short 2 min video, the text is in libreoffice writer.
I also opened the links you sent, one of the link says
Quote:
Let's assume you have a subtitle file. It will most likely be in the SUB or SRT format.
. You also said about the .SRT format
Quote:
The subtitles are contained within a text file (normally with a .srt file suffix) that's read by the video player alongside the video file.
.

1- How do I convert my text file from libreoffice writter into a .SRT file ??
In libreoffice writer, when I do save as I do get many file extension choices but not .SRT
If I do export, it can export as PDF or EPUB, but not SRT.

2- How will I do so the text is shown at the correct moment when the guy talks .... ???

Thanks again for your time.

BTW, I lived in GB for 10 years (2 in Cardiff-Wales, then 7 in Somerset, Hertfordshire and Kent).

Joelle (yeah I know, this is not great security to use ones name )
 
Old 08-05-2021, 10:04 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
You can't save it as srt, you need to convert it (and I think you need a special software or you need to do it manually).
https://unix.stackexchange.com/quest...-to-srt-format
 
Old 08-05-2021, 10:09 AM   #8
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
give me a cord, I will hung myself ..... I go eat a slab of chocolate and I come back
Have you looked at the link you sent to me ???? what do I do with that ????
I am sorry, I am only learning to walk, I am not ready for ice-skating !
...brain overload .... the system has crashed .... please reboot ....
 
Old 08-05-2021, 10:22 AM   #9
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
I found a free tool on the internet, I try ...
https://toolslick.com/conversion/subtitle/txt-to-srt
 
Old 08-05-2021, 11:34 AM   #10
valeoak
Member
 
Registered: Apr 2020
Location: United Kingdom
Distribution: Debian Sid, Pop!_OS
Posts: 49

Rep: Reputation: Disabled
Quote:
Originally Posted by Joelleisfedupwithlinux View Post
Hi again valeoak

I have translated a short 2 min video, the text is in libreoffice writer.
I also opened the links you sent, one of the link says . You also said about the .SRT format .

1- How do I convert my text file from libreoffice writter into a .SRT file ??
In libreoffice writer, when I do save as I do get many file extension choices but not .SRT
If I do export, it can export as PDF or EPUB, but not SRT.

2- How will I do so the text is shown at the correct moment when the guy talks .... ???
Hi, Joelle.

I can't advise on software to convert a .odt file (or similar) to .srt file as I don't know of any. As per my original post regarding the VLC / HandBrake embedding options:
Quote:
Both assume you've already created such a subtitles file, probably using one of the methods already mentioned above.
The good news is that .srt files are simple text files with a specified format. You could just copy your caption text from LibreOffice Writer into a text editor and follow the format to produce your subtitles. Save the file as a .srt file. (I'd advise against doing it directly in LibreOffice Writer as it might embed extra data in the file, unlike a simple text editor).

Quote:
Originally Posted by Joelleisfedupwithlinux View Post
Thanks again for your time.

BTW, I lived in GB for 10 years (2 in Cardiff-Wales, then 7 in Somerset, Hertfordshire and Kent).
Then you have lived in a place I've lived most of my life (thus far, anyway)

Hope the above helps.
 
Old 08-05-2021, 11:49 AM   #11
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
The conversion tools all seem to assume that the source file is .txt and the destination will be made into .srt. It seems fairly simple to me for you to write the subtitle file in libre office, then save it (export it) to a .txt file before attempting to do the conversion.
 
Old 08-05-2021, 12:23 PM   #12
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
I am back. I did not go for a slab of chocolate (I do not have any), I made apple pies ....
And in between I also looked at what is happening here and I discovered that for once a law was passed during daylight and not between 5 people between midnight and 3 AM. Anyway, this is not the matter at hand. ha ha ha ...

Thank you also pan64 for your answer and I apologies for my rude answer but I think you and I are not on the same computing level, you are with Edward Snowden whilst I am with Snow White .... so you should have seen the look on my face when I opened your link ... sorry ....

I used the link I posted before and it magically created a SRT file but since I did not add the time lines, it does things that are bizarre, and I am not sure I can repeat the thing so I will try what you guys (savy, valeo) say, save the ODT as TXT and bla bla bla ... I get on with it ...

If you don't hear from me for 1 hour it is because I either killed myself with apple pies or I am on the phone with people losing their job ....

Speak to you later

Valeo: thanks for your answer on the other post, my other question. yes it will help, thanks.

I send you my video when it is done !

Does anyone know how safe VK is ? It is not owned by Bill and his friends, apparently it is from Russia ? Telegram is Russian I think. I normally do not care about nationalities because this is how you divide people ....
 
Old 08-05-2021, 01:05 PM   #13
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
It does not wooooooorrrrrkkkkk!!!! Arg

I have the mp4 video, I have the SRT file, I follow what is written on the link (obviously not well!) but is does not work.
https://www.dedoimedo.com/computers/vlc-subtitles.html

Normally I have attached 3 files, it is funny I can upload an ODT file but not the SRT file onto this conversation ... strange ....
 
Old 08-05-2021, 01:46 PM   #14
Joelleisfedupwithlinux
Member
 
Registered: Apr 2018
Posts: 48

Original Poster
Rep: Reputation: Disabled
I have killed my computer. I have done something stupid and now I am in deeeeeep troubles: I have lost the bottom bar (the bar with all the icons at the bottom of the screen) and also the start button on the bottom left corner of the screen so I can not start any software at all .... I am searching on how to recover the start button to recover all the apps..... aaaarrrrrrrrrrggggggggggg
 
Old 08-05-2021, 02:30 PM   #15
valeoak
Member
 
Registered: Apr 2020
Location: United Kingdom
Distribution: Debian Sid, Pop!_OS
Posts: 49

Rep: Reputation: Disabled
Hi, Joelle. I'm sorry to hear about the problems with your desktop environment. I hope you manage to revert it to normal. (This is just a guess, but it might be that the software for your desktop bar crashed and hasn't restarted properly. Rebooting your computer might resolve it).

Just so you're aware, I've not been able to see any of your uploaded files. The only valid file uploads are those with the following extensions: .gif, .jpeg / .jpg, .log, .pdf, .png and .txt. There are also strict file limits which would rule out uploading most video files in any case.

It's going to be difficult to diagnose the exact problem you're having with the subtitles without more information, but having now experimented with .srt files and VLC, I might have some suggestions:
  1. The guide doesn't make it clear, but VLC will only pick up your .srt file automatically if it has the same name (excluding the file extension) as the source video file. E.g., if your source video is called video01.mp4, then your .srt file should be named video01.srt. Otherwise, you will need to tick the "Use a subtitle file" option and select the .srt file at the start.
  2. Make sure your .srt file conforms to the format and pay particular attention to all the timestamps: they should be in the format hh:mm:ss,xxx --> hh:mm:ss,xxx where xxx are milliseconds. When I quickly rushed the creation of a sample .srt file to experiment with, I mistyped the first timestamp and it meant the subtitles came in a minute later than I expected (and so, at first, it seemed like they hadn't been included).
  3. I think it's worth double-checking you've got the transcoding options correct (including the necessary check boxes), have selected the corresponding encapsulation and video and audio codecs correctly. If you're not sure what you're doing, select something like "Video for Youtube HD", click the edit icon (the spanner), go to the "Subtitles" tab and tick "Subtitles" and "Overlay subtitles on the video" and don't touch anything else - just click "Save".

I'm sorry that I cannot be of more help in the circumstances.

Last edited by valeoak; 08-05-2021 at 02:32 PM. Reason: Typo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transcoding MKV files with embedded subtitles to MP4's with 'burned in' subtitles TB0ne LinuxQuestions.org Member Success Stories 0 09-17-2014 11:45 AM
[SOLVED] Add existing unix user to existing LDAP antoniemail Linux - Server 7 06-23-2010 12:54 PM
software for rip video add subtitles htamayo Linux - Software 1 06-19-2008 02:58 PM
add an existing user to an existing group? tramni1980 Slackware 5 05-08-2008 07:28 PM
how to add existing files to existing imported kdevelop project?? santana Programming 1 05-22-2007 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration