
Recherche avancée
Autres articles (95)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Installation en mode standalone
4 février 2011, parL’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
[mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)
Sur d’autres sites (6517)
-
FFMPEG and -crf on Android
12 juin 2014, par mister-viperyesterday I managed to build a newer Version of FFMPEG for Android. I directly created a binary which allows me to invoke commands per commandline. I builded the Version using NDK r9d and the 4.8 linux_x86_x64 toolchain.
After including everything in my Application my goal was to execute the command for which I did the whole effort.
My goal is to run :
ffmpeg -i example.mp4 -r 30 -vcodec libx264 -crf 0 output.mp4
Running this command on the command line via python works absolutly fine. However, running this command on Android does not work.
1) I get the error that I have to add
-strict experimental
After reading FFMPEG docu I found out, that this is due to the libx264. However, I do not understand why I have not to add this comment in the Python version.
2) After adding the parameter above, I was able to convert the video. However, the result was horrible. The transcoded images were just some noisy blinking green stuff. Thus, I looked for the problem. The problem is the parameter :
-crf 0
Due to this parameter, the result was so horrible. However, if I change the parameter to
-crf 1
everything is working as expected. BUT : I really want a lossless encoding here. That was the reason for choosing -crf 0. Moreover, this parameter works fine in my python version.
Can anybody explain to me :
1) What are I’m doing wrong ?
2) How can I use -crf 0 on Android ?Best regards,
André//Edit :
Requested Logoutput :06-12 19:23:04.841: I/System.out(8983): Starting process
06-12 19:23:04.871: D/dalvikvm(8983): GC_FOR_ALLOC freed 294K, 4% free 9260K/9592K, paused 17ms, total 18ms
06-12 19:23:04.871: I/System.out(8983): ffmpeg version N-63698-g22d1b24 Copyright (c) 2000-2014 the FFmpeg developers
06-12 19:23:04.871: I/System.out(8983): built on Jun 11 2014 13:17:16 with gcc 4.8 (GCC)
06-12 19:23:04.871: I/System.out(8983): configuration: --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a --sysroot=/home/andre/Desktop/android-ndk-r9d/platforms/android-9/arch-arm --disable-avdevice --disable-decoder=h264_vdpau --enable-libx264 --enable-gpl --prefix=build/armeabi-v7a-neon --extra-cflags='-I../x264 -DANDROID -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-L../x264 -Wl,--fix-cortex-a8 -L../android-libs -Wl,-rpath-link,../android-libs' --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
06-12 19:23:04.871: I/System.out(8983): libavutil 52. 89.100 / 52. 89.100
06-12 19:23:04.871: I/System.out(8983): libavcodec 55. 66.100 / 55. 66.100
06-12 19:23:04.871: I/System.out(8983): libavformat 55. 42.100 / 55. 42.100
06-12 19:23:04.871: I/System.out(8983): libavfilter 4. 5.100 / 4. 5.100
06-12 19:23:04.871: I/System.out(8983): libswscale 2. 6.100 / 2. 6.100
06-12 19:23:04.871: I/System.out(8983): libswresample 0. 19.100 / 0. 19.100
06-12 19:23:04.881: I/System.out(8983): libpostproc 52. 3.100 / 52. 3.100
06-12 19:23:04.971: I/System.out(8983): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/screen_recording.mp4':
06-12 19:23:04.971: I/System.out(8983): Metadata:
06-12 19:23:04.971: I/System.out(8983): major_brand : isom
06-12 19:23:04.971: I/System.out(8983): minor_version : 0
06-12 19:23:04.971: I/System.out(8983): compatible_brands: isomiso2avc1
06-12 19:23:04.971: I/System.out(8983): creation_time : 2014-06-12 11:52:00
06-12 19:23:04.971: I/System.out(8983): Duration: 00:00:09.39, start: 0.000000, bitrate: 597 kb/s
06-12 19:23:04.971: I/System.out(8983): Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x1280, 593 kb/s, SAR 65536:65536 DAR 9:16, 34.07 fps, 90k tbr, 90k tbn, 180k tbc (default)
06-12 19:23:04.971: I/System.out(8983): Metadata:
06-12 19:23:04.971: I/System.out(8983): creation_time : 2014-06-12 11:51:56
06-12 19:23:04.971: I/System.out(8983): [libx264 @ 0x171c930] using SAR=1/1
06-12 19:23:04.981: I/System.out(8983): [libx264 @ 0x171c930] using cpu capabilities: ARMv6 NEON
06-12 19:23:04.991: I/System.out(8983): [libx264 @ 0x171c930] profile High 4:4:4 Predictive, level 3.1, 4:2:0 8-bit
06-12 19:23:04.991: I/System.out(8983): [libx264 @ 0x171c930] 64 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
06-12 19:23:04.991: I/System.out(8983): Output #0, mp4, to '/storage/emulated/0/screen_recording_out.mp4':
06-12 19:23:05.001: I/System.out(8983): Metadata:
06-12 19:23:05.001: I/System.out(8983): major_brand : isom
06-12 19:23:05.001: I/System.out(8983): minor_version : 0
06-12 19:23:05.001: I/System.out(8983): compatible_brands: isomiso2avc1
06-12 19:23:05.001: I/System.out(8983): encoder : Lavf55.42.100
06-12 19:23:05.001: I/System.out(8983): Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x1280 [SAR 65536:65536 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
06-12 19:23:05.001: I/System.out(8983): Metadata:
06-12 19:23:05.001: I/System.out(8983): creation_time : 2014-06-12 11:51:56
06-12 19:23:05.001: I/System.out(8983): encoder : Lavc55.66.100 libx264
06-12 19:23:05.001: I/System.out(8983): Stream mapping:
06-12 19:23:05.001: I/System.out(8983): Stream #0:0 -> #0:0 (h264 -> libx264)
06-12 19:23:05.001: I/System.out(8983): Press [q] to stop, [?] for help
06-12 19:23:05.662: I/System.out(8983): frame= 14 fps=0.0 q=0.0 size= 51kB time=00:00:00.23 bitrate=1789.0kbits/s dup=0 drop=7
06-12 19:23:06.022: I/System.out(8983): frame= 20 fps= 20 q=0.0 size= 127kB time=00:00:00.43 bitrate=2395.1kbits/s dup=0 drop=14
06-12 19:23:06.602: I/System.out(8983): frame= 25 fps= 16 q=0.0 size= 195kB time=00:00:00.60 bitrate=2659.2kbits/s dup=0 drop=16
06-12 19:23:07.103: I/System.out(8983): frame= 30 fps= 14 q=0.0 size= 262kB time=00:00:00.76 bitrate=2803.4kbits/s dup=0 drop=21
06-12 19:23:07.674: I/System.out(8983): frame= 50 fps= 19 q=0.0 size= 276kB time=00:00:01.43 bitrate=1575.9kbits/s dup=0 drop=35
06-12 19:23:08.174: I/System.out(8983): frame= 70 fps= 22 q=0.0 size= 277kB time=00:00:02.10 bitrate=1079.1kbits/s dup=0 drop=35
06-12 19:23:08.725: I/System.out(8983): frame= 90 fps= 24 q=0.0 size= 278kB time=00:00:02.76 bitrate= 821.8kbits/s dup=0 drop=35
06-12 19:23:09.245: I/System.out(8983): frame= 109 fps= 26 q=0.0 size= 291kB time=00:00:03.40 bitrate= 700.3kbits/s dup=0 drop=42
06-12 19:23:09.746: I/System.out(8983): frame= 125 fps= 27 q=0.0 size= 299kB time=00:00:03.93 bitrate= 622.1kbits/s dup=0 drop=43
06-12 19:23:10.236: I/System.out(8983): frame= 144 fps= 28 q=0.0 size= 300kB time=00:00:04.56 bitrate= 537.4kbits/s dup=0 drop=44
06-12 19:23:11.117: I/System.out(8983): frame= 160 fps= 28 q=0.0 size= 337kB time=00:00:05.10 bitrate= 542.1kbits/s dup=0 drop=55
06-12 19:23:11.277: I/System.out(8983): frame= 162 fps= 26 q=0.0 size= 378kB time=00:00:05.16 bitrate= 598.6kbits/s dup=0 drop=58
06-12 19:23:11.828: I/System.out(8983): frame= 178 fps= 26 q=0.0 size= 428kB time=00:00:05.70 bitrate= 614.6kbits/s dup=0 drop=59
06-12 19:23:12.318: I/System.out(8983): frame= 198 fps= 27 q=0.0 size= 429kB time=00:00:06.36 bitrate= 551.6kbits/s dup=0 drop=68
06-12 19:23:12.829: I/System.out(8983): frame= 214 fps= 27 q=0.0 size= 431kB time=00:00:06.90 bitrate= 511.6kbits/s dup=0 drop=69
06-12 19:23:13.339: I/System.out(8983): frame= 233 fps= 28 q=0.0 size= 432kB time=00:00:07.53 bitrate= 469.6kbits/s dup=0 drop=70
06-12 19:23:14.690: I/System.out(8983): frame= 262 fps= 27 q=-1.0 Lsize= 457kB time=00:00:08.73 bitrate= 428.4kbits/s dup=18 drop=76
06-12 19:23:14.690: I/System.out(8983): video:455kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.401494%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] frame I:2 Avg QP: 0.00 size: 11390
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] frame P:260 Avg QP: 0.00 size: 1702
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] mb I I16..4: 97.5% 0.2% 2.3%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] mb P I16..4: 5.9% 0.3% 0.1% P16..4: 0.9% 0.1% 0.0% 0.0% 0.0% skip:92.8%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] 8x8 transform intra:3.6% inter:31.8%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] coded y,uvDC,uvAC intra: 17.3% 9.6% 9.2% inter: 0.4% 0.3% 0.3%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] i16 v,h,dc,p: 69% 30% 1% 0%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 49% 29% 0% 0% 0% 0% 0% 0%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 31% 14% 1% 2% 2% 2% 1% 1%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] i8c dc,h,v,p: 80% 16% 3% 0%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] Weighted P-Frames: Y:5.4% UV:4.6%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] ref P L0: 74.9% 4.1% 19.6% 1.3% 0.0%
06-12 19:23:14.710: I/System.out(8983): [libx264 @ 0x171c930] kb/s:426.18
06-12 19:23:14.740: I/System.out(8983): Finished
06-12 19:23:14.740: I/System.out(8983): Finished Process -
Checking processor capabilities in android
29 avril 2014, par StackOverflowedI’m using FFMPEG in an app, and I’m using the following configuration :
--extra-cflags=' -march=armv7-a -mfloat-abi=softfp -mfpu=neon'
I’m targeting 4.0+ so I believe armv7-a should be supported by most non Intel devices, and I’m sure the neon extension is supported in most devices as well, but I’m not sure how I can find that out for all 2000+ devices.
Is there a way to check in Android the processor type and extensions and/or in the Google Play Store to limit the apk to devices with certain processors ?
-
Dreamcast Operating Systems
16 septembre 2010, par Multimedia Mike — Sega DreamcastThe Sega Dreamcast was famously emblazoned with a logo proudly announcing that it was compatible with Windows CE :
It’s quite confusing. The console certainly doesn’t boot into some version of Windows to launch games. Apparently, there was a special version of CE developed for the DC and game companies had the option to leverage it. I do recall that some game startup screens would similarly advertise Windows CE.
Once the homebrew community got ahold of the device, the sky was the limit. I think NetBSD was the first alternative OS to support the Dreamcast. Meanwhile, I have recollections of DC Linux and LinuxDC projects along with more generic Linux-SH and SH-Linux projects.
DC Evolution hosts a disc image available for download with an unofficial version of DC Linux, assembled by one Adrian O’Grady. I figured out how to burn the disc (burning DC discs is a blog post of its own) and got it working in the console.
It’s possible to log in directly via the physical keyboard or through a serial terminal provided that you have a coder’s cable. That reminds me– my local Fry’s had a selection of USB-to-serial cables. I think this is another area that is sufficiently commoditized that just about any cable ought to work with Linux out of the box. Or maybe I’m just extrapolating from the experience of having the cheapest cable in the selection (made by io connect) plug and play with Linux.
Look ! No messy converter box in the middle as in the Belkin case. The reason I went with this cable is that the packaging claimed it was capable of up to 500 Kbits/sec. Most of the cables advertised a max of 115200 bps. I distinctly recall being able to use the DC coder’s cable at 230400 bps a long time ago. Alas, 115200 seems to be the speed limit, even with this new USB cable.
Anyway, the distribution is based on a 2.4.5 kernel circa 2001. I tried to make PPP work over the serial cable but the kernel doesn’t have support. If you’re interested, here is some basic information about the machine from Linux’s perspective, gleaned from some simple commands. This helps remind us of a simpler time when Linux was able to run comfortably on a computer with 16 MB of RAM.
Debian GNU/Linux testing/unstable dreamcast ttsc/1
dreamcast login : root
Linux dreamcast 2.4.5 #27 Thu May 31 07:06:51 JST 2001 sh4 unknownMost of the programs included with the Debian GNU/Linux system are
freely redistributable ; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyrightDebian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.dreamcast : # uname -a
Linux dreamcast 2.4.5 #27 Thu May 31 07:06:51 JST 2001 sh4 unknowndreamcast : # cat /proc/cpuinfo
cpu family : SH-4
cache size : 8K-byte/16K-byte
bogomips : 199.47Machine : dreamcast
CPU clock : 200.00MHz
Bus clock : 100.00MHz
Peripheral module clock : 50.00MHzdreamcast : # top -b
09:14:54 up 14 min, 1 user, load average : 0.04, 0.03, 0.03
15 processes : 14 sleeping, 1 running, 0 zombie, 0 stopped
CPU states : 1.1% user, 5.8% system, 0.0% nice, 93.1% idle
Mem : 14616K total, 11316K used, 3300K free, 2296K buffers
Swap : 0K total, 0K used, 0K free, 5556K cachedPID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
219 root 18 0 1072 1068 868 R 5.6 7.3 0:00 top
1 root 9 0 596 596 512 S 0.0 4.0 0:01 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 9 0 0 0 0 SW 0.0 0.0 0:00 kswapd
4 root 9 0 0 0 0 SW 0.0 0.0 0:00 kreclaimd
5 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush
6 root 9 0 0 0 0 SW 0.0 0.0 0:00 kupdated
7 root 9 0 0 0 0 SW 0.0 0.0 0:00 kmapled
39 root 9 0 900 900 668 S 0.0 6.1 0:00 devfsd
91 root 8 0 652 652 556 S 0.0 4.4 0:00 pump
96 daemon 9 0 524 524 420 S 0.0 3.5 0:00 portmap
149 root 9 0 944 944 796 S 0.0 6.4 0:00 syslogd
152 root 9 0 604 604 456 S 0.0 4.1 0:00 klogd
187 root 9 0 540 540 456 S 0.0 3.6 0:00 getty
201 root 9 0 1380 1376 1112 S 0.0 9.4 0:01 bashNote that at this point I had shutdown both gpm and inetd. The rest of the processes, save for bash, are default. The above stats only report about 14 MB of RAM ; where are the other 2 MB ?
dreamcast : # df -h Filesystem Size Used Avail Use% Mounted on /dev/rd/1 2.0M 560k 1.4M 28% /