Dear all,
We are trying to Run the encode demo which comes with
DVEVM/DVSDK package installed at the following folder location.........
Installdir/dvevm_1_10/demos/encode/
And it is not working successfully as the decode demo. The
steps we do to run the encode demo is .......
1. ./loadmodules.sh
2. ./encoded -v test.mpeg4 -t 20 (here we are
running debug version)
So to find out what's happening, we added some DBG print message and
found out that it is struck at the following line (line # 288) in the
initcaptureDevices() in the video.c file from
/dvevm_install_dir/demos/encode/
do{
ret = ioctl(fd, VIDIOC_QUERYSTD, &std);
DBG("print to debug.........\n",0);
}while(ret ==-1 && errno == EAGAIN);
And we got the following prints...................
[EMAIL PROTECTED]:/opt/dvevm#
./encoded -v test.mpeg4 -t 20
Encode Debug: NTSC selected
Encode demo started.
Encode Debug: Codec Engine initialized
Encode Debug: Logging initialized
Encode Debug: Rendezvous opened for 4 threads
Encode Debug: OSD successfully initialized
Encode Debug: Display thread created
Encode Debug: Display buffer 0 mapped to address 0x434bb000
Encode Debug: Display buffer 1 mapped to address 0x43563c00
Encode Debug: Display buffer 2 mapped to address 0x4360c800
Encode Debug: Video display device initialized.
Encode Debug: Writer thread created
Encode Debug: captureWidth = 720, captureHeight = 480
Encode Debug: Set the capture input to id 0
Encode Debug: Video file successfully opened
Encode Debug: OSD transparency initialized
Encode Debug: Codec Engine opened in control thread
Encode Debug: Checking video standard
Encode Debug: print to debug.........
Encode Debug: print to debug.........
Encode Debug: print to debug.........
Encode Debug: print to debug.........
Encode Debug: print to debug.........
Encode Debug: print to debug.........
Encode Debug: print to debug.........
So that's means we have got struck here, (shown in red
above)
So My questions are.........
1. What is this ioctl(fd, VIDIOC_QUERYSTD,
&std) does? Yes this is trying to find NTSC or PAL, but from where (from
any HW reg bit or SW constant or any TVP5xxx device or from the
i/p composite signal)?
I have given a glance at www.thedirks.org/v4l2 but could not get the
correct info on what this corresponding ioctl does? Please give me some
pointer if you know on where to find out this particular info?
2. And another question is why this ioctl can
not return the correct standard (ntsc or pal) provided my camera works
fine? So I want to know is there any Switch settings in the davinci
dvevm board. We searched the tech ref manual, but there are not such SW
or JP settings? Please let us know if there is any.
Thanks
Reny
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates.
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source