RTSP-MJPEG stream playback: Poor image quality problem

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

RTSP-MJPEG stream playback: Poor image quality problem

pavel
Hello.

I have a network live video camera streaming in local network video over RTSP protocol in MJPEG format.

I have next command to play  the stream:
gst-launch rtspsrc location=$STREAM1 latency=1 drop-on-latency=1 debug=1 ! decodebin2 ! ffmpegcolorspace ! video/x-raw-yuv ! ffmpegcolorspace ! autovideosink

On the other hand, I have a Mplayer2 playing the same stream, and I have to admit, that Mplayer produces a way better picture, as well as VLC player.

How can I improve the image quality produced by gstreamer?

Reply | Threaded
Open this post in threaded view
|

Re: [gmail] RTSP-MJPEG stream playback: Poor image quality problem

Marc Leeman
> I have a network live video camera streaming in local network video over
> RTSP protocol in MJPEG format.

RTSP has nothing to do with the quality

> On the other hand, I have a Mplayer2 playing the same stream, and I have to
> admit, that Mplayer produces a way better picture, as well as VLC player.
>
> How can I improve the image quality produced by gstreamer?
>
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4656577/Screenshot_from_2012-10-12_13_31_13.png>

There is way too little information to get into this; but I would guess
that you are not getting all the data to/through the decoder.

At the very least, a more detailed pipeline would need to be provided.

--
  greetz, marc
harvey 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 GNU/Linux

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] RTSP-MJPEG stream playback: Poor image quality problem

pavel
Hello.

What information is needed to analyze this problem?

I have tested this commandline on at 3 different machines = same result.

Reply | Threaded
Open this post in threaded view
|

Re: [gmail] RTSP-MJPEG stream playback: Poor image quality problem

Marc Leeman
> What information is needed to analyze this problem?
>
> I have tested this commandline on at 3 different machines = same result.

Maybe I'm missing something but the command line would already be a start.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] RTSP-MJPEG stream playback: Poor image quality problem

pavel
Hi, the command line is there in the 1st post, just above the picture.



 gst-launch rtspsrc location=$STREAMB1 latency=1 ! decodebin2 ! ffmpegcolorspace! video/x-raw-yuv ! autovideosink

verbose output looks fine to me:

gst-launch rtspsrc location=$STREAMB1 latency=1 ! decodebin2 ! ffmpegcolorspace! video/x-raw-yuv ! autovideosink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency = 1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: buffer-mode = slave (1)
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: timeout = 5000000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: timeout = 0
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstGhostPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_730172831_26: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_730172831_26.GstProxyPad:proxypad6: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_730172831_26.GstProxyPad:proxypad5: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstGhostPad:sink.GstProxyPad:proxypad0: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstRtpJPEGDepay:rtpjpegdepay0.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstRtpJPEGDepay:rtpjpegdepay0.GstPad:src: caps = image/jpeg, framerate=(fraction)25/1, width=(int)800, height=(int)600
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg, framerate=(fraction)25/1, width=(int)800, height=(int)600
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0.GstProxyPad:proxypad9: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad1: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1

What am I missing?


- Pavel
Reply | Threaded
Open this post in threaded view
|

AW: RTSP-MJPEG stream playback: Poor image quality problem

BGraaf
In reply to this post by pavel
Hi Pavel,

If I see your picture, I think that the deinterlacer may help.

Bernhard

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+bernhard.graaf=[hidden email]
[mailto:gstreamer-devel-bounces+bernhard.graaf=[hidden email]]
Im Auftrag von pavel
Gesendet: Montag, 15. Oktober 2012 09:08
An: [hidden email]
Betreff: RTSP-MJPEG stream playback: Poor image quality problem

Hello.

I have a network live video camera streaming in local network video over
RTSP protocol in MJPEG format.

I have next command to play  the stream:


On the other hand, I have a Mplayer2 playing the same stream, and I have to
admit, that Mplayer produces a way better picture, as well as VLC player.

How can I improve the image quality produced by gstreamer?

<http://gstreamer-devel.966125.n4.nabble.com/file/n4656577/Screenshot_from_2
012-10-12_13_31_13.png>



--
View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-
image-quality-problem-tp4656577.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] RTSP-MJPEG stream playback: Poor image quality problem

David Röthlisberger
In reply to this post by pavel
On 15 Oct 2012, at 12:30, pavel wrote:

> Hi, the command line is there in the 1st post, just above the picture.
>
>
>
>
>
> verbose output looks fine to me:
>
>
>
> What am I missing?
>
>
> - Pavel
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656586.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.

Just FYI, the above quoted email is *exactly* what your email looks like
to me (and presumably the others who also didn't see your command line).
The html view at the nabble.com link does show the rest of the text.
Perhaps you should re-send the email to the list in plain-text format.
:-)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Perfect example of why using nabble.com is bad [Was]: Re: RTSP-MJPEG stream playback: Poor image quality problem

Edward Hervey
Administrator
In reply to this post by pavel
On Mon, 2012-10-15 at 00:07 -0700, pavel wrote:
> Hello.
>
> I have a network live video camera streaming in local network video over
> RTSP protocol in MJPEG format.
>
> I have next command to play  the stream:
>

 The line above (where the launch line should be) appears blank to
anybody using the standard mailing list (i.e. the people who would help
you)

      Edward

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTSP-MJPEG stream playback: Poor image quality problem

pavel
In reply to this post by pavel
Hello,

