RTP JPEG problem
Vadim Shmelev
vadim.shmelev at axxonsoft.dev
Wed Oct 16 10:38:42 UTC 2024
[https://res.public.onecdn.static.microsoft/assets/mail/file-icon/png/generic_16x16.png]mjpeg_1920x1080.mkv<https://itvgrp-my.sharepoint.com/:v:/g/personal/vadim_shmelev_axxonsoft_dev/EcGadIC_2glJvr-ALTFXhzMBnIE3R7FzXgQ8c6AlJdTR5g>
Hi, all!
I'm on Windows and I have a video in MJPEG format. ffmpeg shows the following information about it:
Input #0, matroska,webm, from 'D:\Movies\1920x1080\mjpeg_1920x1080.mkv':
Metadata:
ENCODER : Lavf58.12.100
Duration: 00:01:12.24, start: 0.000000, bitrate: 15763 kb/s
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
Metadata:
ENCODER : Lavc58.18.100 mjpeg
DURATION : 00:01:12.240000000
I can play it correctly using the command:
.\gst-launch-1.0.exe filesrc location=D:/Movies/1920x1080/mjpeg_1920x1080.mkv ! matroskademux ! jpegparse ! jpegdec ! videoconvert ! autovideosink
But if I try to send the file as an RTP stream and then receive it, the resulting picture is completely broken. Here are the commands:
.\gst-launch-1.0.exe filesrc location=D:/Movies/1920x1080/mjpeg_1920x1080.mkv ! matroskademux ! jpegparse ! rtpjpegpay ! udpsink host=127.0.0.1 port=5000
.\gst-launch-1.0.exe udpsrc uri=udp://127.0.0.1:5000 caps="application/x-rtp, media=video, encoding-name=JPEG" ! rtpjpegdepay ! jpegparse ! jpegdec ! videoconvert ! autovideosink
Could you please advise me what could be the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20241016/6f6ba648/attachment.htm>
More information about the gstreamer-devel
mailing list