I tested the triple resizing and encoding in ipnc 2.0 dm368. It is offering only 17 fps.
If I change the config->resizerClkdivN = 40 , it does triple streaming . But after some time it hangs.
Have anybody tried this on Dm368? It works for dm365.
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.
I tested the triple resizing and encoding in ipnc 2.0 dm368. It is offering only 17 fps.
If I change the config->resizerClkdivN = 40 , it does triple streaming . But after some time it hangs.
Have anybody tried this on Dm368? It works for dm365.
Hi,
Which triple streaming usecase are you trying? Can you provide some details about the mode, so that we can figure out the issue? We need resolution details in this usecase
Regards,
Anshuman
I will have to check with the team on how they expect the performance on IMX sensor IPNC. Which is the sensor IMX035 or IMX036?
Can you share the profile log on the terminal so that i can help further?
Regards,
Anshuman
It is IMX036. The logs are given below.
It is not giving 30fps in ddr resizing mode as you see it in the profiler.
Starting kernel ...
Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.0.0 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Thu Ju0
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DM368 IPNC
Memory policy: ECC disabled, Data cache writeback
DaVinci DM0365 variant 0x8
PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428
PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
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: 12800
Kernel command line: mem=50M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M eth=00:0C:0C:A0:04:B5
PID hash table entries: 256 (order: 8, 1024 bytes)
Clock event device timer0_0 configured with caps set: 07
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 50MB = 50MB total
Memory: 30208KB available (3117K code, 647K data, 176K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 16384K
NET: Registered protocol family 16
DaVinci: 104 gpio irqs
MUX: initialized GPIO20
MUX: initialized I2C_SCL
Generic PHY: Registered new driver
ch0 default output "COMPOSITE", mode "NTSC"
VPBE Encoder Initialized
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
***davinci_spi_board_init()!<6>
***davinci_spi_board_init_End(0)!<5>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 Jul 29 2010 14:32:38 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
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
Linux video capture interface: v2.00
Trying to register davinci display video device.
layer=c2e74a00,layer->video_dev=c2e74b60
Trying to register davinci display video device.
layer=c2e74800,layer->video_dev=c2e74960
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
i2c /dev entries driver
nand_davinci nand_davinci.0: Using 4-bit hardware ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Creating 7 MTD partitions on "nand_davinci.0":
0x00000000-0x00300000 : "bootloader"
0x00300000-0x00500000 : "params"
0x00500000-0x00700000 : "kernel"
0x00700000-0x02700000 : "filesystem"
0x02700000-0x02900000 : "data1"
0x02900000-0x02d00000 : "Calibration"
0x02d00000-0x08000000 : "data2"
nand_davinci nand_davinci.0: hardware revision: 2.3
MUX: initialized SPI0_SCLK
MUX: initialized SPI0_SDO)
dm_spi.0: davinci SPI Controller driver at 0xc3866000 (irq = 42) use_dma=0
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
CQ0093 Voice Codec 0.1
asoc: cq93vc <-> davinci-vcif mapping ok
ALSA device list:
#0: On-chip voice codec (cq93vc)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2010-12-03 03:38:08 (1291347488)
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: No network devices available.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 11896KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 176K
INIT: version 2.86 booting
0
mkdir: Cannot create directory `/dev/.test': Read-only file system
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
0
CSL: Module install successful, device major num = 253
CSL: Module version 0.10.00, built on Jul 14 2010 17:49:32
I2C: Module install successful, device major num = 252
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Jul 14 2010 17:49:33
DRV: EDMACC.QUEPRI = 00000777
DRV: SYSTEM.MSTPRI0 = 00550011
DRV: SYSTEM.MSTPRI1 = 00000444
DRV: ISP.BCR = 00000002
DRV: SYSTEM.MISC = 00000311
CMEMK module: built on Jul 14 2010 at 17:48:57
Reference Linux version 2.6.18
File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x4e00000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83200000)
cmemk initialized
EDMAK module: built on Jul 14 2010 at 17:49:01
Reference Linux version 2.6.18
File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Jul 14 2010 at 17:49:02
Reference Linux version 2.6.18
File /home/wenchi/Templates/DM365_IMX035/dvsdk_2_10_01_18_368/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
Creat queue id:0
queue id:0
Creat queue id:32769
queue id:32769
Creat queue id:65538
queue id:65538
IPNC_DM368_2.0.0 (wenchi@dino.linux) (gcc version 4.2.0 (MontaV
queue id:65538
queue id:32769
DEMOCFG Value: 0
nVideocodecmode = 0
nVideocodecres = 0
./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CBR MENUOFF &
Check_device_version : DEVICE VER = 0 !!
Starting mounting local filesystems:
AVSERVER UI: Initializing.
DRV_SyncRst: module = 47, domain = 0, state = 0
DRV_SyncRst: module = 47, domain = 0, state = 3
mount none on /dev/shm type tmpfs (rw,size=5M)
none on /var/run type tmpfs (rw)
none on /tmp type tmpfs (rw,sync)
CLK Hz,
ARM Hz = 432000000
DDR Hz = 340000000
VPSS Hz = 340000000
IMCOP Hz = 340000000
DRV LDC: GetConfig 0004 0x0
Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file system
numid=2,iface=MIXER,name='Mono DAC Playback Volume'
; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0
: values=32
ApproDrvInit: 7
Creat queue id:98307
queue id:98307
Starting hotplug subsystem:
AVSERVER UI: Starting in mode 1
############OPEN###########
Sensor Mode Info,
Width = 2024
Height = 1140
fps = 24
Bin Enable = 1
Sensor Frame Timing Info,
fps = 24
t_frame (ns) = 41666668.000000
t_row (ns) = 30458.333984
t_pclk (ns) = 10.416667
W = 2024
H = 1140
SW = 1406
SD = 0
HB = 450
VB = 227
HBmin = 450
VBmin = 9
f_pclk = 96000000
shutterOverhead (ns) = 4437.500000
col_size = 2024
row_size = 1140
col_bin = 0
row_bin = 0
col_start = 88
row_start = 276
pll_M = 16
pll_N = 1
pll_DIV = 1
############reset###########
pci
pci [success]
############SPI OPEN###########
spi mode: 16
bits per word: 8
max speed: 12000000 Hz (12000 KHz)
############SET REG###########
############OPEN END###########
================> 1023, 0, 1607
APPRO Setting Applied
Default Icon TI Logo
Default Icon TI Logo
Default Icon TI Logo
DM365MM Init SuccessfulRate Control Type: IVIDEO_LOW_DELAY STREAM: Ext 0: 0x0
STREAM: Ext 1: 0x0
queue id:98307
FF: FF open
FR : 0 users registered DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 640,
layer.pix_fmt.width = 640,
layer.pix_fmt.height = 480,
layer.pix_fmt.sizeimage =460800
from exsiting faDavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
layer->layer_info.config.line_length= 640
ce album
FF: FF open done.
IPNC_DM368_2.0.0 (wenchi@dino.linux) (gcc version 4.2.0 (MontaV
IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)#####################
APPRO 2A Created
XXXXX IAE_CMD_SET_CONFIG XXXXX
usb
222 Aew_Cal_LoadParam: dfc check sum success
(nand offset: 0x00500010, size: 0x0000181c, checksum: 0x00021e46)
################DFC ret=0##################
DFC number:255
EE SETUP SHIFT VALUE: 3
GBCE in EVAL MODE
AUDIO_GetSampleRate = 8000
AUDIO : period size = 1000 frames dir = 0
AUDIO : period time = 125000 us dir = 0
queue id:65538
***************************************
APPROPHO AEW TRIAL VERSION !!!
APPROPHO AEW DATE LINE 2011/6
***************************************
XXXXX DRV_imgsSetAgain() Error(0)
ND Init
ND:Day
--->Chip init PASS
Mode:0,F:2,Q:-1
Enable APPRO_DBG Function @@@@@@@@@@@@@@@@@@@@@
usb [success]
isapnp
isapnp [success]
ide
ide [success]
input
ROI DEBUG CONFIG: 0
AEW TYPE DEBUG VALUE: 3
day_night = 0
GBCE DEBUG VALUE: 0
FeatureMask: NONE.
input [success]
scsi
scsi [success]
done.
Starting portmap daemon: portmap.
Starting internet superserver: inetd.
io scheduler deadline registered
io scheduler cfq registered
TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:A0:04:B5
sbulla: unknown partition table
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
loop: loaded (max 8 devices)
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CSLIP: code copyright 1989 Regents of the University of California
netconsole: not configured, aborting
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
Davinci EMAC MII Bus: probed
MAC address is 00:0C:0C:A0:04:B5
TI DaVinci EMAC Linux version updated 4.0
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
usbcore: registered new driver usbfs
usbcore: registered new driver hub
musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0
musb_hdrc musb_hdrc: No DMA interrupt line
musb_hdrc: USB Peripheral mode controller at c38fa000 using DMA, IRQ 12
Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
sbulla: unknown partition table
mkdosfs 3.0.6 (04 Oct 2009)
unable to get drive geometry, using default 255/63
/dev/sbulla has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 1024 sectors;
file system has 2 12-bit FATs and 4 sectors per cluster.
FAT size is 1 sector, and provides 247 clusters.
Root directory contains 512 slots.
Volume ID is 62eeb10f, no volume label.
queue id:0
umount: /mnt/mmc: not mounted
killall: dhcpcd: no process killed
rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
net_search_gateway:eth0, 20A, 0, 1
dns=192.168.1.1
net_search_gateway:eth0, 20A, 0, 1
net_search_gateway:eth0, 0, 102020A, 3
dns=192.168.1.1
ERROR: Module g_file_storage does not exist in /proc/modules
g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/sbulla
system_server/538[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
ApproDrvInit: 2
ApproDrvInit: 6
queue id:98307
Initializing...
ApproDrvInit: 8
queue id:98307
ApproDrvInit: 3
queue id:98307
queue id:0
queue id:32769
INIT: Entering runlevel: 3
ApproDrvInit: 9
queue id:98307
Initializing...
ApproDrvInit: 10
queue id:98307
Initializing...
...done initializing
Play this stream using the URL:
rtsp://10.2.141.117:8554/mpeg4
queue id:98307
Initializing...
...done initializing
Play this stream using the URL:
rtsp://10.2.141.117/mpeg4
...done initializing
Play this stream using the URL:
rtsp://10.2.141.117:8557/h264
...done initializing
Play this stream using the URL:
rtsp://10.2.141.117:8556/h264
Initializing...
...done initializing
Play this stream using the URL:
rtsp://10.2.141.117:8555/mjpeg
queue id:0
[03/Dec/2010:03:38:25 +0000] boa: server version Boa/0.94.13
[03/Dec/2010:03:38:25 +0000] boa: server built Jul 14 2010 at 16:05:12.
[03/Dec/2010:03:38:25 +0000] boa: starting server pid=814, port 80
UDPString=uuid:Upnp-TVEmulator-1_0-00_0043158699</UDN>
Upnp port is 0
UPnP Initialized OK ip=10.2.141.117, port=49152
desc_doc_url = http://10.2.141.117/tvdevicedesc.xml
error code = 0
device advertisement succeed.
MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
DM36x_IPNC login: Audio disabled!
Audio disabled!
Audio disabled!
Audio disabled!
Audio disabled!
Audio Alarm!!
Audio Alarm!!
Audio Alarm!!
Audio Alarm!!
Audio Alarm!!
MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
DM36x_IPNC login:
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames |
CAPTURE | 41.99 | 23.82 | 37829 | 901 |
IPIPE | 31.65 | 31.60 | 28515 | 901 |
RESIZE | 4.97 | 201.16 | 4479 | 901 |
ENCODE0 | 16.63 | 60.14 | 14964 | 900 |
STREAM | 0.29 | 3488.37 | 258 | 900 |
FACE.D | 12.48 | 80.10 | 387 | 31 |
AEWB | 3.24 | 308.40 | 3677 | 1134 |
Hi,
Looking at the log below, you can see that sensor fps is set to 24 and that is the reason why you are seeing a slowed framerate. Rest of the system is running much more faster. You can increase the "sensorFPS" in the avserverUI.c
Mahendra kumar Angamuthu Ganesan said:############OPEN###########
Sensor Mode Info,
Width = 2024
Height = 1140
fps = 24
Bin Enable = 1
Sensor Frame Timing Info,
fps = 24
t_frame (ns) = 41666668.000000
t_row (ns) = 30458.333984
t_pclk (ns) = 10.416667
W = 2024
H = 1140
SW = 1406
SD = 0
HB = 450
VB = 227
HBmin = 450
VBmin = 9
f_pclk = 96000000
shutterOverhead (ns) = 4437.500000
col_size = 2024
row_size = 1140
col_bin = 0
row_bin = 0
col_start = 88
row_start = 276
pll_M = 16
pll_N = 1
pll_DIV = 1
############reset###########
Regards,
Anshuman
hi Anshuman,
we are facing the same problem.
i want to ask if it is work for you.
we've done many tests use dm365 resize, such as d1, vga, cif, qvga, qcif to 800x480, all is ok except qcif failed with timeout error.
if we change m=10, n=240 as we have done on the other resolutions , the timeout error gone.but the dist yuv is not ok.
we'd like to ask for advices.
thanks.
regards, Mike