RTSP h264 코덱에서 프레임을 가져 오기 위해 다음 명령을 사용했습니다. IP 카메라에서 프레임을 가져올 수 없습니다.

$ ffmpeg -i rtsp://xxxx:[email protected]:xx/tcp/av0_0 -f image2 -vf fps=fps=1/120 img%03d.jpg 

내 출력

ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --disable-yasm libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [rtsp @ 0x2dba3a0] CSeq 6 expected, 0 received. Last message repeated 5 times [rtsp @ 0x2dba3a0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the "analyzeduration" and "probesize" options Guessed Channel Layout for Input Stream #0.1 : mono Input #0, rtsp, from "rtsp://xx:[email protected]:yy/tcp/av0_0": Metadata: title : streamed by the RTSP server Duration: N/A, start: 0.000000, bitrate: 64 kb/s Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s Output #0, image2, to "img%03d.jpg": Output file #0 does not contain any stream Exiting normally, received signal 2. 

댓글

  • ffmpeg -analyzeduration 1G -probesize 50M -i rtsp://xxxx:[email protected]:xx/tcp/av0_0 -f image2 -vf fps=fps=1/120 img%03d.jpg My output
  • 시도

  • 그렇지 않았습니다. ' 작동하지 않습니다. 동일한 출력을 얻었습니다. 오디오와 비디오의 두 가지 스트림을 볼 수 있습니다. 프레임을 얻으려면 비디오 스트림 만 필요합니다. 스트림간에 충돌이 있습니까?
  • 동영상의 해상도와 프레임 속도를 알고 있습니까?
  • Mulvya에게 감사합니다. 나는 실제로 이것으로 그것을 얻었습니다. ffmpeg -rtsp_transport tcp -i rtsp : // xx : [email protected] : fd / tcp / av0_0 -f image2 -vf fps = fps = 1 hello / img % 03d.png

답변

드디어 다음 명령으로 작업했습니다. rtsp_transport를 사용하지 못했습니다.

ffmpeg -rtsp_transport tcp -i rtsp://xx:[email protected]:fd/tcp/av0_0 -f image2 -vf fps=fps=1 hello/img%03d.png 

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다