This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with running video encode

Hi, everyone, I have some problems with encode on dm365 and really need your help here:


setenv bootargs 'mem=80M console=ttyS0,115200n8 noinitrd root=/dev/nfs rw nfsroot=192.168.0.103:/opt/nfs videostd=pal video=davincifb:vid0=OFF:vid1=OFF:osd0=720x480x16,2025K dm365_imp.oper_mode=0  ip=dhcp'

setenv bootcmd 'tftpboot 0x80700000 uImage; bootm 0x80700000'


setenv nfshost 192.168.0.103

setenv serverip 192.168.0.103

setenv ipaddr 192.168.0.156

setenv rootpath '/opt/nfs'

saveenv

bootm

 

When I run encode demo on our customed board, everything seems fine except we can't get the video data from the memory, here is the console output:

 

root@192.168.0.2:/opt/dm365# ./loadmodules_hd.sh
CMEMK module: built on Nov 30 2010 at 14:33:17
  Reference Linux version 2.6.18
  File /opt/dvsdk_2_10_00_17/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
ioremap_nocache(0x85000000, 50331648)=0xc6000000
allocated heap buffer 0xc6000000 of size 0x134000
cmem initialized 20 pools between 0x85000000 and 0x88000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x85000000)
ioremap_nocache(0x1000, 28672)=0xc5888000
no remaining memory for heap, no heap created for memory block 1
cmem initialized 1 pools between 0x1000 and 0x8000
IRQK module: built on Nov 30 2010 at 14:33:23
  Reference Linux version 2.6.18
  File /opt/dvsdk_2_10_00_17/linuxutils_2_24_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
EDMAK module: built on Nov 30 2010 at 14:33:21
  Reference Linux version 2.6.18
  File /opt/dvsdk_2_10_00_17/linuxutils_2_24_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
root@192.168.0.2:/opt/dm365# ./encode -v 'demo.264' -r 720x480 -b 2400000 -k -t 10
Encode demo started.
MUX: initialized GPIO40
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:108
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
vpfe ccdc capture vpfe ccdc capture.1: IMP chained
vpfe ccdc capture vpfe ccdc capture.1: Resizer present
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 1
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 1
Starting ccdc_config_ycbcr...<7>
starting ccdc_reset...<7>
End of ccdc_reset...<7>
Starting ccdc_setwin...<7>ipipe_set_resizer, resizer - A enabled
DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 736,
 layer.pix_fmt.width = 720,
 layer.pix_fmt.height = 480,
 layer.pix_fmt.sizeimage =529920
DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
 layer->layer_info.config.line_length= 736
Command [ 'help' for usage ] > ARM Load: 3% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:01 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:02 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:03 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:04 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:06 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:07 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:08 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:09 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:10 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

the video file demo.264 is 0 KB.  The  encodedecode running is OK.

  • Changing the Video Input/Output Methods

    U-Boot reads the J1 jumper setting on boot-up and stores the results in the videostd environment variable. As long as your U-Boot bootcmd sets the video output using the videostd variable (as the example bootcmds in Alternate Boot Methods do), you can switch between NTSC and PAL by simply changing the SW5 switch setting as shown in Setting Up the Hardware.

    To automatically update the bootargs based on the SW5 switch setting, please use the following options:

    EVM # setenv bootargs 'mem=76M console=ttyS0,115200n8
    root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=dhcp video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=4’ EVM # setenv bootcmd 'setenv setboot setenv bootargs \$(bootargs) davinci_enc_mngr.ch0_mode=\$(videostd);run setboot;nboot 0x80700000 0 0x400000;bootm’

    If you do not want to use the videostd variable in your bootcmd, use the following options within your bootargs setting. The difference between the NTSC and PAL settings is shown in bold.

    NTSC

    video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=4 davinci_enc_mngr.ch0_mode=ntsc
    

    PAL

    video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=4 davinci_enc_mngr.ch0_mode=pal
  •  

     

     

    You say this problem I tried to, and this has nothing to do,My codec is running shows, and input the settings should be independent of it.

     

       Thanks!

       driprincess