将MJPEG转换为FLV或MP4 [英] Transcoding MJPEG to FLV or MP4

查看:709
本文介绍了将MJPEG转换为FLV或MP4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对来自IP摄像机的MJPEG流进行转码( http://xx .yy.zz.tt:8080/video.cgi )转换为Linux操作系统下的FLV或MP4流,以便用户可以使用基于Web的Flash播放器(如

I want to transcode MJPEG stream that comes from IP camera (http://xx.yy.zz.tt:8080/video.cgi) to FLV or MP4 stream under Linux OS so that users can play the file using a web based Flash player such as Flowplayer.

我为此发现了VLC,但是我无法弄清楚确切的命令行字符串.我还需要HTTP身份验证功能,因为IP摄像机访问受密码保护.

I discovered VLC for that purpose but I cannot figure out the exact command line string. I also need HTTP authentication feature since IP camera access is password protected.

我也对任何非VLC解决方案感兴趣(ffmpeg?).

I also interested in any non-VLC solution if any (ffmpeg?).

推荐答案

似乎VLC可以执行HTTP身份验证. http://www.videolan.org/doc/play-howto/zh/ch04.html 而且我相信它可以输出到flv. 通常,我首先使用GUI来查看它用作参数的内容,然后再从那里开始.伴侣,那里没有魔术公式.

appears VLC can do HTTP authentication. http://www.videolan.org/doc/play-howto/en/ch04.html and I believe it can output to flv. Typically I start things going by using the GUI to see what it is using as parameters, then go from there. There's no magic formula there, mate.

似乎可以通过类似以下方式输出到flv:

Appears you can output to flv by something similar to:

:sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp3,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/}

http://forum.videolan.org/viewtopic.php ?f = 14& t = 80722

也可以使用类似 http://user:password @ host:port/address

ref: https://ffmpeg.zeranoe.com/forum/viewtopic .php?t = 1139

这篇关于将MJPEG转换为FLV或MP4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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