H264 ip camera通过gstreamer

时间:2014-03-19 20:08:18

标签: gstreamer h.264 ip-camera

我有网络摄像头(中国)可以玩MJPEG和h.264。我想用gstreamer保存流,但是如果我可以用MJPEG来做,我就不能用h264来做。我知道,那台相机给了h264流。开发人员的程序显示它,如果我用这些程序保存视频,我看到它是h264。

General
Complete name : C:\RecordFiles\20140319\IPCAM1\20140319_232127_141.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 4.11 MiB
Duration : 7s 280ms
Overall bit rate : 4 740 Kbps


Video ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Codec ID : h264
Duration : 7s 280ms
Bit rate : 4 733 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.205
Stream size : 4.11 MiB (100%)


Audio ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 7s 280ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel count : 1 channel
Sampling rate : 8 000 Hz
Bit depth : 16 bits
Stream size : 114 KiB (3%)
Alignment : Aligned on interleaves

所以我提供所有数据,如果有人可以帮助调整gstreamer,我会很高兴 此作品

gst-launch souphttpsrc location="http://shonlinecam1.dyndns.org:81/videostream.cgi?loginuse=user&loginpas=123" \
    ! jpegparse ! jpegdec \
    ! x264enc bitrate=512 key-int-max=45 speed-preset=superfast threads=1 \
    ! video/x-h264,stream-format=avc,alignment=au,profile=constrained-baseline \
    ! h264parse ! fakesink

这不起作用

gst-launch souphttpsrc \
      is-live=true \
      location="http://shonlinecam1.dyndns.org:81/livestream.cgi?user=user&pwd=123&streamid=0" \
    ! h264parse ! decodebin2 ! fakesink

所有链接都是真实的,请帮忙。

0 个答案:

没有答案
相关问题