Other Parts Discussed in Thread: TVP5146
Hi,
I have a working video encoder. Input is analog PAL camera.
Reference application is "capture_prev_rsz_onthe_fly_yuv" from dvsdk_4.02/dvsdk_dm365_4_02_00_06/psp/linux-driver-examples-psp03.01.01.38/imp-prev-rsz/dm365.
Everything works fine if camera is connected when program starts.
If camera is not connected, but it is connected later when program is already running, then i can not get program work properly.
Program fails at :ioctl (fdCapture, VIDIOC_S_INPUT, &input.index).
If i ignore this error, i can still get video when camera is connected later,
but colors are not right, mostly green and red, and no details in video.
Can anyone suggest how can i get this program work, when camera is not connected at program start, but is connected later.
I tried to change initialization in tvp5146 driver, but so far without success.
Regards,
Marko.