Questions tagged [video-subtitles]
84 questions
6
votes
1 answer
How to properly convert RTL subtitles in ffmpeg?
I'm using the following command to extract subtitles from a video file, and save it as vtt.
ffmpeg -i video.mkv -map 0:s:0 subs.vtt 2>&1
It's working and outputs the subtitles file. The problem is with RTL (right to left) languages (Hebrew, Arabic…

HTMHell
- 5,761
- 5
- 37
- 79
4
votes
2 answers
How to convert messed-up .vtt sub file from youtube-dl --write-auto-sub download?
My goal is to download a YouTube video with auto-generated subtitles in a separate file like .vtt,.srt, etc.
I am currently trying to achieve this with youtube-dl but I am open to other solutions if needed.
When I run the following command, it…

perry_the_python
- 385
- 5
- 14
3
votes
0 answers
FFmpeg: add subtitles to live stream dynamically
Can we use FFmpge's subtitles filter for dynamic subtitles? For example my subtitles are not coming from the original source and I don't have a srt or ASS file, I am extracting the audio from the source(live rtmp url) and sending it to Microsoft…

Muhammad
- 6,725
- 5
- 47
- 54
3
votes
0 answers
Extract subtitles from mp4 without time marks or position locators
I have an mp4 from a university lecture that has embedded subtitles. I am aware there are tools to extract the captions.
The lecturer is reading from a script which we don't have access to. I just want to extract all the text of the subtitles…

shibainu
- 31
- 1
3
votes
1 answer
multiple lines of subtitles in Moviepy
I'm using MoviePy to create a video with subtitles.
Here's the code to illustrate:
generator = lambda txt: TextClip(txt, font='Arial', fontsize=48, color='Black')
subtitles = SubtitlesClip("captions_cropped.srt", generator)
video =…

Sefi_k
- 87
- 8
3
votes
0 answers
Automatically detect box/coordinates of burned-in subtitles in a video source
In reality I'd like to detect the coordinates of the "biggest" (both in height and width) burned-in subtitle of a given video source. But in order to do this I first need to detect the box coordinates of every distinct subtitle in the sample video,…

AndroidX
- 558
- 4
- 15
3
votes
1 answer
How to convert .ass & .ssa subtitles files fomats to webvtt format in js?
I know how to transform .srt file format to webvtt format in javascript , I want to know how to do the same with .ass & .ssa subtitles files formats to be able to parse them and transform to webvtt format on the fly without using file stream using…

Ahmed Maher
- 1,521
- 17
- 22
3
votes
1 answer
How to download YouTube video subtitles in English using youtube-dl?
I have tried to download subtitles along with the video using the following Python 3.x code. It's just not working.
Here's my code:
from __future__ import unicode_literals
import youtube_dl
ydl_opts = {
'outtmpl':…

Raj
- 69
- 1
- 3
- 11
2
votes
0 answers
English auto-generated subtitles, youtube-dl
I'm using youtube-dl version 2021.12.17.
I'm trying to download from youtube some English subtitles with
valid time specifiers.
When the youtube video has an English transcript and only autogenerated subtitles,
I will use a command such…

Andrew Frighi
- 21
- 1
2
votes
0 answers
How to specify MPEG-DASH adaptation sets in FFmpeg, when using optional output audio and subtitle streams?
I am using the script below to transform videos to MPEG-DASH compliant ones. I want also to be able to process video that have no audio and/or no subtitles. Because of that I marked the streams for audio and subtitles with a ? at the end of the…

Sebsii
- 41
- 2
2
votes
3 answers
ExoPlayer not loading subtitles from .srt file
So I am trying to show subtitles from my .srt file in exoplayer but it does not work.
Do I need to use a seperate SubtitleView to get my subtitles to show up?
Is the subtitleView in the PlayerView is not enough?
I use PlayerView btw.
The exoplayer…

Rag
- 101
- 1
- 11
2
votes
1 answer
How to properly publish an html5 video with subtitles [seo]
How I must publish a video subtitled in two languages (or n)?
All in one publication (one url)
All text coming with this publication is in English.
2
votes
0 answers
Is it possible to get the current line of the subtitle with libvlc?
I want to be able to get the current showing text of the subtitle, possibly as a string. Is this possible?
If possible it would also be nice to get all of the text from the subtitles, not only the current line.
If not possible, is there maybe a…

NotBikkel
- 21
- 1
2
votes
2 answers
Font styling in a .vtt file?
I am creating a video about programming and I want to include subtitles having a .vtt extension. I think it is better if the coding and technical texts in the subtitles are displayed using the Consolas font. Like in this example:
Open Terminal and…

user12208242
- 315
- 1
- 11
2
votes
1 answer
Azure AMS : How to get Sidecar WebVTT for showing Captions/Subtitles in iOS native player?
We have successfully configured Subtitles/Captions in Azure Media Player which plays media on the Web side.
But, how do we configure the same for playing the media managed by AMS in iOS for Native AVPlayer? We know that captions/subtitles can be…

amsDeveloper
- 177
- 4
- 14