Transcoding MJPEG to FLV or MP4

后端 未结 3 1143
囚心锁ツ
囚心锁ツ 2020-12-30 17:46

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 we

相关标签:
3条回答
  • 2020-12-30 18:06

    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.

    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

    Also might work FFmpeg with url like http://user:password@host:port/address

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

    0 讨论(0)
  • 2020-12-30 18:08

    Put the user and pass embedded in the same link, intead of http://xx.yy.zz.tt:8080/video.cgi ,use this http://user:pass@xx.yy.zz.tt:8080/video.cgi

    0 讨论(0)
  • 2020-12-30 18:15

    I've used Xuggler in the past when working with IP cameras and they use ffmpeg to do the transcoding work, so this should be possible. If I were you I'd work with a command line like this to check if its supported.

    ffmpeg -i http://xx.yy.zz.tt:8080/video.cgi -vcodec flv -qscale 1 -an output.flv

    0 讨论(0)
提交回复
热议问题