H264 ip摄像头通过gstreamer

H264 ip摄像头通过gstreamer,gstreamer,h.264,ip-camera,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 Interl

我有可以播放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
这不起作用

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

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

当控制台不工作时,您会在控制台中看到什么错误?顺便说一句,链接不再是真实的了。第一个有
loginuse=user&loginpas=123
,而第二个有
user=user&pwd=123