December 04, 2020, 12:54:08 pm


Have you visited the Allwinner Chipset wiki? -

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - alcantor

Quotei tried the command and i can encode now 40fps, but the bitrate is very higth, i changed de qp value and get smoller file but the quality sucks a lot..

how can i get lower bitrate with decent quality?

1. Try different value of qp.
2. Check if the audio stream is in the corrected format, if anyone (try -an to remove it).
3. Implement P-Frame (The open source version does not yet implementation the P and B Frame)

It would be nice to have P-Frame, but for that I need help too, that's also why i'have start this thread.
I had the same problem...

I've cleaned my system by reinstalling corrupted package, all ok until a reboot then the errors cames back on the recents file i used and package i had re-installed.

My CT was working very well for months until those corruptions... I had the feeling that somethings isn't flush to the flash in the driver (maybe when moving bad block).

I've give up and moved my rootfs to a HDD except for the boot partition. And yet if i replaced the kernel in the boot partition, it's get corrupted and won't boot anymore.

For kernel update, a do an 32MB image on the HDD and dump it into /dev/nand1 with the dd command. This way it works, don't ask me why :P

QuotePS, on my Ubuntu the partitions are called nand{a,b} and nand{1,2} on the Debian image. can that be a cause for trouble?

For me there is a problem in nand driver... I use the debian image (nanda, nandb) and i've upgrade to the kernel 3.4.104 thanks to  (nand1, nand2)... maybe the nand driver handle the flash differently, but i don't think so because i've run the version 3.4.99 for many months without any problem with rootfs on flash.
The only experience I had with the scaler (/dev/disp), is in,2843.0.html, we had use it to convert from YUV420 to RGB888.

If you see "cedrus264" in the stream mapping, you're using the hardware encoder.

[VE SUNXI] VE version 0x1623 opened.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
frame=  830 fps= 10 q=30.0 size=N/A time=00:00:34.58 bitrate=N/A

I've done a try with the binary blob:

I've created a rule in "/etc/udev/rules.d/80-cedar.rules" to load the modules automatically:
KERNEL=="disp", MODE="0666"
KERNEL=="cedar_dev", MODE="0666"

The big bunny test:

./ffmpeg -i /mnt/data/Film/Autre/ -t 10 -an -pix_fmt nv12 -c:v cedrus264 -f null /dev/null

Run at about 15 fps with hardware (And use a lot of processor!).

./ffmpeg -i /mnt/data/Film/Autre/ -t 10 -an -preset:v fast -c:v libx264 -f null /dev/null

Run at about 0.8 fps with software.

So hardware encoding is about 20x much faster....
Tips, Tricks and Guides / Re: Full Nand use
September 15, 2014, 04:05:31 am
If you've found some tutorials for cubietruck, it's probably the same for cubieboard expect for the size numbers.

First of all, display and backup your partition table:

./nand-part > nand-part.orig.txt
cat nand-part.orig.txt

You could paste the result in this thread, it would help.

When I see your "df -h", I see "/dev/nandd", it means you're using the fourth partition as root filesystem. The first partition is propably the boot partition, but what about the second and third partition??

Maybe try this, if you're sure that the second and third partition are unused (check it with "mount"):

mkfs.ext2 /dev/nandb
mkfs.ext2 /dev/nandc
mkdir /mnt/nandb /mnt/nandc
mount /dev/nandb /mnt/nandb
mount /dev/nandc /mnt/nandc

If it works, you could use the rest of the space in another partition in /mnt/nand*.
If you want one 4GiB Partition, it's more complicated and i need the result of the "mount" and "nand-part" command to help.
I use cubieez... Well i didn't try with HD video... But with SD video it is definitely quicker compare to libx264.

Did you compare with libx264?

Of course you could do optimisation! The scaler is software to convert to nv12, this could be done in hardware with /dev/disp.
For my use, i've compiled it with:

./configure --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-x11grab --enable-libpulse --enable-libv4l2 --enable-libtheora --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc

The cedrus264 comes automatically as long you have the right branch on my repo.

Search google with "sunxi usb gadget mass storage".


modprobe g_mass_storage file=/dev/nanda removable=y

If the module is not found, you're probably need to (re-) compile the kernel with it...

But you need to clone the sunxi-cedrus branch.

git clone -b sunxi-cedrus

Software & Applications / Re: no-ip client.
August 24, 2014, 03:39:07 am
Oh interesting. I've been comparing which the best DynDNS Service lately. I'll maybe subscribe to

Until yet I've plan to use ddclient (Standard package in most distribution). It's seems that uses the same protocols as Dyndns, so theoretically ddclient is compatible with (

Did you try ddclient? Is your client better, or need less resource?

By the way your application could be also compatible with DynDNS, if it's really the same protocol ;)
You can adapt a driver from For most of them there is enough GPIO on cubietruck.

Maybe one day I will try with, it works with 8 or 16 bits (aka 8 or 16 GPIO).
Beginners / Re: [help] A20: JPEG decode using cedarx
August 09, 2014, 10:29:26 am
I also noticed a little difference, very tiny (source little bit brighter). Need to investigate with colorspaces... The original code didn't do better (I do not have the time to try)?

It could be an artifact of the viewer when zooming on a jpeg, did you noticed a difference at the original size?

I update my code and use DISP_SEQ_BGRA. So that give RGBA... I probably done an error with my previous patch.

Quote from: actkk2000 on August 05, 2014, 08:53:21 pm
Sry, not that I am aware of...
Here the procedure for dual boot (Android on nand + Linux on sd):,2539.msg16548.html
It is valid for any Linux distro.

In this case your need to reboot...

What he's want is more that:
About the forum / Re: user registration is not working
August 04, 2014, 12:04:11 pm
I also had trouble to activate my account, that was 1 month ago. I try many times, with three different mail addresses... I've try with and, at the end after send 20x the activation link, i get it in mail gmail mail box.
Beginners / Re: Thumbnails in pictures files over DLNA
August 04, 2014, 10:56:24 am
Oh, I didn't catch it at the begining that was for images :-X.

If a look at, i can read:

QuoteYou will need this library if you want to extract metadata from images, this will allow you to have virtual containers for your Photos, sorted by various attributes like Date, etc. It also enables thumbnail support: if EXIF thumbnails are present in your images they will also be offered via UPnP.

Do you have EXIF thumbnails in your images? Had you tried to reimport the photos after installing libexif?