Damaged aspectratio and unsynch'd signal noise at bottom of video window

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

Damaged aspectratio and unsynch'd signal noise at bottom of video window

it
Hi Guys,

I have a piece of code showing:

gst-launch v4l2src device=/dev/video1 ! videoscale !
video/x-raw-yuv,width=1024,height=600 ! videorate !
video/x-raw-yuv,framerate=25/2 ! tee name=t \
t. ! queue ! ffmpegcolorspace ! ximagesink \
t. ! queue ! y4menc ! filesink location=vid_tmp.mkv

When used with my USB webcam on video0, it works perfectly.

When used on my old Sony 7.2 MegaPixel CyberShot via a BNC cable and an
EasyCap video capture USB stick I get a broken picture. The top half is
distorted (correct width and 50% height) and the bottom is a copy of the top
with an unsynch'd frame.

The top half of the code works fine on its own, ie:

gst-launch v4l2src device=/dev/video1 ! videoscale !
video/x-raw-yuv,width=1024,height=600 ! videorate !
video/x-raw-yuv,framerate=25/2 ! tee name=t \
t. ! queue ! ffmpegcolorspace ! Ximagesink.

But when I add the

t. ! queue ! y4menc ! filesink location=vid_tmp.mkv

It goes wrong.

I guess the Easycap card is a bit unreliable in certain circumstances.  What
can I do to stabilise the picture?

Thanks and regards

Steve

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

RE: Damaged aspectratio and unsynch'd signal noise at bottom of videowindow

it
> It goes wrong.

> I guess the Easycap card is a bit unreliable in certain circumstances.
What
> can I do to stabilise the picture?

In fact here is an error message.  I don't always get this, but here it is:

/home/image/Documents/Endoscopia$ gst-launch v4l2src
device=/dev/video1 ! videoscale ! video/x-raw-yuv,width=1024,height=600 !
videorate ! video/x-raw-yuv,framerate=25/2 ! tee name=t t. ! queue !
ffmpegcolorspace ! ximagesink sync=true  t. ! queue ! y4menc ! filesink
sync=true  location=vid_tmp.mkv
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
WARNING: from element /GstPipeline:pipeline0/GstXImageSink:ximagesink0: A
lot
of buffers are being dropped.
Additional debug info:
gstbasesink.c(2597): gst_base_sink_is_too_late ():
/GstPipeline:pipeline0/GstXImageSink:ximagesink0:
There may be a timestamping problem, or this computer is too slow.

I don't think there is a problem with the computer, since it is flawless
with the webcam, which is 8 MegaPixel cam.

Regards

Steve

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