subtitle

Subtitle not visible while converting GIF with ffmpeg

此生再无相见时 提交于 2019-12-12 03:48:50
问题 I couldn't make a subtitled gif with a proper quality and a subtitle. Here is my bash script: start_time=00:00:45 duration=5 PALETTE="palette.png" SUBTITLE="subtitles=sub.srt:force_style='Fontsize=24'" FILTERS="fps=20,scale=400:-1:flags=lanczos" ffmpeg -ss $start_time -t $duration -i $1 -vf "$FILTERS,palettegen" -y $PALETTE ffmpeg -ss $start_time -t $duration -i $1 -i $PALETTE -lavfi "$FILTERS[x];[x][1:v] paletteuse" -y $2 -vf $SUBTITLE It returns no error, just no subtitle on the output gif.

how to add multiple subtitles in Exo Player 2

a 夏天 提交于 2019-12-11 10:58:00
问题 I want to show subtitles with ExoPlayer 2 . users can choose between languages (English,German, or Arabic) . Video links are HLS (.m3u8) and subtitles are .str files . I couldn't find any samples to do this. is there any sample? 回答1: The link I added as a comment to your original post will be how you'll build the UI around text track selection. Then to actually get the tracks to be added to your mp4 file (or whatever the format is), you'll want to use a MergingMediaSource . The simple version

Echo the subtitle of a PARENT page within WordPress?

冷暖自知 提交于 2019-12-11 08:57:44
问题 I'm attempting to fetch the subtitle from the PARENT page and echo the text within a title tag. Function: <?php $id_to_get = $post->ID; if ( $post->post_parent ) { $id_to_get = $post->post_parent; } $parent = $id_to_get; $title = get_the_title($parent); $subtitle = get_post_meta($id_to_get, '_base_page_subtitle', true); ?> HTML Implementation: ...title="<?php echo $subtitle; ?>"> Unfortunately, it is not successfully grabbing the subtitle text. I'm able to populate the title echoing the

Update MapKit annotation subtitle and image

本秂侑毒 提交于 2019-12-11 00:52:44
问题 I've searched a bit around the web and found a few ideas on how to do what I want, but I would still like to know what you think I should do. Here is the context : I'm developing an app for iOS 5. I use MapKit to display a map, and I add around 5000 annotations to it - yup, that seems a lot, but don't worry, I use a clustering library :). In order not to load them every time the user opens the map, I create them in my appDelegate (I create an array of annotations, and call [_mapView

Making Batch file code with VBScript to work with Unicode symbols

故事扮演 提交于 2019-12-08 11:09:06
问题 So recently I asked for help with creating .srt subtitles. Here is the link. I got the help and everything works fine until the videofile in the folder has unicode symbols in its name. If it does, then VBScript error appears. Question is how to make this code work correctly with Unicode symbols. Here is the code: @echo off&cls ::The Path of your Videos files set "$VideoPath=C:\FolderwithVideos" ::If you want your Code in this BAT remove the REMs Below : rem dir "%$VideoPath%" /O:S /b /-p /o

support srt/vtt subtitle and syncing in video player flutter

浪子不回头ぞ 提交于 2019-12-08 09:50:46
问题 I want to play srt subtitles in my app. I have integrated srt_parser so far. Also, I am able to get the current position of the player by this code inMilliseconds = _videoPlayerController.value.position.inMilliseconds; Here is srt parse code. String data = '''1 00:00:01,600 --> 00:00:04,200 English (US) 2 00:00:05,900 --> 00:00:07,999 This is a subtitle in American English 3 00:00:10,000 --> 00:00:14,000 Adding subtitles is very easy to do'''; srtParser() { List<Subtitle> subtitles = parseSrt

Using ffmpeg to overlay dvdsub subtitles

允我心安 提交于 2019-12-07 06:47:47
问题 I am trying to overlay a dvdsub file pair (*.idx + *.sub) to a video file. Here is the sub pair. This is the batch script with the command line I am trying to use: @echo off set srcVidFile1="myvideo.mov" set srcSubFile=mysub.sub set srcIdxFile=mysub.idx set destFile=D:\testsub.mp4 ffmpeg.exe -i %srcVidFile1% -i %srcSubFile% -i %srcIdxFile% -filter_complex "[0:v][1:s]overlay" -c:s dvdsub -c:v libx264 -crf 24 -c:a aac -b:a 160K -ar 48K -strict -2 -y %destFile% This however only accepts 720x576

超赞的看英语视频的方式

时间秒杀一切 提交于 2019-12-05 12:14:19
一次意外,我在油管上看老外的新闻的时候字幕比视频放的慢了一拍.等他说完了一句字幕才出现,这样看下来我个人觉得能锻炼听力,而不是光盯着字幕了,不失为一种学习英语的好方法. 我想再youtube上进行字幕设置,可是并没有这样的功能. 于是我想可以找一个字幕播放器,来自己控制它的播放速度,只要慢一拍即可. 再伟大的github宝库上我找了这款软件penguin subtitle player,英语真的很重要,不然重要的东西你找不到. https://github.com/carsonip/Penguin-Subtitle-Player 找到了这款软件,接着就是搞youtube上的字幕, 接下来我又在github上找到了Download Youtube Subtitle的油猴脚本 https://github.com/1c7/Youtube-Auto-Subtitle-Download 这样就大功告成,可以去看啦! 来源: https://www.cnblogs.com/lionli/p/11924263.html

Using ffmpeg to overlay dvdsub subtitles

佐手、 提交于 2019-12-05 10:47:57
I am trying to overlay a dvdsub file pair (*.idx + *.sub) to a video file. Here is the sub pair. This is the batch script with the command line I am trying to use: @echo off set srcVidFile1="myvideo.mov" set srcSubFile=mysub.sub set srcIdxFile=mysub.idx set destFile=D:\testsub.mp4 ffmpeg.exe -i %srcVidFile1% -i %srcSubFile% -i %srcIdxFile% -filter_complex "[0:v][1:s]overlay" -c:s dvdsub -c:v libx264 -crf 24 -c:a aac -b:a 160K -ar 48K -strict -2 -y %destFile% This however only accepts 720x576 VOBsub files. And also the color gets inverted. My video however is 1080p and do have a 1920x1080