srt

Mapping corners to arbitrary positions using Direct2D

我的梦境 提交于 2019-12-02 04:38:27
问题 I'm using WIC and Direct2D (via SharpDX) to composite photos into video frames. For each frame I have the exact coordinates where each corner will be found. While the photos themselves are a standard aspect ratio (e.g. 4:3 or 16:9) the insertion points are not -- they may be rotated, scaled, and skewed. Now I know in Direct2D I can apply matrix transformations to accomplish this... but I'm not exactly sure how. The examples I've seen are more about applying specific transformations (e.g.

Mapping corners to arbitrary positions using Direct2D

我的梦境 提交于 2019-12-01 23:18:32
I'm using WIC and Direct2D (via SharpDX) to composite photos into video frames. For each frame I have the exact coordinates where each corner will be found. While the photos themselves are a standard aspect ratio (e.g. 4:3 or 16:9) the insertion points are not -- they may be rotated, scaled, and skewed. Now I know in Direct2D I can apply matrix transformations to accomplish this... but I'm not exactly sure how. The examples I've seen are more about applying specific transformations (e.g. rotate 30 degrees) than trying to match an exact destination. Given that I know the exact coordinates (A,B

Looking for a working example of addTimedTextSource for adding subtitle to a video from an .srt file in Android 4.1

ε祈祈猫儿з 提交于 2019-11-28 03:57:43
I have been trying to use an .srt file for a timed text source (Only available in android 4.1+ http://developer.android.com/about/versions/android-4.1.html#Multimedia ) . The first problem has to do with getting a file descriptor for the .srt file (in the assets folder, how else would you bundle it in your app?). The file gets compressed automatically so you won't be able to even see the file without changing compile settings or doing a custom build. The easiest solution was to rename the .srt file to .jpg so that it does not get compressed and the openFD method still works. I am now adding

Use ffmpeg to add text subtitles

本小妞迷上赌 提交于 2019-11-27 16:38:38
I am trying to add text subtitles to an .mp4 container using ffmpeg: ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mp4 When I am trying to run this line, it gives me an error : Nmber of stream maps must match number of output streams. If I try to change the mp4 to mkv (although mp4 supports text subtitles), like this: ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mkv It correctly maps the streams, but gives an error : Encoder (codec id 94210) not found for output stream #0.2 When I launch ffmpeg -codecs I can see that srt codec is supported as decoder

Looking for a working example of addTimedTextSource for adding subtitle to a video from an .srt file in Android 4.1

人走茶凉 提交于 2019-11-27 05:17:51
问题 I have been trying to use an .srt file for a timed text source (Only available in android 4.1+ http://developer.android.com/about/versions/android-4.1.html#Multimedia) . The first problem has to do with getting a file descriptor for the .srt file (in the assets folder, how else would you bundle it in your app?). The file gets compressed automatically so you won't be able to even see the file without changing compile settings or doing a custom build. The easiest solution was to rename the .srt

Use ffmpeg to add text subtitles

帅比萌擦擦* 提交于 2019-11-26 15:01:44
问题 I am trying to add text subtitles to an .mp4 container using ffmpeg: ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mp4 When I am trying to run this line, it gives me an error : Nmber of stream maps must match number of output streams. If I try to change the mp4 to mkv (although mp4 supports text subtitles), like this: ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mkv It correctly maps the streams, but gives an error : Encoder (codec id 94210) not