
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (111)
-
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 (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6693)
-
Convert video to animated GIF with FFmpeg [migrated]
5 janvier 2014, par flexageI have FFmpeg installed and working on my Ubuntu 12.04 LTS Server.
I have managed to successfully automate the process of uploading a video and converting it to both H264/MP4 and OGV for display on the web.
I also wanted to generate an animated GIF thumbnail for the video.
I have got as far as the following, which I'm pretty sure is generating 2 frames a second for the first 10 seconds of the video :
/usr/local/bin/ffmpeg -i "$3/uploads/video-queue/$1.$2" -vf scale=320:-1 -t 10 -r 2 "$3/uploads/video-queue/processing/$1.gif"
What I would prefer to do is generate 1 frame every 25 seconds for the duration of the entire video, but also with a maximum number of frames set as something like 50 frames.
I would prefer not to have dependencies on other components such as Image Magik, and I would like to keep this purely shell based.
Thanks in advance ! You guys are way smarter than me for sure !
Here is the complete console output from an ffmpeg run of the command above :
root@ubuntu:/home/fckster/etc/php5# /home/fckster/public_html/cronscripts/process-video-gif.sh 1-1388841621 wmv /home/fckster/public_html
ffmpeg version N-59480-g8feaa83-syslint Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 2 2014 00:32:20 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.102 / 55. 22.102
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[wmv3 @ 0x24dd680] Extra data: 8 bits left, value: 0
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, asf, from '/home/fckster/public_html/uploads/video-queue/1-1388841621.wmv':
Metadata:
WM/ToolName : Flip4Mac WMV Export Component for QuickTime (Mac)
WM/ToolVersion : 2204
encoder : Lavf54.29.104
Duration: 00:01:11.30, start: 0.140000, bitrate: 2096 kb/s
Stream #0:0: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 29.97 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 48 kb/s
[wmv3 @ 0x24dd680] Extra data: 8 bits left, value: 0
Output #0, gif, to '/home/fckster/public_html/uploads/video-queue/processing/1-1388841621.gif':
Metadata:
WM/ToolName : Flip4Mac WMV Export Component for QuickTime (Mac)
WM/ToolVersion : 2204
encoder : Lavf55.22.102
Stream #0:0: Video: gif, pal8, 320x180, q=2-31, 200 kb/s, 100 tbn, 10 tbc
Stream mapping:
Stream #0:0 -> #0:0 (wmv3 -> gif)
Press [q] to stop, [?] for help
frame= 87 fps= 52 q=0.0 Lsize= 2131kB time=00:00:10.00 bitrate=1745.9kbits/s dup=0 drop=170
video:2219kB audio:0kB subtitle:0 global headers:0kB muxing overhead -3.939009% -
Convert form 30 to 60fps by increasing speed, not duplicating frames. FFmpeg
14 janvier 2014, par Matt PellegriniI have a video that is incorrectly labelled at 30fps, it is actually 60fps and so looks like it's being played at half speed. The audio is fine, that is, the soundtrack finishes half way through the video clip. I'd like to know how, if possible to fix this, that is double the video speed, making it 60fps and meaning that the audio and video are synced.
The file is H.264 and the audio MPEG-4 AAC
Thanks in advance for any help,
Matt
File details as given by ffmpeg, as requested :
ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 9 2013 19:09:46 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './Tignes60fps.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2014-01-13 02:23:09
Duration: 00:08:33.21, start: 0.000000, bitrate: 5690 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 5609 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
Metadata:
creation_time : 2014-01-13 02:23:09
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 156 kb/s
Metadata:
creation_time : 2014-01-13 02:23:09
At least one output file must be specified -
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