
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (47)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (5962)
-
How to grap voice and vedio in ffmpeg \ mplayer\mencoder ?
4 février 2013, par Kill KillMy target is to grap voice and vedio via webcamera,there are three ways to do :
1.ffmpeg -f oss -i /dev/dsp -f video4linux2 -r 25 -b 500000 -s 320x240 -i /dev/video0 out.mpg
WARNING : gnome-keyring: : couldn't connect to : /home/debian/.cache/keyring-4Hzs4r/pkcs11 : No such file or directory
ffmpeg version 0.8.5-6:0.8.5-1, Copyright (c) 2000-2012 the Libav developers
built on Jan 13 2013 16:02:15 with gcc 4.7.2
* THIS PROGRAM IS DEPRECATED *
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[oss @ 0x9d63c60] /dev/dsp : No such file or directory
/dev/dsp : Input/output errorin my computer how to revise it ?
2.mplayer tv :// -tv driver=v4l2:input=0:width=640:height=480:fps=25 -vo x11
i can see the veido when the command run ,how can l save the output into a file and grap the voice ?3.mencoder tv :// -tv driver=v4l2:width=800:height=600:device=/dev/video0:fps=30:outfmt=yuy2:forceaudio:alsa:adevice=hw.2,0 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800 -ffourcc xvid -oac mp3lame -lameopts cbr=128 -o output.avi
MEncoder svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
success : format : 9 data : 0x0 - 0x0
TV file format detected.
Selected driver : v4l2
name : Video 4 Linux 2 input
author : Martin Olschewski
comment : first try, more to come
v4l2 : your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device : PC Camera
Capabilities : video capture read/write streaming
supported norms :
inputs : 0 = zc3xx ;
Current input : 0
Current format : unknown (0x4745504a)
tv.c : norm_from_string(pal) : Bogus norm parameter, setting default.
v4l2 : ioctl enum norm failed : Inappropriate ioctl for device
Error : Cannot set norm !
Selected input hasn't got a tuner !
ALSA lib pcm_hw.c:1401 :(_snd_pcm_hw_open) Invalid value for card
Error opening audio : No such file or directory
ALSA lib pcm_hw.c:1401 :(_snd_pcm_hw_open) Invalid value for card
Error opening audio : No such file or directory
ALSA lib pcm_hw.c:1401 :(_snd_pcm_hw_open) Invalid value for card
Error opening audio : No such file or directory
v4l2 : ioctl set mute failed : Invalid argument
v4l2 : 0 frames successfully processed, 0 frames dropped.
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author ! ===
Cannot open demuxer.Exiting...
-
Encoding a readable movie by QuickTime using FFMPEG
3 octobre 2014, par itamarbI’m trying to encode an image sequence using the following command :
ffmpeg.exe -i %d.png -f mp4 -vcodec h264 test.mp4
However, QuickTime failed to open this file or sometimes play a black movie, while this movie plays great in VLC player. Any suggestions how to make it play well in QuickTime ?
Here is the output :
ffmpeg.exe -i %d.png -f mp4 -vcodec libx264 13.mp4
ffmpeg version N-49044-g89afa63 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 19 2013 20:36:06 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en
able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable
-libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r
libavutil 52. 15.100 / 52. 15.100
libavcodec 54. 89.100 / 54. 89.100
libavformat 54. 61.101 / 54. 61.101
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.101 / 3. 32.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[image2 @ 0221b940] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, image2, from '%d.png':
Duration: 00:01:19.36, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 639x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0221edc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE
4.2 AVX
[libx264 @ 0221edc0] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264 @ 0221edc0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Cop
yleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb
lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro
ma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 in
terlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b
_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecu
t=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '13.mp4':
Metadata:
encoder : Lavf54.61.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 639x480, q=-1--1
, 12800 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> libx264)
Press [q] to stop, [?] for help
frame= 76 fps=0.0 q=28.0 size= 3kB time=00:00:00.96 bitrate= 22.3kbits/
frame= 156 fps=155 q=28.0 size= 7kB time=00:00:04.16 bitrate= 14.7kbits/
frame= 219 fps=145 q=28.0 size= 12kB time=00:00:06.68 bitrate= 14.1kbits/
frame= 283 fps=141 q=28.0 size= 16kB time=00:00:09.24 bitrate= 14.2kbits/
frame= 352 fps=140 q=28.0 size= 25kB time=00:00:12.00 bitrate= 17.4kbits/ -
FFMPEG - Images to Video
24 mars 2014, par Maheshffmpeg -f image2 -r 15 -i images/img%03d.jpg -vcodec libx264 video.mp4
I run this code with exec in php.
I am not getting the output. The video.mp4 is blank.
However if i modify this commade to something like this,
ffmpeg -f image2 -i i.jpg -vcodec libx264 -t 15 video.mp4
The video is running for 15 seconds.
I tried -r 1/15. It is not working too.
Where do i do the mistake ?<?php
$command = "/usr/bin/ffmpeg -f image2 -r 15 -i images/img%03d.jpg -vcodec libx264 video.mp4";
exec($command);
?>images folder has img001.jpg img002.jpg ... img005.jpg
Array
(
[0] => ffmpeg version N-48645-gf3c9d8d Copyright (c) 2000-2013 the FFmpeg developers
[1] => built on Jan 9 2013 04:08:32 with gcc 4.7 (Debian 4.7.2-5)
[2] => configuration: --extra-cflags=-I../static/include --extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3 --enable-static --disable-shared --disable-debug --enable-runtime-cpudetect --disable-x11grab --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver
[3] => libavutil 52. 13.100 / 52. 13.100
[4] => libavcodec 54. 86.100 / 54. 86.100
[5] => libavformat 54. 59.106 / 54. 59.106
[6] => libavdevice 54. 3.102 / 54. 3.102
[7] => libavfilter 3. 32.100 / 3. 32.100
[8] => libswscale 2. 1.103 / 2. 1.103
[9] => libswresample 0. 17.102 / 0. 17.102
[10] => libpostproc 52. 2.100 / 52. 2.100
[11] => Input #0, image2, from 'images/img%03d.jpg':
[12] => Duration: 00:00:45.00, start: 0.000000, bitrate: N/A
[13] => Stream #0:0: Video: mjpeg, yuvj420p, 200x300 [SAR 1:1 DAR 2:3], 0.07 fps, 0.33 tbr, 0.07 tbn, 0.07 tbc
[14] => [libx264 @ 0x3283080] using SAR=1/1
[15] => [libx264 @ 0x3283080] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[16] => [libx264 @ 0x3283080] profile High, level 1.2
[17] => [libx264 @ 0x3283080] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[18] => Output #0, mp4, to 'videos/video.mp4':
[19] => Metadata:
[20] => encoder : Lavf54.59.106
[21] => Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 200x300 [SAR 1:1 DAR 2:3], q=-1--1, 16384 tbn, 0.07 tbc
[22] => Stream mapping:
[23] => Stream #0:0 -> #0:0 (mjpeg -> libx264)
[24] => Press [q] to stop, [?] for help
[25] => Input stream #0:0 frame changed from size:200x300 fmt:yuvj420p to size:200x300 fmt:yuvj444p
[26] => frame= 3 fps=0.0 q=-1.0 Lsize= 43kB time=00:00:15.00 bitrate= 23.2kbits/s
[27] => video:42kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.912722%
[28] => [libx264 @ 0x3283080] frame I:1 Avg QP:18.97 size: 13250
[29] => [libx264 @ 0x3283080] frame P:2 Avg QP:18.68 size: 14368
[30] => [libx264 @ 0x3283080] mb I I16..4: 0.8% 81.4% 17.8%
[31] => [libx264 @ 0x3283080] mb P I16..4: 0.0% 84.8% 15.2% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip: 0.0%
[32] => [libx264 @ 0x3283080] 8x8 transform intra:83.7%
[33] => [libx264 @ 0x3283080] coded y,uvDC,uvAC intra: 96.4% 99.2% 97.6%
[34] => [libx264 @ 0x3283080] i16 v,h,dc,p: 0% 0% 100% 0%
[35] => [libx264 @ 0x3283080] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 18% 13% 5% 8% 11% 8% 10% 7%
[36] => [libx264 @ 0x3283080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 9% 7% 9% 13% 8% 7% 7%
[37] => [libx264 @ 0x3283080] i8c dc,h,v,p: 45% 17% 26% 12%
[38] => [libx264 @ 0x3283080] Weighted P-Frames: Y:0.0% UV:0.0%
[39] => [libx264 @ 0x3283080] kb/s:7.46)