Hello,
I have a working gstreamer pipeline (in my application, avoiding gst-launch tool) running on dm6467 that captures video from TVP, encodes it and streams it over the net. That's good.
But if a valid video is not connected to the input (unlocked or bad format) the pipeline crashes.
Looking into the v4l2src source code it seems that gstreamer plugin calls a querystd ioctl to check if video is locked and with a valid format. If not, exit with error and the pipeline crash.
What can be done to avoid this behavior ?
I've tried to check it on my application and If a valid video is locked, I initialize and start the pipeline. but sometimes fails and I'm not able to detect it.
-Open /dev/video0
-try to set input before call querystd iotctl (using s_input ioctl)
What is the correct ioctls sequence to call before querystd ??
In addition, I'd like to be able to change input format without destroying the pipeline and creating a new one.
Using TVP5146 in autodetection mode, first time the current video format is detected and the pipeline works, then stopping the pipeline (GST_STATE_NULL) changing the input format and playing the pipeline again (GST_STATE_PLAYING) it seems that it doesn't renegotiates the input format. What can be done?
thanks in advance
Claudio