ffmpeg

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

Output a Java window as a webcam stream

故事扮演 提交于 2021-02-10 03:59:57
问题 I would like to write a program perferably in Java that can display animated overlays on a screen. The screen will then be broadcast streamed over the internet using a separate program called x-split. A good way to do this would be to create a transparent window in java which will display animated files (with transparancy) and the output of this window (Its display) should ideally appear in the webcam device list so it can be easily picked up by x-split which will allow it to be arranged

Output a Java window as a webcam stream

核能气质少年 提交于 2021-02-10 03:56:07
问题 I would like to write a program perferably in Java that can display animated overlays on a screen. The screen will then be broadcast streamed over the internet using a separate program called x-split. A good way to do this would be to create a transparent window in java which will display animated files (with transparancy) and the output of this window (Its display) should ideally appear in the webcam device list so it can be easily picked up by x-split which will allow it to be arranged

Android硬件编解码与软件编解码

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-09 20:03:00
最近做了一个android项目用到编解码功能。大概需求是:通过摄像头拍摄一段视频,然后抽帧,生成一个短视频,以及倒序视频,刚开始直接用 H.264 编码格式,没有使用MP4容器封装。做了这些功能后,反而觉得使用MP4格式更加兼容各机型,减少BUG出现。举个明显例子:在Android硬编的时候,常常会用到 MediaCodec和MediaExtractor 相结合。但是,如果你用的 H.264 裸视频文件,MediaExtractor 的 setSource 函数会报异常,它在某些机型(如魅族Note2,系统是5.1)无法解析该视频文件。 得到大概的需求后,最初我们使用FFmpeg来做视频编解码,所谓软件编解码。由于在处理的过程中速率太慢,且需要在解码后快速展示,所以该方案无法达到我们的预想效果(一个FFmpeg视频解码,并保存为jpeg例子: https://github.com/xiaoxiaoqingyi/ffmpeg-android-video-decoder )。但其也有一些优点,比如在兼容方面,颜色转换方面都做得很好,毕竟不是硬件编解码(国内这么多机型,你懂的),其次FFmpeg能输出指定帧,而Android硬解(MediaCodec)不能输出指定帧,需要输入好几帧到解码器,才能解码出一帧。目前我还是没有找到输入一帧解出一帧的方案,哪位大神知道的,可以指导指导。

FFmpeg Reloading Changed image overlay whilst using a complex filter/

浪子不回头ぞ 提交于 2021-02-09 11:58:08
问题 I am currently using this code to overlay an image over a stream . I would like to change the image being overlayed regularly. I am using a second script to cp a randomly selected jpg from a folder to a specific folder/advert.jpg every minute. When i run ffmpeg it keeps on using the original image even though the original image in the directory would have been overwritten. ffmpeg -re -i "http://127.0.0.1:8000/251.m3u8" -loop 1 -i "/home/johan/CurrentAd/advert.jpg" -filter_complex "[1]trim=0

Zooming animation in FFMPEG

三世轮回 提交于 2021-02-08 23:43:28
问题 I need to make a zooming animation for a video input. Making a panning animation is possible with the crop filter with something like this: "crop=320:240:max(0\\,min(iw-ow\\,n)):0" Where the first two parameters, width and height, are fixed, and the second two parameters, accept frame number n or timestamp t as expression parameters. But width and height are evaluated only once (and cannot use n or t ), so I cannot crop a size in function of time and then apply a scale filter to the original

Zooming animation in FFMPEG

我只是一个虾纸丫 提交于 2021-02-08 23:43:25
问题 I need to make a zooming animation for a video input. Making a panning animation is possible with the crop filter with something like this: "crop=320:240:max(0\\,min(iw-ow\\,n)):0" Where the first two parameters, width and height, are fixed, and the second two parameters, accept frame number n or timestamp t as expression parameters. But width and height are evaluated only once (and cannot use n or t ), so I cannot crop a size in function of time and then apply a scale filter to the original