본문 바로가기

gstreamer

(8)
[gstreamer] PTS_TIME 중복시 # QTmux error 발생시 If your system is possible to have sudden shutdown, please use mpegtsmux or matroskamux. qtmux for generating mp4/mov requires EoS(End of Stream) event to output a valid file. mpegtsmux and matroskamux are streaming-based container, and more suitable for sudden shutdown. https://forums.developer.nvidia.com/t/gstreamer-video-output-file-corrupted-when-suddenly-shutdown-device/11..
동영상 포맷이해 https://blog.naver.com/hcwha/70095361247 동영상의 기본적인 이해 (컨테이너 포맷이란?, 동영상의 변환이란?) ※ 반드시 먼저 읽어 주세요. 제 게시글에서 "동영상"은 "영상+소리"정보를 가진 파일을 가르킵니다. ... blog.naver.com https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=dbfan24&logNo=10128721121 동영상의 기본적인 이해 (컨테이너 포맷이란?, 동영상의 변환이란?) ※ 반드시 먼저 읽어 주세요. 제 게시글에서 "동영상"은 "영상+소리"정보를 가진 파일을 가르킵니다. ... blog.naver.com
[명령어 정리] live stream 상태 체크 방법 (w. ffprobe 간단!) 방법1 단순 확인용, block 인 경우 응답없음 ffprobe "rtsp://아이디:비밀번호@카메라url " ffprobe -i 396025.MP4 -show_packets show_packets 붙여주면 매번 모든패킷 깐 결과 보여줌. pts, pts_time, dts, dts_time 보면 대충 상태 체크 가능 pts란 ? https://gamz.tistory.com/16 방법2 ffprobe로 timestamp 뽑아내기 ffprobe -show_packets ttt.mp4 -show_entries packet=pts_time 가끔 timestamp를 이상하게주는 카메라들이 있음. 체크용. ffmpeg 홈페이지에서 다양한 설정가능 https://ffmpeg.org/ffprobe.html ffprob..
gstreamer : muxer 와 정리 쩔어 먹서쪽 https://devdockr.tistory.com/2086 i.MX 8 GStreamer User Guide - Mux/demux ExamplesChapter 5. Mux/demux Examples 이 섹션에서는 가장 일반적으로 사용되는 mux와 demux 플러그인과 각 플러그인을 올바르게 사용하는 방법에 대한 몇 가지 예제를 보여준다. 5.1. Mux Plugins 5.1.1. qtmux 이 유형의devdockr.tistory.com gstreamer전반적으로https://studyingdever.tistory.com/12 II. 애플리케이션 만들기 : 8장. 패드와 캐퍼빌리티 (3)8.3. 어떤 캐퍼빌리티(capabilities)를 사용할 것인가?캐퍼빌리티(짧게는 캡스)는 두 ..
gstreamer : muxer 와 정리 쩔어 먹서쪽 https://devdockr.tistory.com/2086 i.MX 8 GStreamer User Guide - Mux/demux ExamplesChapter 5. Mux/demux Examples 이 섹션에서는 가장 일반적으로 사용되는 mux와 demux 플러그인과 각 플러그인을 올바르게 사용하는 방법에 대한 몇 가지 예제를 보여준다. 5.1. Mux Plugins 5.1.1. qtmux 이 유형의devdockr.tistory.com  https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html?gi-language=c#pipeline-description  gst-launch-1.0gst-launch-1.0 Thi..
미디어 관련내용 정리 nal / au 란 ? h.264로 인코딩된 비디오를 전송하려면 2가지 옵션이 있다. 1) NALU를 전송프로토콜로 패킷화하기 2) Byte-stream : NALUs앞에 시작코드를 추가하기 ( 이를통해 디코더는 NALU의 시작을 알 수 있다. ) 이 두옵션은 rtph264pay의 기능에서 찾아볼수 있는데, stream-format avc는 1)을 나타내고, byte-stream은 2)를 나타낸다. 원문 더보기 To transport h264 encoded video there are two options: 1.) Paketize a NALU into a transport protocol 2.) Byte-stream, which adds a Start Code Prefix in front of NALUs..
[python] mp4 file streaming with gstreamer gstreamer을 이용해 file을 streaming 하는 코드이다. gstmeamer 설치후, 아래 내용을 python으로 돌리자. GstRTSPServer 을 통해 mp4를 실시간 스트리밍 할 수 있다. gi를 설치하는데 상당히 애를 먹었었다. >> pip install PyGObjec 에러 뜨면, 에러를 자세히 읽은 다음, 설치하란거 설치하면 된다. 아래 코드의 내용은, GstRTSPServer을 통해, mp4파일을 "rtsp://localhost:{PORT}/{MOUNTPOINT}" 의 url을 통해 송출한다. 아래 파일실행후, 아래 명령어를 통해서 스트림이 잘 나오는지 확인할 수 있다. ffprobe -v verbose -show_packets "rtsp://localhost:8554/test..
Gstreamer Memory monit with valgrind https://snapcraft.io/install/valgrind/centos Install valgrind on CentOS using the Snap Store | Snapcraft Get the latest version of valgrind for on CentOS - A programming tool for memory debugging, leak detection, and profiling snapcraft.io 1. valgrin 설치 방법 2 . gstreamer 를 사용할 때, supp 를 넣어줘야 오탐을 방지할 수 있다. 외부라이브러리 라서 glib으로 잡을경우 대량의 오탐이 발생한다.! 다음 링크는 ubuntu 에서 valgrind로 gstreamer 변화를 관찰하는데 유용하다. 더..