Part Number: TMS320DM368
Other Parts Discussed in Thread: TVP5146
hi there !
i have been trying to run H.264 encoder with leopard imaging board LI-TB02 using DM368 with ridgerun demo image for TVP5146 composite input.
here is my gstreamer pipeline
gst-launch -v v4l2src input-src=composite chain-ipipe=true always-copy=false queue-size=6 ! 'video/x-raw-yuv,format=(fourcc)NV12, width=736, height=576' !
dmaiaccel ! dmaienc_h264 targetbitrate=6000000 bytestream=true copyOutput=false single-nalu=true encodingpreset=2 entropy=0 intraframeinterval=14 idrinterval=10
ratecontrol=2 ! rtph264pay ! udpsink host=199.200.15.61 port=6666 sync=false enable-last-buffer=false
getting reasonable delay and acceptable quality but a small portion of video (approx 80 to 100 pixels) of left side of the image are shown on the right hand side. image and
video attached for illustration.
here is the video
i wrote the video to a file and played the video on vlc but same results,
i am using sdp file with vlc to stream the video on windows pc.
sdp contents are as under:-
o= IN IP4 199.200.15.61
m=video 6666 RTP/AVP 96
c=IN IP4 199.200.15.61
a=rtpmap:96 H264/90000
a=fmtp:96
also posting my linux bootlogs
Net: Ethernet PHY: GENERIC @ 0x00
DaVinci-EMAC
Hit any key to stop autoboot: 0
reading uEnv.txt
470 bytes read
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
4313408 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: "RR Linux Kernel"
Created: 2013-08-14 1:19:43 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4313344 Bytes = 4.1 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux version 2.6.32-17-ridgerun (root@sanjay-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #12 PREEMPT Wed Aug 14 06:48:52 IST 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DM368 Leopard
Memory policy: ECC disabled, Data cache writeback
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 21082
Kernel command line: davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=PAL davinci_display.cont2_bufsize=7188000 vpfe_capture.cont_bufoffset=7188000 vpfe_capture.cont_bufsize=14336000 video=davincifb:osd1=0x0x8:osd0=720x480x16,1350K@0,0:vid0=off:vid1=off console=ttyS0,115200n8 dm365_imp.oper_mode=0 mem=83M root=/dev/mmcblk0p2 rootdelay=1 ip=199.200.15.66 netmask=255.255.255.0 rootfstype=ext3
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 83MB = 83MB total
Memory: 79712KB available (3892K code, 290K data, 128K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 222.00 BogoMIPS (lpj=1110016)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
davinci_serial_init:97: failed to get UART2 clock
bio: create slab <bio-0> at 0
DM365 IPIPE initialized in Single Shot mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
ch0 default output "COMPOSITE", mode "PAL"
VPBE Encoder Initialized
LogicPD encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 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
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 155
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 1350KB
davincifb davincifb.0: dm_osd1_fb: 0x0x8@0,0 with framebuffer size 810KB
DM365 IPIPEIF probed
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
davinci_nand davinci_nand.0: controller rev. 2.3
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
i2c /dev entries driver
Linux video capture interface: v2.00
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
tvp514x 1-005d: tvp514x 1-005d decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
vpfe_register_ccdc_device: DM365 ISIF
DM365 ISIF is registered with vpfe.
af major#: 252, minor# 0
AF Driver initialized
aew major#: 251, minor# 0
AEW Driver initialized
Trying to register davinci display video device.
layer=c40b0c00,layer->video_dev=c40b0d64
Trying to register davinci display video device.
layer=c40b1000,layer->video_dev=c40b1164
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci DM365 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused mmcsd1
Clocks: disable unused spi0
Clocks: disable unused spi1
Clocks: disable unused spi2
Clocks: disable unused spi3
Clocks: disable unused spi4
Clocks: disable unused pwm0
Clocks: disable unused pwm1
Clocks: disable unused pwm2
Clocks: disable unused pwm3
Clocks: disable unused timer1
Clocks: disable unused timer3
Clocks: disable unused adc
Clocks: disable unused emac
Clocks: disable unused voice_codec
Clocks: disable unused rto
Clocks: disable unused mjcp
davinci_emac_probe: using random MAC addr: 6e:56:72:65:d2:ad
emac-mii: probed
Waiting 1sec before mounting root device...
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD08G 7.40 GiB
mmcblk0: p1 p2
EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
kjournald starting. Commit interval 5 seconds
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 128K
init started: BusyBox v1.18.2 (2013-07-12 09:28:32 IST)
starting pid 984, tty '': '/etc/rcS'
Starting System
done.
Welcome to
__________ .__ .___ __________
\______ \|__| __| _/ ____ ____ \______ \ __ __ ____
| _/| | / __ | / ___\ _/ __ \ | _/| | \ / \
| | \| |/ /_/ | / /_/ >\ ___/ | | \| | /| | \
|____|_ /|__|\____ | \___ / \___ >|____|_ /|____/ |___| /
\/ \//_____/ \/ \/ \/
Embedded Linux Solutions
For further information see:
http://www.ridgerun.com
Build host: sanjay-desktop
Built by: root
Build date: Wed, 14 Aug 2013 06:49:43 +0530
Build tag: leopard
Configuring network interfaces
Error while running '/etc/rc.d/S30network'.
Starting D-Bus message bus system
Starting Ipipe daemon
Loading coprocessors modules...
Loading cmem from 0x86786e20 to 0x87786e20
CMEMK module: built on Jul 12 2013 at 09:39:45
Reference Linux version 2.6.32
File /home/sanjay/work/t.dm36xEvalSdk/proprietary/dvsdk-4_02_00_06/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xca000000 of size 0x1000000
heap fallback enabled - will try heap if pool buffer is not available
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x85300000)
cmemk initialized
EDMAK module: built on Jul 12 2013 at 09:39:48
Reference Linux version 2.6.32
File /home/sanjay/work/t.dm36xEvalSdk/proprietary/dvsdk-4_02_00_06/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Jul 12 2013 at 09:39:47
Reference Linux version 2.6.32
File /home/sanjay/work/t.dm36xEvalSdk/proprietary/dvsdk-4_02_00_06/dvsdk/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
Starting Dropbear SSH server: dropbear.
Starting GStreamer Daemon
Please press Enter to activate this console.
i doubt some setting issue with v4l2src or may be caps but not able to figure out, any help will be appreciated.
Asad