RTP JPEG problem
Vadim Shmelev via gstreamer-devel <[email protected]> Wed, 16 Oct 2024 10:38:42 +0000
| Newsgroups | gmane.comp.video.gstreamer.devel |
|---|---|
| Message-ID | <GV2PR10MB62846E076FF576D738361193F8462@GV2PR10MB6284.EURPRD10.PROD.OUTLOOK.COM> |
--_000_GV2PR10MB62846E076FF576D738361193F8462GV2PR10MB6284EURP_
Content-Type: text/plain; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
[https://res.public.onecdn.static.microsoft/assets/mail/file-icon/png/gener=
ic_16x16.png]mjpeg_1920x1080.mkv<https://itvgrp-my.sharepoint.com/:v:/g/per=
sonal/vadim_shmelev_axxonsoft_dev/EcGadIC_2glJvr-ALTFXhzMBnIE3R7FzXgQ8c6AlJ=
dTR5g>
Hi, all!
I'm on Windows and I have a video in MJPEG format. ffmpeg shows the followi=
ng 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/unknow=
n), 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=3DD:/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 res=
ulting picture is completely broken. Here are the commands:
.\gst-launch-1.0.exe filesrc location=3DD:/Movies/1920x1080/mjpeg_1920x1080=
.mkv ! matroskademux ! jpegparse ! rtpjpegpay ! udpsink host=3D127.0.0.1 po=
rt=3D5000
.\gst-launch-1.0.exe udpsrc uri=3Dudp://127.0.0.1:5000 caps=3D"application/=
x-rtp, media=3Dvideo, encoding-name=3DJPEG" ! rtpjpegdepay ! jpegparse ! jp=
egdec ! videoconvert ! autovideosink
Could you please advise me what could be the problem?
--_000_GV2PR10MB62846E076FF576D738361193F8462GV2PR10MB6284EURP_
Content-Type: text/html; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dkoi8-r">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<span class=3D"_Entity _EType_OWALink _EId_OWALink _EReadonly_1" style=3D"d=
isplay: inline-block;"><span><a href=3D"https://itvgrp-my.sharepoint.com/:v=
:/g/personal/vadim_shmelev_axxonsoft_dev/EcGadIC_2glJvr-ALTFXhzMBnIE3R7FzXg=
Q8c6AlJdTR5g" rel=3D"noopener noreferrer" id=3D"OLK_Beautified_eb0d8cd3-a9b=
9-f9b2-1ef8-3eae7e80948f" class=3D"OWAAutoLink eScj0 none" data-ogsc=3D"" s=
tyle=3D"padding: 0px 1px; border-radius: 2px; user-select: all; background-=
color: rgb(243, 242, 241);" data-loopstyle=3D"linkonly"><img class=3D"suRDx=
" alt=3D"" role=3D"presentation" style=3D"width: 16px; height: 16px; vertic=
al-align: middle; padding: 1px 2px 2px 0px;" src=3D"https://res.public.onec=
dn.static.microsoft/assets/mail/file-icon/png/generic_16x16.png">mjpeg_1920=
x1080.mkv</a></span></span>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Hi, all!</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
I'm on Windows and I have a video in MJPEG format. ffmpeg shows the followi=
ng information about it:</div>
<blockquote style=3D"margin-left: 0.8ex; padding-left: 1ex; border-left: 3p=
x solid rgb(200, 200, 200);">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Input #0, matroska,webm, from 'D:\Movies\1920x1080\mjpeg_1920x1080.mkv':</d=
iv>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Metadata:</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ENCODER : Lavf58.12.100</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Duration: 00:01:12.24, start: 0.000000, bitrate: 15763 kb/s</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/u=
nknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)</di=
v>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Metadata:</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ENCODER : Lavc58.18.100 mj=
peg</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
DURATION : 00:01:12.2400000=
00</div>
</blockquote>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
I can play it correctly using the command:</div>
<blockquote style=3D"margin-left: 0.8ex; padding-left: 1ex; border-left: 3p=
x solid rgb(200, 200, 200);">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
.\gst-launch-1.0.exe filesrc location=3DD:/Movies/1920x1080/mjpeg_1920x1080=
.mkv ! matroskademux ! jpegparse ! jpegdec ! videoconvert ! autovideosink</=
div>
</blockquote>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
But if I try to send the file as an RTP stream and then receive it, the res=
ulting picture is completely broken. Here are the commands:</div>
<blockquote style=3D"margin-left: 0.8ex; padding-left: 1ex; border-left: 3p=
x solid rgb(200, 200, 200);">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
.\gst-launch-1.0.exe filesrc location=3DD:/Movies/1920x1080/mjpeg_1920x1080=
.mkv ! matroskademux ! jpegparse ! rtpjpegpay ! udpsink host=3D127.0.0.1 po=
rt=3D5000</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
.\gst-launch-1.0.exe udpsrc uri=3Dudp://127.0.0.1:5000 caps=3D"applica=
tion/x-rtp, media=3Dvideo, encoding-name=3DJPEG" ! rtpjpegdepay ! jpeg=
parse ! jpegdec ! videoconvert ! autovideosink</div>
</blockquote>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Could you please advise me what could be the problem?</div>
</body>
</html>
--_000_GV2PR10MB62846E076FF576D738361193F8462GV2PR10MB6284EURP_--