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.

DM365, decode demo problem on TV PAL

Other Parts Discussed in Thread: TVP7002

Hi all, sory bad english

I want run davincieffect.mpeg4 on the TV display
I am trying to run decode that demo file of DVSDK on dm365. But I get an error when I execute:
 
 ./loadmodules.sh
./decode -v /data/videos/davincieffect.mpeg4 -y 2 -O composite


Decode demo started.
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
Error: Failed to decode video buffer


My bootargs:
setenv bootargs mem=76M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=$(nfshost):$(rootpath) ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x576x16,2025K dm365_imp.oper_mode=0 davinci_capture.device_type=4 davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=PAL

Anybody, Help me please!

Thanks

  • do it like this : ./decode -y 2 -v test.mpeg4 -O composite -k

  • Thanks, but  this don't work

  • wrong:./decode -v /data/videos/davincieffect.mpeg4 -y 2 -O composite

    right:./decode -v data/videos/davincieffect.mpeg4 -y 2 -O composite

    the / dont need.

  • Hi Junxina, I run:

    ./decode -v data/videos/davincieffect.mpeg4 -y 2 -O composite       same error: failed to decode video bufer

    I can't get video on the TV OUT

    But when, I use component outputs is work ok

    ./decode -v data/videos/davincieffect.mpeg4 -y 3 -O component


     


  • Hi:

         this cmd :./decode -v data/videos/davincieffect.mpeg4 -y 3 -O component  ,when i run it,its printf some error;

         maybe there is some defferents between our board.

         a question:can you use the cmd:./encode -s test.g711 -k

        when I run,the error :Failed to encode speech buffer

  • I run you cmd: ./encode -s test.g711 -k

     

    root@dm365evm:/opt/dvsdk/dm365# ./encode -s test.g711 -k
    Encode demo started.
    Command [ 'help' for usage ] > ARM Load: 2% Video fps: 0 fps Video bit rate: 0 k
    bps Sound bit rate: 54 kbps Time: 00:00:01 Demo: Encode Display: D1 NTSC Video C
    odec: N/A Resolution: N/A Sound Codec: G.711 Speech Sampling Freq: 8 KHz samp ra
    te

    ARM Load: 4% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 60 kbps Tim
    e: 00:00:02 Demo: Encode Display: D1 NTSC Video Codec: N/A Resolution: N/A Sound
     Codec: G.711 Speech Sampling Freq: 8 KHz samp rate

    I have don't error

  • oh,this problem has troubled me for many days,and  dont  know what is the reason,i feel so sad~~

  • :) don't worry:)

    I use DVSDK_2_00 2_10_01_18

    maybe are you rebuild DVSDK and Kernel?

    My log :

    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000019.
       DONE
    Jumping to entry point at 0x81080000.


    U-Boot 2009.03 (Dec 11 2009 - 12:58:30)

    I2C:   ready
    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V
    8-bit)
    Bad block table not found for chip 0
    Bad block table not found for chip 0
    Bad block table written to 0x3ffe0000, version 0x01
    Bad block table written to 0x3ffc0000, version 0x01
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
    Bad block table not found for chip 0
    Bad block table not found for chip 0
    Bad block table written to 0x3ffe0000, version 0x01
    Bad block table written to 0x3ffc0000, version 0x01
    2048 MiB
    In:    serial
    Out:   serial
    Err:   serial
    Ethernet PHY: GENERIC @ 0x00
    Hit any key to stop autoboot:  0

    NAND read: device 0 offset 0xc00000, size 0x300000
     3145728 bytes read: OK

    Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000
       Image Name:   Linux-2.6.18_pro500-davinci_evm-
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2050116 Bytes =  2 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_evm-
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2050116 Bytes =  2 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux.............................................................
    ............................................................................ don
    e, booting the kernel.
    Linux version 2.6.18_pro500-davinci_evm-arm_v5t_le (creet@creet-desktop) (gcc РІ
    ерсия 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Fri A
    pr 9 10:22:14 MSD 2010
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    Machine: DaVinci DM365 EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci DM0365 variant 0x8
    PLL0: fixedrate: 24000000, commonrate: 121500000, vpssrate: 243000000
    PLL0: vencrate_sd: 27000000, ddrrate: 243000000 mmcsdrate: 121500000
    PLL1: armrate: 297000000, voicerate: 20482758, vencrate_hd: 74250000
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Built 1 zonelists.  Total pages: 19456
    Kernel command line: mem=76M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192
    .168.0.201:/home/creet/workdir/filesys ip=192.168.0.81:192.168.0.201:0.0.0.0:255
    .255.255.0:dm365evm::off video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x576x
    16,2025K dm365_imp.oper_mode=0 davinci_capture.device_type=4 davinci_enc_mngr.ch
    0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal
    PID hash table entries: 512 (order: 9, 2048 bytes)
    Clock event device timer0_0 configured with caps set: 07
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 76MB = 76MB total
    Memory: 72576KB available (3525K code, 712K data, 200K init)
    Security Framework v1.0.0 initialized
    Capability LSM initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    MUX: initialized SPI0_SCLK
    MUX: initialized SPI0_SDO)
    MUX: initialized SPI0_SDI
    MUX: initialized SPI0_SDENA0
    DaVinci: 104 gpio irqs
    MUX: initialized GPIO20
    MUX: initialized I2C_SCL
    DM365 IPIPE initialized in Continuous mode
    Generic PHY: Registered new driver
    ch0 default output "COMPOSITE", mode "PAL"
    VPBE Encoder Initialized
    LogicPD encoder initialized
    Avnetlcd encoder initialized
    dm365_afew_hw_init
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 4096 bind 2048)
    TCP reno registered
    VFS: Disk quotas dquot_6.5.1
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 3.1 (2006/08/19) Phillip Lougher
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs Apr  9 2010 10:16:46 Installing.
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    davincifb davincifb.0: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 2025KB
    davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 2500KB
    davincifb davincifb.0: dm_osd1_fb: 720x576x4@0,0 with framebuffer size 810KB
    davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 2500KB
    DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
    facedetect major#: 253, minor# 0
    facedetect driver registered
    imp serializer initialized
    davinci_previewer initialized
    davinci_resizer initialized
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
    serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    Davinci EMAC MII Bus: probed
    MAC address is 00:0e:99:02:cc:9d
    TI DaVinci EMAC Linux version updated 4.0
    netconsole: not configured, aborting
    Linux video capture interface: v2.00
    vpfe_init
    starting ccdc_reset...<7>
    End of ccdc_reset...<5>vpfe_probe
    vpfe ccdc capture vpfe ccdc capture.1: vpif_register_decoder: decoder = MT9T001
    vpfe ccdc capture vpfe ccdc capture.1: vpif_register_decoder: decoder = MT9P031
    TVP514X : nummber of channels = 1
    vpfe ccdc capture vpfe ccdc capture.1: vpif_register_decoder: decoder = TVP514X
    Trying to register davinci display video device.
    layer=c43fd600,layer->video_dev=c43fd760
    Trying to register davinci display video device.
    layer=c43fd400,layer->video_dev=c43fd560
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    vpfe ccdc capture vpfe ccdc capture.1: vpif_register_decoder: decoder = TVP7002
    af major#: 250, minor# 0
    AF Driver initialized
    aew major#: 249, minor# 0
    AEW Driver initialized
    i2c /dev entries driver
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
    2 NAND chips detected
    Bad block table not found for chip 0
    Bad block table not found for chip 1
    Bad block table not found for chip 0
    Bad block table not found for chip 1
    Scanning device for bad blocks
    Scanning device for bad blocks
    Creating 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x003c0000 : "bootloader"
    0x003c0000-0x00400000 : "params"
    0x00400000-0x00800000 : "kernel"
    0x00800000-0x20800000 : "filesystem1"
    0x20800000-0x80000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    dm_spi.0: davinci SPI Controller driver at 0xc501e000 (irq = 42) use_dma=0
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.6:USB HID core driver
    musb_hdrc: version 6.0, cppi-dma, host, debug=0
    MUX: initialized GPIO33
    musb_hdrc musb_hdrc: No DMA interrupt line
    musb_hdrc: USB Host mode controller at c5074000 using DMA, IRQ 12
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    mice: PS/2 mouse device common for all mice
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50
    2006 UTC).
    ASoC version 0.13.1
    AIC3X Audio Codec 0.2
    asoc: aic3x <-> davinci-i2s mapping ok
    ALSA device list:
      #0: DaVinci DM365 EVM (aic3x)
    IPv4 over IPv4 tunneling driver
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    Time: timer0_1 clocksource has been installed.
    Clock event device timer0_0 configured with caps set: 08
    Switched to high resolution mode on CPU 0
    IP-Config: Complete:
          device=eth0, addr=192.168.0.81, mask=255.255.255.0, gw=255.255.255.255,
         host=dm365evm, domain=, nis-domain=(none),
         bootserver=192.168.0.201, rootserver=192.168.0.201, rootpath=
    Looking up port of RPC 100003/2 on 192.168.0.201
    Looking up port of RPC 100005/1 on 192.168.0.201
    VFS: Mounted root (nfs filesystem).
    Freeing init memory: 200K
    INIT: version 2.86 booting
    Starting the hotplug events dispatcher: udevd.
    Synthesizing the initial hotplug events...done.
    Waiting for /dev to be fully populated...done.
    Activating swap...done.
    Remounting root filesystem...done.
    Calculating module dependencies
    Loading modules:
    Checking all file systems: fsck
    fsck 1.40 (29-Jun-2007)
    Mounting local filesystems: mount nothing was mounted
    umount.nfs: /dev/root: not found or not mounted
    Setting up networking ....
    /etc/network/options is deprecated.
    Setting up IP spoofing protection: rp_filter done.
    Disabling IPv4 packet forwarding: done.
    Disabling TCP/IP Explicit Congestion Notification: done.
    Starting network interfaces: done.
    Starting hotplug subsystem:
       pci
       pci      [success]
       usb
       usb      [success]
       isapnp
       isapnp   [success]
       ide
       ide      [success]
       input
       input    [success]
       scsi
       scsi     [success]
    done.
    Starting portmap daemon....
    Cleaning: /tmp /var/lock /var/run done.
    Updating /etc/motd...done.
    INIT: Entering runlevel: 3
    Starting system log daemon: syslogdNET: Registered protocol family 10
    6WIND/LSIIT IPv6 multicast forwarding 0.1 plus PIM-SM/SSM with *BSD API
    lo: Disabled Privacy Extensions
    IPv6 over IPv4 tunneling driver
    Mobile IPv6
     klogd.
    Starting NFS common utilities: statd.
    Starting internet superserver: inetd.
    Starting OpenBSD Secure Shell server: sshd.

    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)

    dm365evm login:

     

     

  • thank you very much,i will check it.

  • I solved problem!

    The file davincieffect.mpeg4, that include in to DVSDK_2_00 2_10_01_18 unappropriated for to play on TV PAL.

    I download davincieffect_pal.mpeg4 from DVSDK DM355 and all warked!

    Thanks all!