可以及时code的ffmpeg烧? [英] Can ffmpeg burn in time code?

查看:194
本文介绍了可以及时code的ffmpeg烧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在时间code将视频刻录,我想知道,如果这是FFmpeg的有能力的东西吗?

I have a need to burn in a time code to a video and am wondering if this is something that ffmpeg is capable of?

推荐答案

简短的回答,没有。

长一点的回答,是的,但如果不使用一个单独的库来创建它们所呈现的时间code中的帧,透明填充框架的其余部分,然后用FFmpeg的重叠在现有的视频帧。关闭我的头顶,我不知道如何做到这一点,但我敢肯定,如果你是有创意,你自己看着办吧。

Long answer, yes, but not without using a separate library to create the frames with the rendered time code on them, with transparency filling the rest of the frame, then using FFmpeg to overlay the frames on the existing video. Off the top of my head I don't know how to do this, but I'm sure if you're creative you can figure it out.

编辑:我已经在这个问题上的工作,因为这对我来说是一个有趣的问题/项目。我已经走在了解决方案远一点写一个Perl脚本将生成一个。 SRT 内嵌有从中FFmpeg的配置才能够读取元数据任何给定的视频文件时code文件。它使用 视频:: FFmpeg的 图书馆阅读时间和节约了字幕文件的 $ {}视频污泥龄。这将使它所以它会自动在Mplayer的,如果你在插入以下行渲染〜/ .mplayer /下的配置

I've been working on this problem because it is an interesting question/project for me. I have come a little further in the solution by writing a Perl script that will generate a .srt file with the time code embedded in it for any given video file from which FFmpeg is configured to be able to read the metadata. It uses the Video::FFmpeg library to read the duration and saves a subtitle file as ${video}.srt. This will make it so it will render automatically in Mplayer if you insert the following lines in your ~/.mplayer/config:

# select subtitle files automatically in the current directory, all files
# matching the basename of the current playing file
sub-fuzziness=1

仍在研究如何定位和在视频上叠加并重新连接$ C $渲染字幕c。在相同的格式。我知道更多,我会更新这个帖子。

Still working on how to position and overlay the rendered subtitles on a video and re-encode in the same format. I'll update this post as I know more.

这篇关于可以及时code的ffmpeg烧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