test videoscale methods

Alejandro Vázquez vazlup at gmail.com
Wed Jul 29 15:33:51 PDT 2015


I found a solution for the problem i use "jpegparse" before jpegdec and works!

I am not sure how to detect if it is scaling.

I try the next where I declared pipe elements i do the next:

GstElement *videoScale = gst_element_factory_make("videoscale", "videoScale");
GstPad *padVideoScale = gst_element_get_pad(videoScale,"padVideoScale");
g_signal_connect(padVideoScale, "notify::caps",
G_CALLBACK(video_caps_notify), NULL);

and the callback (video_caps_notify) do:
static void video_caps_notify(GObject* obj, GParamSpec* pspec, gpointer data)
{
	const GstCaps *caps;
    GstStructure *str;
    gint width,height;
    gdouble rate;
    caps = gst_pad_get_negotiated_caps((GstPad*)obj);
    g_print("video_caps_notify\n");
    if (caps)
    {
    	str=gst_caps_get_structure(caps,0);
    	gst_structure_get_int(str,"width",&width);
    	gst_structure_get_int(str,"height",&height);
    	g_print("!!: GStreamer negotiated %dx%d \n", width, height);

    }
}

I'm not sure if it is well it correctly but never reaches the callback


Thanks!
Regards!

2015-07-27 10:25 GMT+02:00 Alejandro Vázquez <vazlup at gmail.com>:

> Fine. Add the new file errorGs.txt
> Thanks so much for your help.
>
> 2015-07-27 9:43 GMT+02:00 Bernhard Graaf <bernhard.graaf at gmx.de>:
>
>> Please try following pipeline and send me the error.txt:
>>
>> gst-launch-0.10 --gst-debug=3 souphttpsrc  user-id=admin user-pw=123qwe
>> location=http://192.168.0.216/pbhelper/stream.mjpeg? ! decodebin2 !
>> ffmpegcolorspace ! fpsdisplaysink sync = true text-overlay=false
>>
>>
>>
>> *Von:* gstreamer-devel [mailto:
>> gstreamer-devel-bounces at lists.freedesktop.org] *Im Auftrag von *Alejandro
>> Vázquez
>> *Gesendet:* Montag, 27. Juli 2015 09:22
>>
>> *An:* Discussion of the development of and with GStreamer
>> *Betreff:* Re: test videoscale methods
>>
>>
>>
>> Hi!
>>
>> I have active videoscale.
>>
>> I add other debug.txt
>>
>>
>>
>> Thanks!
>>
>>
>>
>> 2015-07-24 17:04 GMT+02:00 Bernhard Graaf <bernhard.graaf at gmx.de>:
>>
>> I don’t see any caps from the pipeline. Is this working without
>> videoscale?
>>
>>
>> ------------------------------
>>
>> *Von:* gstreamer-devel [mailto:
>> gstreamer-devel-bounces at lists.freedesktop.org] *Im Auftrag von *Alejandro
>> Vázquez
>> *Gesendet:* Freitag, 24. Juli 2015 14:12
>>
>>
>> *An:* Discussion of the development of and with GStreamer
>> *Betreff:* Re: test videoscale methods
>>
>>
>>
>> Hi!
>>
>> I add the out of gstremer in the file *.txt but i don't see any error
>> only info messages
>>
>>
>>
>> 2015-07-24 11:17 GMT+02:00 Bernhard Graaf <bernhard.graaf at gmx.de>:
>>
>> Use gst-launch-0.10 --gst-debug=3 …….
>>
>> and send the regarding errors
>>
>>
>> ------------------------------
>>
>> *Von:* gstreamer-devel [mailto:
>> gstreamer-devel-bounces at lists.freedesktop.org] *Im Auftrag von *Alejandro
>> Vázquez
>> *Gesendet:* Freitag, 24. Juli 2015 12:52
>>
>>
>> *An:* Discussion of the development of and with GStreamer
>> *Betreff:* Re: test videoscale methods
>>
>>
>>
>> Hi, Bernhard!
>>
>>
>>
>> I try to use decodebin ! ffmpegcolorspace but the result is the same.
>>
>> If i put text-overlay = false (active verbose) the video work but don't
>> show any info about fps.
>>
>> pipe:
>>
>> gst-launch-0.10 -v souphttpsrc  user-id=admin user-pw=123qwe location=
>> http://192.168.0.216/pbhelper/stream.mjpeg? ! jpegdec !  videoscale !
>> fpsdisplaysink sync = true text-overlay=false
>>
>>
>>
>> last-message (close pipe): last-message = "Max-fps: -1,00, Min-fps: -1,00"
>>
>>
>>
>>
>>
>> Thanks!
>>
>>
>>
>> 2015-07-24 10:01 GMT+02:00 Bernhard Graaf <bernhard.graaf at gmx.de>:
>>
>> Hi,
>>
>>
>>
>> Are sure that your stream is not muxed?
>>
>> Try to use ‘decodebin ! videoconvert’ in place of jpegdec (I hope
>> videoconvert is available in 0.10, else use ffmpegcolorspace).
>>
>>
>>
>> Bernhard
>>
>>
>> ------------------------------
>>
>> *Von:* gstreamer-devel [mailto:
>> gstreamer-devel-bounces at lists.freedesktop.org] *Im Auftrag von *Alejandro
>> Vázquez
>> *Gesendet:* Freitag, 24. Juli 2015 11:33
>> *An:* Discussion of the development of and with GStreamer
>> *Betreff:* Re: test videoscale methods
>>
>>
>>
>> Hi!
>>
>> I try the next pipe:
>>
>> gst-launch-0.10 -v souphttpsrc is-live=true user-id=admin user-pw=admin
>> location=http://192.168.0.123/stream.mjpeg? ! jpegdec !  videoscale !
>> fpsdisplaysink video-sink= xvimagesink sync = 0
>>
>>
>>
>> The pipe show a only frame frozen.
>>
>> There is an error in the pipeline?
>>
>>
>>
>> 2015-07-23 15:49 GMT+02:00 Nicolas Dufresne <
>> nicolas.dufresne at collabora.com>:
>>
>> Le jeudi 23 juillet 2015 à 11:07 +0200, Alejandro Vázquez a écrit :
>> > videoscale  no scaling is needed so i want to know  if it is actually
>> > scaling.
>>
>> You can get the caps on the videoscale src pad, and the caps at the
>> sink pad, and compare the width, height, pixel-aspect-ratio.
>>
>> Nicolas
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150730/361815e8/attachment-0001.html>


More information about the gstreamer-devel mailing list