why gst-launch doesnot work in my Ubuntu?

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

why gst-launch doesnot work in my Ubuntu?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: why gst-launch doesnot work in my Ubuntu?

Tim-Philipp Müller-2
On Sun, 2011-02-20 at 13:37 -0600, Tom wrote:

> gst-launch filesrc "location=1.MPG" ! decodebin ! video/x-raw-yuv,
> width=640,height=480,framerate=5/1 ! ffmpegcolorspace ! jpegenc !
> multipartmux ! tcpserversink host=192.168.2.1 port=5000
>
> and then got an error:
> ..
> stream stopped, reason not-negotiated
> ..
> I don't know why.....

This usually means there's a problem with caps somewhere.

My first guess would be that your input video 1.MPG does not have a
resolution of 640x480. If you want to scale the input video to this
resolution, put a videoscale element between decodebin and the caps
filter.

(If that's not it, maybe you could provide the output of also passing -v
to gst-launch.)

 Cheers
  -Tim


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

Re: why gst-launch doesnot work in my Ubuntu?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: why gst-launch doesnot work in my Ubuntu?

Tim-Philipp Müller-2
Hi,

> 1.MPG is 640X480, and framerate is 25.

> > gst-launch filesrc "location=1.MPG" ! decodebin ! video/x-raw-yuv,
> >     width=640,height=480,framerate=5/1 ! ...

There you go then. The framerate doesn't match the one in your
capsfilter. Add a videorate element between decodebin and your
capsfilter.

Cheers
 -Tim


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

Re: why gst-launch doesnot work in my Ubuntu?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: why gst-launch doesnot work in my Ubuntu?

Stefan Sauer
Am 20.02.2011 22:54, schrieb Tom:
> Yes that works!
> I use gst-launch tcpclientsrc host=130.160.47.62 port=5002 ! multipartdemux !
> jpegdec ! autovideosink
> to receive the stream on another Ubuntu as client and I can watch the video.
>
> But my goal is to change the I,B,P - framerate. So how can I do that?

For that you need to reencode using a encoder of your choice and picking the
desired setting for the I,B,P frame rates.

Stefan

> You mentioned that  "put a videoscale element between decodebin and the caps
> filter".
> So I can do in this way?
>
>
>
> --------------------------------------------
>> Hi,
>>
>>  
>>> 1.MPG is 640X480, and framerate is 25.
>>>    
>>
>>  
>>>> gst-launch filesrc "location=1.MPG" ! decodebin ! video/x-raw-yuv,
>>>>     width=640,height=480,framerate=5/1 ! ...
>>>>      
>>
>> There you go then. The framerate doesn't match the one in your
>> capsfilter. Add a videorate element between decodebin and your
>> capsfilter.
>>
>> Cheers
>>  -Tim
>>
>>
>> _______________________________________________
>> 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