#mjpeg #avi #raspberrypi

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

#mjpeg #avi #raspberrypi

SAFOUANE
I succeed to send an mjpeg stream from raspberry pi to my pc. I have access
to the stream and I can get images. The problem is when I try to save the
file in any form (i use avi form because it is the best for the mjpeg
stream) i get a video file. But it is not fluid, and it is vert long. Do you
have an idea where is the problem ? at the end of my pipline i have
jpegparse ! avimux ! test.avi . I use fpsdisplaysink and i get a framerate
of 30/1. I don't have an idea why the video file is not fluid.

Best regards,

Safouane



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

Re: #mjpeg #avi #raspberrypi

gotsring
Initial guess would be the timestamps of the MJPEG frames are bad or
non-existent. I used the videorate element in the past to fix this. I've
used something like:
souphttpsrc ! queue ! jpegparse ! jpegdec ! videorate ! video/x-raw,
framerate=30/1 ! x264enc ! matroskamux ! filesink location=out.mkv

You'll have to edit the above pipeline to your needs, especially if you
don't want to reencode anything. I just know that this worked for me.

Another option would be to set do-timestamp=true on the source element. I
really am only aware of this property existing, I haven't really tested
using it.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel