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
|

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

pavel
Hello,

I'm trying to record the camera stream this way:
gst-launch rtspsrc location=$STREAM1 latency=10 ! filesink location=./rtsp_dump_raw.bin
gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay ! filesink location=./rtsp_dump.bin

However, it is just resulting in the stream, that I cannot playback...
Reply | Threaded
Open this post in threaded view
|

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

pavel
Hello,

I have uploaded the file made with
gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay ! filesink location=./rtsp_dump.bin

here

http://depositfiles.com/files/1my0qc4ju
Reply | Threaded
Open this post in threaded view
|

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

Wim Taymans
In reply to this post by pavel
On 10/17/2012 08:18 AM, pavel wrote:
> Hello,
>
> I'm trying to record the camera stream this way:
> gst-launch rtspsrc location=$STREAM1 latency=10 ! filesink
> location=./rtsp_dump_raw.bin
> gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay !
> filesink location=./rtsp_dump.bin
>
> However, it is just resulting in the stream, that I cannot playback...

You need to use gdppay like this:

gst-launch rtspsrc location=$STREAM1 ! gdppay ! filesink location=./rtsp_dump.gdp

Wim



>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656623.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

Mailing List SVR
In reply to this post by pavel
Il 17/10/2012 11:39, pavel ha scritto:
Hello,

I have uploaded the file made with
gst-launch rtspsrc location=$STREAM1 latency=10 ! queue ! rtpjpegdepay !
filesink location=./rtsp_dump.bin

here

http://depositfiles.com/files/1my0qc4ju

the quality is low with mplayer too:

http://77.43.75.110/temp/mplayer.png

please provide the exact command you are using with mplayer,

Nicola




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656625.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
Hello,

I have used mplayer2 with almost no configurations to play the camera stream.
mplayer -nosound -vo x11 $STREAM1

I also have created a new dump. it is here: http://depositfiles.com/files/lzz2qeb5h

However, I still cannot play it back with: gst-launch filesrc location=rtsp_dump.gdp  ! gdpdepay ! jpegdec ! autovideosink
Reply | Threaded
Open this post in threaded view
|

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

pavel
Hello,

I have opened that camera to the world: BrickCom
gst-launch rtspsrc location=rtsp://84.250.43.65:554/channel1 ! decodebin2 ! ffmpegcolorspace ! autovideosink
gst-launch rtspsrc location=rtsp://84.250.43.65:554/channel1 ! queue ! rtpjpegdepay ! jpegdec ! autovideosink

Mplayer cannot start somehow, but VLC player did.

Just in few hours here in Finland gonna be dark...
Reply | Threaded
Open this post in threaded view
|

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

Wim Taymans
In reply to this post by pavel
On 10/17/2012 12:31 PM, pavel wrote:

> Hello,
>
> I have used mplayer2 with almost no configurations to play the camera
> stream.
> mplayer -nosound -vo x11 $STREAM1
>
> I also have created a new dump. it is here:
> http://depositfiles.com/files/lzz2qeb5h
>
> However, I still cannot play it back with: gst-launch filesrc
> location=rtsp_dump.gdp  ! gdpdepay ! jpegdec ! autovideosink
I can play it fine and I can see the artifacts. I can also see that this
stream
is generated with live555, which doesn't reconstruct the quant tables
according
to the RFC. If I change the depayloader to do it like live555, it looks
perfect.
Not sure who's to blame, will have a look.

Wim


>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656629.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

Mailing List SVR
In reply to this post by pavel
Il 17/10/2012 12:53, pavel ha scritto:
> Hello,
>
> I have opened that camera to the world: BrickCom
> gst-launch rtspsrc location=rtsp://84.250.43.65:554/channel1 ! decodebin2 !
> ffmpegcolorspace ! autovideosink
> gst-launch rtspsrc location=rtsp://84.250.43.65:554/channel1 ! queue !
> rtpjpegdepay ! jpegdec ! autovideosink

really strange, h264 (channel2 is fine), maybe could be a bug in
rtpjpegdepay, try to set a lower resolution just to see if something change,

Nicola

>
> Mplayer cannot start somehow, but VLC player did.
>
> Just in few hours here in Finland gonna be dark...
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656631.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
In reply to this post by Wim Taymans
How can I repeat your results?

1. how to play the gdp dump? When I issue the command:
gst-launch filesrc location=rtsp_dump.gdp  ! gdpdepay ! jpegdec ! autovideosink

I'm getting:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2625): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

2.  How can I change the depayloader "to do it like live555" ???

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

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

Wim Taymans
On 10/17/2012 02:17 PM, pavel wrote:
> How can I repeat your results?
gst-launch-1.0 filesrc location=~/Downloads/rtsp_dump.gdp ! gdpdepay !
rtpjpegdepay !
    jpegdec ! videoscale ! videoconvert ! autovideosink

>
> 1. how to play the gdp dump? When I issue the command:
> gst-launch filesrc location=rtsp_dump.gdp  ! gdpdepay ! jpegdec !
> autovideosink
>
> I'm getting:
>
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2625): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> 2.  How can I change the depayloader "to do it like live555" ???
Just pushed:
http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=e9040e90a59c4f540a03e10566e8c227a8f6d93f

Wim

>
> - Pavel
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-MJPEG-stream-playback-Poor-image-quality-problem-tp4656577p4656635.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
Hi,

When this update going to be available and where?

12