
Recherche avancée
Autres articles (62)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (7821)
-
How to record audio with ffmpeg on linux ?
7 décembre 2014, par Conor PatrickI’d like to record audio from my microphone. My OS is ubuntu. I’ve tried the following and got errors
$ ffmpeg -f alsa -ac 2 -i hw:1,0 -itsoffset 00:00:00.5 -f video4linux2 -s 320x240 -r 25 /dev/video0 out.mpg
ffmpeg version 0.8.8-4:0.8.8-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav
developers
built on Oct 22 2013 12:31:55 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release.
Please use avconv instead.
ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library
libasound_module_conf_pulse.so
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM hw:1,0
[alsa @ 0xbda7a0] cannot open audio device hw:1,0 (No such file or directory)
hw:1,0: Input/output errorThen I tried
$ ffmpeg -f oss -i /dev/dsp audio.mp3
ffmpeg version 0.8.8-4:0.8.8-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav
developers
built on Oct 22 2013 12:31:55 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release.
Please use avconv instead.
[oss @ 0x1ba57a0] /dev/dsp: No such file or directory
/dev/dsp: Input/output errorI haven’t been able to get ffmpeg to find my microphone. How can I tell ffmpeg to record from my microphone ?
It seems the ’Deprecated’ message can be ignored because of this topic -
Unrecognized option 'preset' with ubuntu 12.04 and ffmpeg
5 novembre 2013, par hyperrjasI have compiled ffmpeg with the guide How To Compile FFmpeg and x264 on Ubuntu.
Now I'm trying upload a .mp4 file to encode. However I get this error now :
ffmpeg version git-2013-11-05-934e489 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 5 2013 13:58:43 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-nonfree --enable-version3
libavutil 52. 51.100 / 52. 51.100
libavcodec 55. 41.100 / 55. 41.100
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.101 / 3. 90.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Unrecognized option 'preset'.
Error splitting the argument list: Option not found
Errors: no output file created.This is the ruby methods to encode :
case format
when 'mp4'
h[:video_codec] = 'libx264'
h[:audio_codec] = 'libfaac'
h[:custom] = '-qscale 0 -preset slow -g 30'
when 'ogv'
h[:video_codec] = 'libtheora'
h[:audio_codec] = 'libvorbis'
h[:custom] = '-b 1500k -ab 160000 -g 30'
when 'webm'
h[:video_codec] = 'libvpx'
h[:audio_codec] = 'libvorbis'
h[:custom] = '-b 1500k -ab 160000 -f webm -g 30'
end -
Can't preserve metadata in ffmpeg video conversion
30 avril 2017, par sakoviasI would like to preserve the creation time metadata when I convert videos using ffmpeg/avconv. Here is the file I’m trying to convert :
$ ffmpeg -i in.avi
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:00:59 with gcc 4.6.3
Input #0, avi, from 'in.avi':
Metadata:
creation_time : 2013-08-12 06:59:14
encoder : CanonMVI06
Duration: 00:00:12.26, start: 0.000000, bitrate: 14549 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: pcm_u8, 11024 Hz, 1 channels, u8, 88 kb/sIn the first approach I run
$ ffmpeg -i in.avi -vcodec libx264 -acodec libmp3lame -r 30 -map_metadata 0 out.avi
and get an output file which doesn’t have the ’creation_date’ metadata that I’d like to keep :
$ ffmpeg -i out.avi
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:00:59 with gcc 4.6.3
[avi @ 0x83ba260] max_analyze_duration reached
Input #0, avi, from 'out.avi':
Metadata:
encoder : Lavf53.21.1
Duration: 00:00:12.38, start: 0.000000, bitrate: 704 kb/s
Stream #0.0: Video: h264 (Main), yuv420p, 640x480, 30 fps, 30 tbr, 30 tbn, 60 tbc
Stream #0.1: Audio: mp3, 11025 Hz, mono, s16, 200 kb/sI also tried another approach
$ ffmpeg -i in.avi -f ffmetadata metadata.txt
$ ffmpeg -i in.avi -f ffmetadata -i metadata.txt -vcodec libx264 -acodec libmp3lame -r 30 out.aviwith the same success even though metadata.txt has the right info :
;FFMETADATA1
creation_time=2013-08-12 06:59:14
encoder=CanonMVI06What am I doing wrong ?