libavformat

    0热度

    1回答

    我正在使用ffmpeg作为其核心功能的一部分的python项目。从本质上说ffmpeg我用归结为这两个命令的功能: ffmpeg -i udp://<address:port> -qscale:v 2 -vf "fps=30" sttest%04d.jpg ffmpeg -i udp://<address:port> -map data-re -codec copy -f data out.bi

    -1热度

    1回答

    它可以解析主播放列表来获取和存储所有的URL与变异有关,使用libav,根据我所选择的变型,使下载。感谢所有帮助是值得欢迎

    1热度

    1回答

    我试试这个代码以获取媒体文件的时间: AVFormatContext* pFormatCtx = NULL; avformat_open_input(&pFormatCtx, filename.c_str(), NULL, NULL); if (pFormatCtx != 0) { avformat_find_stream_info(pFormatCtx, NULL);

    1热度

    2回答

    我试图用FFmpeg和C++创建mp4视频文件,但结果我收到破损的文件(Windows播放器显示“无法播放... 0xc00d36c4”)。如果我创建.h264文件,它可以使用'ffplay'播放并通过CL成功转换为mp4。 我的代码: int main() { char *filename = "tmp.mp4"; AVOutputFormat *fmt; AVFo

    0热度

    1回答

    我使用在Arch Linux上运行的应用libavformat获取媒体文件MIME类型的C++应用程序。目前使用以下行: std::string path = "/path/to/file.extension"; av_register_all(); AVFormatContext* pFormatCtx = avformat_alloc_context(); avformat_open_

    -1热度

    1回答

    为了确定给定文件的视频持续时间,我使用libavformat。我的程序如下所示: #include <stdio.h> #include <libavformat/avformat.h> #include <libavutil/dict.h> int main (int argc, char **argv) { AVFormatContext *fmt_ctx = NULL;

    0热度

    2回答

    我正在构建一个程序(我想使用libavformat而不是ffmpeg可执行文件)将直播视频流传输到Icecast服务器,它看起来像FFmpeg应该能够做到这一点。我可以写实时视频到一个文件(这不是简单的开头:)),但我找不到简单的代码/例如如何使用avformat/avio写入Icecast(网络)挂载点。 任何指向示例代码的指针将不胜感激。

    0热度

    1回答

    使用最近版本的FFmpeg阅读图像文件时遇到了内存泄漏,我无法跟踪。 似乎填补了AVFrame与avcodec_send_packet和avcodec_receive_frame后,我到av_frame_free呼叫没有实际解除分配AVBuffer对象withing框架。我唯一没有解脱的是AVCodecContext。如果我试图这样做,我会崩溃。 我已经创建了这个示例程序,它是关于尽可能简单,因为

    0热度

    1回答

    我试图做一个简单的影音播放器,并在某些情况下,我得到如下正确的值: checking /media/timecapsule/Music/02 Baawre.mp3 [mp3 @ 0x7f0698005660] Skipping 0 bytes of junk at 2102699. dur is 4396400640 duration is 311 然而,在其他地方,我得到否定的持续时间

    0热度

    1回答

    我正在编写一个程序以从视频流中提取图像。到目前为止,我已经想出了如何寻找正确的帧,解码视频流,并将相关数据收集到AVFrame结构中。我现在试图将数据写入JPEG图像,但我的代码无法正常工作。我得到的代码是从这里:https://gist.github.com/RLovelett/67856c5bfdf5739944ed int save_frame_as_jpeg(AVCodecContext