I am trying to use dvtb to capture and encode using imgenc1.
I am using dm6467T EVM with:
dvsdk_3_10_00_19
cs2dm6467_1_00_00_10
codec_engine_2_25_05_16
framework_components_2_25_02_06
Below is the output of executing the dvtb script. Any ideas as to why /dev/video0 cannot be initialized? It seems that the standard parameter for the vpfe is incorrect no matter what I pick. I've tried 0 through 3 based on the DVTB User's guide, but they all result in the same error. For sanity's sake, I am able to run the encodedecode demo which I believe uses /dev/video0 as the capture device.
./dvtb-r -s dvtb_script.sh
@0,560,636us: [+6 T:0x4001f390] CE - Engine_init> CE debugging on (CE_DEBUG=1; allowed CE_DEBUG leve)
# codec engine
#setp engine name encodedecode
# codec
setp imgenc1 codec jpegenc
PASS: setp
# image encoder parameters
setp imgenc1 maxHeight 576
PASS: setp
setp imgenc1 maxWidth 720
PASS: setp
setp imgenc1 maxScans 0
PASS: setp
setp imgenc1 dataEndianness 1
PASS: setp
settvp7002 1-005d: Invalid id...
p imgenc1 forceChromaFormat 2
PASS: setp
setp imgenc1 numAU 0
PASS: setp
setp imgenc1 inputChromaFormat 4
PASS: setp
setp imgenc1 inputHeight 480
PASS: setp
setp imgenc1 inputWidth 720
PASS: setp
setp imgenc1 captureWidth 720
PASS: setp
setp imgenc1 generateHeader 0
PASS: setp
setp imgenc1 qValue 73
PASS: setp
# vpfe parameters
setp vpfe device /dev/video0
PASS: setp
setp vpfe standard 1
PASS: setp
setp vpfe format 1
PASS: setp
setp vpfe input 0
PASS: setp
setp vpfe width 720
PASS: setp
setp vpfe height 480
PASS: setp
func imgenc1 -t test.jpg
[DVTB-LOG]: linux/dvtbFuncDispatcher.c: Starting Thread for command <imgenc1>
[DVTB-LOG]: ../core/linux/dvtbUtils.c: Image [capture]+[encode] usecase started
[DVTB-ERROR]: VIDIOC_S_STD failed for <1> format for </dev/video0>
Error :: Invalid argument
[DVTB-ERROR]: linux/dvtbImgCapture1.c: Unable to initialize VPFE device </dev/video0>
[DVTB-LOG]: ../core/linux/dvtbImgCapture1Core.c: Total # of Slices Encoded = 0
[DVTB-LOG]: ../core/linux/dvtbImgCapture1Core.c: Image Encoder <jpegenc> closed
[DVTB-LOG]: ../core/linux/dvtbImgCapture1Core.c: Engine <encodedecode> closed
[DVTB-LOG]: ../core/linux/dvtbUtils.c: Image [Capture]+[Encode] usecase completed with errors.
PNDG: func