250x250
꾸준희
Enough is not enough
꾸준희
전체 방문자
2,319,223
오늘
157
어제
774

공지사항

  • 꾸준희 블로그
  • 분류 전체보기 (580)
    • 생각 (14)
    • Book Review (38)
    • Paper Review (18)
    • Research Topic (126)
      • Deep Learning (24)
      • Pose Estimation (29)
      • Object Detection (22)
      • Object Segmentation (3)
      • Object Tracking (11)
      • Video Surveillance (4)
      • Action Recognition (6)
      • Stereo Vision (6)
      • 3D Reconstruction (4)
      • Machine Vision (2)
      • Image Processing (11)
      • Dataset (4)
    • Development (76)
      • NVIDIA DeepStream (3)
      • NVIDIA TensorRT (30)
      • NVIDIA TAO Toolkit (2)
      • ONNX (8)
      • PyTorch (5)
      • TensorFlow (15)
      • TensorFlow Lite (1)
      • GPU | CUDA | PyCUDA (12)
    • Programming (147)
      • GStreamer | FFmpeg (6)
      • Python (27)
      • C | C++ (15)
      • OpenCV (34)
      • Linux (36)
      • Embedded linux (7)
      • Etc. (22)
    • Computer Science (62)
      • 학부 및 대학원 과목 (22)
      • 선형대수학 및 기타 수학 (7)
      • SQL-D (33)
    • 삽질 기록 (49)
    • 기타 (50)
      • 참고자료 (30)
      • 좋은 글 (5)
      • 티스토리 (2)
      • 논문 작성 관련 참고 (10)
      • 메모 (0)

블로그 메뉴

  • 👀 CV
  • 🌸 GitHub
  • 💌 LinkedIn
  • 📚 방명록

최근 댓글

  • python으로 만든 코드를 이제 a⋯
    android 초보
  • cannot resolve symbol 'type'⋯
    android 초보
  • 정확히 뭐라고 뜨나요?
    꾸준희
  • 앗 ㅠ 제가 오랜만에 스킨을 바⋯
    꾸준희
  • 선생님 ㅜㅠ 각도 계산하는 부⋯
    android 초보
07-04 07:57

티스토리

hELLO · Designed By 정상우.
꾸준희

Enough is not enough

Programming/GStreamer | FFmpeg

[FFmpeg] RSTP 영상 저장하기

2021. 8. 6. 11:24
반응형

 

아래와 같은 명령어로 RSTP 영상을 저장할 수 있다. 

ffmpeg -i "rtsp://address~" "001.mp4"

 

 

 

하지만 아래와 같이 에러가 날 경우, 

[rtsp @ 0x556150991900] Nonmatching transport in server reply
rtsp://address~: Invalid data found when processing input

 

아래와 같이 rtsp_transport 옵션을 지정해준다. 

ffmpeg -rtsp_transport tcp -i "rtsp://address~" "001.mp4"

 

  -rtsp_transport    <flags>      ED...... set RTSP transport protocols (default 0)
     udp                          ED...... UDP
     tcp                          ED...... TCP
     udp_multicast                .D...... UDP multicast
     http                         .D...... HTTP tunneling
  -rtsp_flags        <flags>      .D...... set RTSP flags (default 0)
     filter_src                   .D...... only receive packets from the negotiated peer IP
     listen                       .D...... wait for incoming connections
     prefer_tcp                   ED...... try RTP via TCP first, if available

 

 

 

 

 

 

 

 

그런데 또 아래와 같은 에러가 날 경우 

[mp4 @ 0x562101de46a0] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2

 

-vsync 옵션을 지정해준다. 

ffmpeg -rtsp_transport tcp -i "rtsp://address~" -vsync 2 "001.mp4"

 

반응형
저작자표시비영리
  • 카카오스토리
  • 트위터
  • 페이스북

'Programming > GStreamer | FFmpeg' 카테고리의 다른 글

[FFmpeg] 비디오 자르기(video crop)  (0) 2022.01.24
[FFmpeg] usb cam 이용하여 실시간 영상 저장하기  (0) 2022.01.13
[FFmpeg] RSTP 영상 저장하기  (0) 2021.08.06
[FFmpeg] ffmpeg command  (0) 2021.08.06
[GStreamer] 참고자료  (0) 2021.03.03
[Video] ffmpeg, ffplay 및 vlc 간단 사용법  (0) 2020.10.20
    'Programming/GStreamer | FFmpeg' 카테고리의 다른 글
    • [FFmpeg] 비디오 자르기(video crop)
    • [FFmpeg] usb cam 이용하여 실시간 영상 저장하기
    • [FFmpeg] ffmpeg command
    • [GStreamer] 참고자료
    꾸준희
    꾸준희
    생각과 기록 그리고 발전
    댓글쓰기
    다음 글
    [LaTex] Overleaf 에서 Latex 로 문서 편집하기
    이전 글
    [FFmpeg] ffmpeg command
    • 이전
    • 1
    • ···
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • ···
    • 580
    • 다음

    티스토리툴바