A quick follow-up for those interested. Here are more details: We had modified the flow of capture.c so that the VDCE is bypassed. We thought that, as long as the encoder had the proper input buffer, this should be fine. What we found was that bypassing VDCE also meant that we had to properly manage the "intermediate buffer" set up for VDCE. Otherwise, it would end up limiting capture from 30fps to 15fps.
It was a little tricky to resolve because it wasn't on our radar screen that leaving an unused buffer hanging could cause a drop to 15fps, but having a working loopback example helped resolved this. -Robert -----Original Message----- From: Robert Chen Sent: Wednesday, June 17, 2009 5:58 AM To: [email protected] Subject: RE: Re: DM6467 - Encoding in 1080i with DMAI We figured out the issue (turned out to be a buffer management issue). -Robert -----Original Message----- From: Robert Chen Sent: Tuesday, June 16, 2009 6:34 AM To: '[email protected]' Subject: Re: DM6467 - Encoding in 1080i with DMAI This is a follow-up to Marcelo's e-mail on this subject from 3/2/2009. In subsequent discussion with TI we confirmed that the likely reason this didn't work was that the codec itself did not support 1080i encode. For this reason, there are checks in the demo code that make sure > 720p is not allowed. We did verify that Mahendra's changes do enable 1080i capture on our setup (thank you very much, Mahendra!). Now we are running into a different issue -- it seems that the 1080i capture is running no faster than 15fps (even though the encoder we are running it with does run at > 15fps for 1080i). We are in the process of trying to figure out if this is something inherent in the video driver or maybe something in the way the demo works. Before diving into the ioctl code in davincihd_capture.c in the drivers directory, I thought I'd check to see if anyone else has run into this issue (or, alternately, were you able to get 30fps through these changes?). We are using DVSDK 2.00.01.15 for HD DaVinci (and the DMAI 1.18.00.01 that comes with it). If anyone has any thoughts / can shed some light on this, please let me know. Thank you! Sincerely, Robert Chen ------------------------------------------------ Re: DM6467 - Encoding in 1080i with DMAI Marcelo Guedes Silva Mon, 02 Mar 2009 11:29:13 -0800 Hi, it didn“t work. I ran the new loadmodules.sh and received this message: [email protected]:/opt/dvsdk# ./loadmodules.sh > ioremap_nocache(0x87800000, 69206016)=0xc8080000 allocated heap buffer > 0xc8080000 of size 0x239000 cmem initialized 5 pools between > 0x87800000 and 0x8ba00000 DSPLINK Module (1.50) created on Date: Jan > 3 2008 Time: 13:16:55 > Seems to be right, but when I tried to run the encode program (with the modified capture.c), I received this error: [email protected]:/opt/dvsdk# ./encode -a audio.aac -v video.264 > Encode demo started. > Error: Failed to create h264 video encoder -------------------------------------------------- _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
