subtitle

Remove words from a subtitle file that aren't in a wordlist (of common words)

青春壹個敷衍的年華 提交于 2021-02-10 14:51:16
问题 I have some subtitle files, and I'm not intending to learn every single word in these subtitles, there is no need to learn some hard terms like: cleidocranial, dysplasia... I found this script here: Remove words from a cell that aren't in a list. But I have no idea how to modify it or run it. (I'm using linux) Here is our example: subtitle file (.srt): 2 00:00:13,000 --> 00:00:15,000 People with cleidocranial dysplasia are good. wordlist of 3000 common words (.txt): ... people with are good .

In ffmpeg, how do I scale dvdsub subtitles to match video size, using scale2ref filter?

旧时模样 提交于 2021-02-10 04:26:38
问题 I have an mpeg file, recorded from live TV, containing video and multiple audio and subtitles streams. My eventual goal is to be able to create a smaller video file as the mpeg file is multi-gigabytes in size. My first step on that path is just to be able to select one each of the video, audio and subtitle streams and copy them to an mkv file, discarding the streams I'm not interested in. (I chose mkv as it will allow storing a dvdsub subtitle stream where other container formats wont.) The

In ffmpeg, how do I scale dvdsub subtitles to match video size, using scale2ref filter?

给你一囗甜甜゛ 提交于 2021-02-10 04:23:12
问题 I have an mpeg file, recorded from live TV, containing video and multiple audio and subtitles streams. My eventual goal is to be able to create a smaller video file as the mpeg file is multi-gigabytes in size. My first step on that path is just to be able to select one each of the video, audio and subtitle streams and copy them to an mkv file, discarding the streams I'm not interested in. (I chose mkv as it will allow storing a dvdsub subtitle stream where other container formats wont.) The

In ffmpeg, how do I scale dvdsub subtitles to match video size, using scale2ref filter?

为君一笑 提交于 2021-02-10 04:17:29
问题 I have an mpeg file, recorded from live TV, containing video and multiple audio and subtitles streams. My eventual goal is to be able to create a smaller video file as the mpeg file is multi-gigabytes in size. My first step on that path is just to be able to select one each of the video, audio and subtitle streams and copy them to an mkv file, discarding the streams I'm not interested in. (I chose mkv as it will allow storing a dvdsub subtitle stream where other container formats wont.) The

In ffmpeg, how do I scale dvdsub subtitles to match video size, using scale2ref filter?

旧城冷巷雨未停 提交于 2021-02-10 04:17:26
问题 I have an mpeg file, recorded from live TV, containing video and multiple audio and subtitles streams. My eventual goal is to be able to create a smaller video file as the mpeg file is multi-gigabytes in size. My first step on that path is just to be able to select one each of the video, audio and subtitle streams and copy them to an mkv file, discarding the streams I'm not interested in. (I chose mkv as it will allow storing a dvdsub subtitle stream where other container formats wont.) The

Dump subtitle from AVSubtitle in the file

扶醉桌前 提交于 2021-01-29 05:15:59
问题 In FFMPEG sofftware, AVPicture is used to store image data using data pointer and linesizes.It means all subtitles are stored in the form of picture inside ffmpeg. Now I have DVB subtitle and I want to dump picture of subtitles stored in AVPicture in a buffer. I know these images subtitles can be dump using for, fopen and sprintf. But do not know how to dump Subtitle.I have to dump subtitles in .ppm file format. Can anyone help me to dump picture of subtitles in buffer from AVSubtitle . 回答1:

ffmpeg set subtitles track as default

笑着哭i 提交于 2020-05-20 13:44:53
问题 By adding an .ass subtitles track to an mkv video with ffmpeg, it isn't set as default track, so on playback you have to manually turn on subtitles. Is it possible to set the default flag for the subtitles track? ffmpeg command used: ffmpeg -i video.mp4 -i subtitles.ass -c:v libx264 -preset veryslow \ -pix_fmt yuv420p10le -c:a copy -c:s copy output.mkv Note that I want to keep .ass subtitle format, not convert the subtitles to mov_text like suggested in this similar question: How to set

ffmpeg set subtitles track as default

陌路散爱 提交于 2020-05-20 13:44:05
问题 By adding an .ass subtitles track to an mkv video with ffmpeg, it isn't set as default track, so on playback you have to manually turn on subtitles. Is it possible to set the default flag for the subtitles track? ffmpeg command used: ffmpeg -i video.mp4 -i subtitles.ass -c:v libx264 -preset veryslow \ -pix_fmt yuv420p10le -c:a copy -c:s copy output.mkv Note that I want to keep .ass subtitle format, not convert the subtitles to mov_text like suggested in this similar question: How to set

How to force QT5 MediaPlayer to show Subtitles?

本小妞迷上赌 提交于 2020-05-09 14:01:27
问题 I am evaluating a migration from Qt 4.8 towards Qt 5.2 and the most important point is the multimedia backend. In Qt 5.2 there are some important features the Phonon backend in Qt 4.8 does not provide. But at least the elder version showed subtitles (SRT file in the same directory as the video file). Neither the documentation nor the trial-and-error provided me any results. So, does anyone know how to FORCE Qt 5 to show these subtitles? Or isnt it even supported (would be a shame) Any help is