Hi,
I'm facing a problem about running video encoder and audio at the same time.
I'm using vdec application to decode mpeg4 video to yuv. vdec is coming with DVSDK. But the problem is: when i want to use audio channel at the same time, vdec is stopping and audio is not playing.
Commands which i have used :
vdec: it is coming with dvsdk ( /opt/dvsdk_2_00_00_18/examples/dm355/vdec )
vdec davincieffect_ntsc.mpeg4 davincieffect_ntsc.yuv // this command will be decode mpeg4 file to yuv. it is working i have no problems.
speaker-test: it is coming with MV5 toolchain ( /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/usr/bin/speaker-test )
Used for testing audio. Generates sizzle (splutter) on speaker. With this command i can check if audio is working or not.
Test platform
EVM started.
Kernel loaded with TFTP
Root FS loaded NFS
Modules loadad whichs are necessary for decoder (cmemk & dm350mmap)
Test case 1 :
$ vdec davincieffect_ntsc.mpeg4 davincieffect_ntsc.yuv &
// vdec is working on background
$ speaker-test -t sine
// after this command i cannot hear any thing from my speakers.
// vdec is not working also
Test case 2:
$ speaker-test -t sine &
// i can hear sine from speaker and it is working on background
$ vdec davincieffect_ntsc.mpeg4 davincieffect_ntsc.yuv
//after this command sound is stopping vdec is starting to process. Differance from test case 1, in "first case" both of this process is not working, but in the second one vdec is runing, speaker-test is not stopped it is still running but i cannot hear any thing from speker. A few minutes later speaker-test gaves input output error.
Test case 3 :
I tried case 1 and case 2 with out sending processes to background. I made a connection to target with ssh, started vdec from serial terminal when it is running, started "speaker -test" from remote terminal (ssh) results are same.
Why i want to do this: I'm planning to develop a player based on vdec but i coul.
Target platform is DM355 EVM (rev c)
I used mv_pro_5.0 toolchain, dvsdk_2_00_00_18, and linux-2.6.18_pro500 kernel.
Kenel is configured with davinci_dm355_defconfig parameter.
Dvsdk configured and builded. Modules are loaded.
thanks in advance.
i will really apriciate any help about subject.