From RidgeRun Developer Connection
Jump to: navigation, search

The DVSDK functionality was tested using a demo application given by Texas Instruments, this demo is named decode and is located in <pathOfYourSDK>/proprietary/dvsdk_3_01_00/dvsdk_3_01_00_10/dvsdk_demos_3_01_00_13/omap3530/decode/ , this application allows you to decode video (H.264, MPEG4 SP) and audio (AAC, MP3) files.

1. First go to <pathOfYourSDK>/proprietary/dvsdk_3_01_00/dvsdk_3_01_00_10/dvsdk_demos_3_01_00_13/omap3530/decode/ and compile the application:

cd <pathOfYourSDK>/proprietary/dvsdk_3_01_00/dvsdk_3_01_00_10/dvsdk_demos_3_01_00_13/omap3530/decode/ 

2. Copy the executable file named decode to the target root file system

cp decode <pathOfYourSDK>/fs/fs

3. Turn on the OMAP35x and copy the codec server file (cs.x64) located in /usr/share/ti/codec-combo/ to the target root file system

cp /usr/share/ti/codec-combo/cs.x64 .

4. Run the following command to test video files

./decode -v <VideoFile>

5. In order to test audio files:

./decode -a <AudioFile>

Note: For an appropriated behavior the memory pools must be set as follow:

rmmod cmemk
modprobe cmemk phys_start=0x86300000 phys_end=0x87200000 pools=1x3000000,1x1429440,6x1048576,4x829440,1x327680,1x256000,7x131072,20x4096