I repost:



 gst-launch rtspsrc location=$STREAMB1 latency=1 ! decodebin2 ! ffmpegcolorspace! video/x-raw-yuv ! autovideosink


verbose output looks fine to me:

gst-launch rtspsrc location=$STREAMB1 latency=1 ! decodebin2 ! ffmpegcolorspace! video/x-raw-yuv ! autovideosink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency = 1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: buffer-mode = slave (1)
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: timeout = 5000000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: timeout = 0
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstGhostPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_730172831_26: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_730172831_26.GstProxyPad:proxypad6: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_730172831_26.GstProxyPad:proxypad5: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstGhostPad:sink.GstProxyPad:proxypad0: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstRtpJPEGDepay:rtpjpegdepay0.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)26, clock-rate=(int)90000, a-tool=(string)\"LIVE555\\ Streaming\\ Media\\ v2009.01.26\", a-type=(string)broadcast, x-qt-text-nam=(string)\"Session\\ streamed\\ by\\ stream\", x-qt-text-inf=(string)1, a-framerate=(string)25.0, clock-base=(uint)557477834, seqnum-base=(uint)16223, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstRtpJPEGDepay:rtpjpegdepay0.GstPad:src: caps = image/jpeg, framerate=(fraction)25/1, width=(int)800, height=(int)600
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg, framerate=(fraction)25/1, width=(int)800, height=(int)600
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0.GstProxyPad:proxypad9: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad1: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, framerate=(fraction)25/1


What am I missing?

- Pavel
Reply | Threaded
Open this post in threaded view
|

Re: RTSP-MJPEG stream playback: Poor image quality problem

pavel
Reply | Threaded
Open this post in threaded view
|

Re: RTSP-MJPEG stream playback: Poor image quality problem

pavel
Reply | Threaded
Open this post in threaded view
|

AW: RTSP-MJPEG stream playback: Poor image quality problem

BGraaf
In reply to this post by BGraaf
You wrote that you have the same issue in VLC. You can check this by
pressing the 'D'-Key. If it's better, you need the include the
deinterlce-module.

Bernhard

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+bernhard.graaf=[hidden email]
[mailto:gstreamer-devel-bounces+bernhard.graaf=[hidden email]]
Im Auftrag von Bernhard Graaf
Gesendet: Montag, 15. Oktober 2012 13:44
An: 'Discussion of the development of and with GStreamer'
Betreff: AW: RTSP-MJPEG stream playback: Poor image quality problem

Hi Pavel,

If I see your picture, I think that the deinterlacer may help.

Bernhard

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+bernhard.graaf=[hidden email]
[mailto:gstreamer-devel-bounces+bernhard.graaf=[hidden email]]
Im Auftrag von pavel
Gesendet: Montag, 15. Oktober 2012 09:08
An: [hidden email]
Betreff: RTSP-MJPEG stream playback: Poor image quality problem

Hello.

I have a network live video camera streaming in local network video over
RTSP protocol in MJPEG format.

I have next command to play  the stream:


On the other hand, I have a Mplayer2 playing the same stream, and I have to
admit, that Mplayer produces a way better picture, as well as VLC player.

How can I improve the image quality produced by gstreamer?

<http://gstreamer-devel.966125.n4.nabble.com/file/n4656577/Screenshot_from_2
012-10-12_13_31_13.png>



--
View this message in context:
http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-
image-quality-problem-tp4656577.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

Marc Leeman
In reply to this post by pavel
>  gst-launch rtspsrc location=$STREAMB1 latency=1 ! decodebin2 !
> ffmpegcolorspace! video/x-raw-yuv ! autovideosink

For starters, your latency is a bit low:

  latency             : Amount of ms to buffer
                        flags: readable, writable

--
  greetz, marc
harvey 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 GNU/Linux

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

pavel
Hello,

moving latency back to default doesn't fix the problem.
------
VLC player actually shows the perfect picture, but the VLC browser plugin doesn't.


Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

Marc Leeman
> moving latency back to default doesn't fix the problem.

decodebin can select a number of decoders, try to figure out which one
is selected. Either do this by inspecting the pipeline or by manually
setting the decoder instead of decodebin.

IIRC

jpegdec or ffdec_mjpeg should both work on motion JPEG.

--
  greetz, marc
harvey 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 GNU/Linux

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

pavel
Hi,

I ahve tried theese:
gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay ! jpegdec ! autovideosink
gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay ! ffdec_mjpeg ! autovideosink

No improvement in quality.

- Have not found documentation on both decoders. Do they have any parameters?
- How to inspect the pipeline?
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

Mailing List SVR
Hi,

Il 16/10/2012 09:53, pavel ha scritto:
> Hi,
>
> I ahve tried theese:
> gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay !
> jpegdec ! autovideosink

try to change:

jpegdec

in:

jpegdec idct-method=2

or idtc-method=1

and let us know if anything change,

Nicola

> gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay !
> ffdec_mjpeg ! autovideosink
>
> No improvement in quality.
>
> - Have not found documentation on both decoders. Do they have any
> parameters?
> - How to inspect the pipeline?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656602.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

pavel
No difference.
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

Mailing List SVR
Il 16/10/2012 13:43, pavel ha scritto:
> No difference.

sorry no idea,
I'm curious do you have a public url to see the stream?

Nicola

>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656607.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] Re: RTSP-MJPEG stream playback: Poor image quality problem

Marc Leeman
>> No difference.
>
> sorry no idea,
> I'm curious do you have a public url to see the stream?

Or provide a gdp capture somewhere of e.g. 30s
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
12