December 04, 2020, 12:54:08 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


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

1
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.
2
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 www.danand.de  (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.
3
The only experience I had with the scaler (/dev/disp), is in http://www.cubieforums.com/index.php/topic,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: http://www.forum-cubieboard.de/Thread-avconv-h-264-hardware-encoding-mit-cubietruck-mediatomb-transcoding

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/big_buck_bunny_1080p_h264.mov -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/big_buck_bunny_1080p_h264.mov -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....
4
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.
5
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.
6
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.
7
Hello,

Search google with "sunxi usb gadget mass storage".

https://www.olimex.com/forum/index.php?topic=3113.0

Try:

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...
8
No...

But you need to clone the sunxi-cedrus branch.

git clone https://github.com/Alcantor/FFmpeg.git -b sunxi-cedrus


9
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 no-ip.com.

Until yet I've plan to use ddclient (Standard package in most distribution). It's seems that no-ip.com uses the same protocols as Dyndns, so theoretically ddclient is compatible with no-ip.com (http://birkett.no/blog/2013/08/14/use-ddclient-with-no-ip-com/).

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 ;)
10
You can adapt a driver from https://github.com/notro/fbtft/wiki. For most of them there is enough GPIO on cubietruck.

Maybe one day I will try with http://www.sainsmart.com/sainsmart-3-2-tft-lcd-display-touch-panel-pcb-adapter-sd-slot-for-arduino-2560.html, it works with 8 or 16 bits (aka 8 or 16 GPIO).
12
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.

13
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):
http://www.cubieforums.com/index.php/topic,2539.msg16548.html
It is valid for any Linux distro.


In this case your need to reboot...

What he's want is more that: http://sven-ola.dyndns.org/repo/debian-kit-en.html
14
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 hotmail.com and bluewin.com, at the end after send 20x the activation link, i get it in mail gmail mail box.
15
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 http://mediatomb.cc/pages/documentation, 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?