I have a webcam PSEye (it has 2 resolutions: 320x240 and 640x480) on a IGEPv2 and I make a streaming in WiFi between the IGEPv2 and my computer. At the same time, I record the streaming on a quick write SD card (YOCTO on the flash).
I have no problem when the resolutions of the streaming and the recording are identical (set apart a slight delay of the streaming in 640x480), but I wish to make a streaming 320x240 and a recording 640x480. When I put different resolutions, I observe some lags and delays on the streaming and some drop of frames on the recorded video. I tried numerous pipelines, but I do not manage to solve this problem.
Here are my Gstreamer's pipelines :
On IGEPv2 :
gst-launch-0.10 -v v4l2src device=/dev/video0 \ ! tee name=pip ! queue \ ! videoscale ! video/x-raw-yuv,width=320,height=240 \ ! videorate ! video/x-raw-yuv,framerate=25/2 \ ! ffmpegcolorspace \ ! TIVidenc1 codecName=h264enc engineName=codecServer contiguousInputFrame=TRUE bitRate=256000 rateControlPreset=1 encodingPreset=1 \ ! rtph264pay pt=96 ! udpsink host=192.168.76.2 port=5432 sync=false \ pip. ! queue \ ! video/x-raw-yuv,framerate=30/1,width=640,height=480 \ ! ffmpegcolorspace \ ! TIVidenc1 codecName=h264enc engineName=codecServer contiguousInputFrame=TRUE bitRate=2000000 rateControlPreset=1 encodingPreset=1 \ ! avimux ! filesink location=/media/mmcblk0p1/test.avi sync=false
And on my computer :
gst-launch-0.10 -v udpsrc port=5432 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" \ ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false
Do you have any idea how to do to solve this ?
thank you for your help
Accepted Answer0Hi eballetbo, thanks for your reply.
What happens if you try to resize the video in the computer side ? Send the video in 320x240 format an resize when recording.
I already send the wifi streaming in 320x240, and I record it on the SD card of the IGEPv2 in 640x480. The card makes both things at the same time.
My instructions are to make all this on the card. It works, but with drops of frames on the recording.