This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

why encode /decode demos cannot run in background (DM355)?

hi,all:

I have added a printf("ctrl.c\n") in ctrl.c in the encode demo.run it like this :

[dvsdk]# ./encode_test -v aa.mpeg4

Encode demo started.

Capturing 720x576 video (cropped to 720x576)

Press Key[ESC] to eixt!

ctrl.c!

ctrl.c!

^[ctrl.c!

It works fine!

however, when i put it in the background ,it won't work:

[dvsdk]# ./encode_test -v aa.mpeg4 &

[dvsdk]# Encode demo started.

Capturing 720x576 video (cropped to 720x576)

Press Key[ESC] to eixt!

[1] + Stopped (tty output)       ./encode_test -v aa.mpeg4

[dvsdk]#

I also write a pthread application, and found it can run in background and printf() in every thread, why encode demo cannot do the same thing? how can I change it?

thanks!