-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
重新封装,不做解编码 #86
Comments
Check https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/master/2_remuxing.c 直接从packet里可以拿到pts |
是从 input_format_context.read_packet() 拿的packet 里面有 pts, 直接output_format_context.write_frame 写进去? `fn main() {
} /// Get
} /// Return output_format_context and encode_context
} /// Transcoding audio and video stream in a multi media file.
}` |
不能直写,要根据input stream和output stream的time_base缩放,可以参考上面给的C源码, |
BTW
可以在脚本里给configure参数加上--enable-gpl 和 --enable-libx264,再单独编一个x264链接上。 |
|
gpl 过不了公司的blackduck |
问题不大,我加几个setter吧。 |
想用rsmpeg 实现下面的功能,因为ffmpeg 是lgpl 协议所有没有libx264 依赖。
./ffmpeg -r 30 -i xxxx.h264 -c:v copy -f mp4 xxxxx.mp4
基于tests/avio_writing.rs 删除了decode 和encode 部分, 但是无法通过 AVframe去设置 pts 时间,导致程序报错,请给一些建议。
图片来自此连接-章节2-重新封装
The text was updated successfully, but these errors were encountered: