
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (38)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (5964)
-
Streams mixed when using -filter_complex amerge in FFmpeg
19 juin 2016, par BrainStoneI am currently having issues with ffmpeg and one of its filters.
I am trying to merge 2 audio streams of a video into one. for this purpose I tried this command :
ffmpeg -i /home/maniaplanet/Videos/ManiaPlanet\ 2014-08-21\ 20-09-13-082.avi.output.mkv -filter_complex "[0:1][0:2] amerge=inputs=2"-c:v copy -c:a libvo_aacenc -b:a 256k /var/www/files/output.mp4
But I get this output :
ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, matroska,webm, from '/home/maniaplanet/Videos/ManiaPlanet 2014-08-21 20-09-13-082.avi.output.mkv':
Metadata:
ISRC : Video:RGB24 Audio0:Headset (2- Plantronics .Audio 655 DSP) Audio1:Headset (2- Plantronics .Audio 655 DSP)
ENCODER : Lavf55.37.100
Duration: 01:49:48.47, start: 0.000000, bitrate: 3867 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1280x1024, SAR 1:1 DAR 5:4, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
Stream #0:1: Audio: mp3, 48000 Hz, stereo, s16, 320 kb/s (default)
Stream #0:2: Audio: mp3, 48000 Hz, stereo, s16, 320 kb/s (default)
File '/var/www/files/output.mp4' already exists. Overwrite ? [y/N] y
Input channel layouts overlap: output layout will be determined by the number of distinct input channels
[libvo_aacenc @ 0x7ae800] Unable to set encoding parameters
Output #0, mp4, to '/var/www/files/output.mp4':
Metadata:
ISRC : Video:RGB24 Audio0:Headset (2- Plantronics .Audio 655 DSP) Audio1:Headset (2- Plantronics .Audio 655 DSP)
ENCODER : Lavf55.37.100
Stream #0:0: Audio: aac, 48000 Hz, 4.0, s16, 256 kb/s
Stream #0:1: Video: h264, yuv420p, 1280x1024 [SAR 1:1 DAR 5:4], q=2-31, 30 fps, 90k tbn, 1k tbc (default)
Stream mapping:
Stream #0:1 (mp3) -> amerge:in0
Stream #0:2 (mp3) -> amerge:in1
amerge -> Stream #0:0 (libvo_aacenc)
Stream #0:0 -> #0:1 (copy)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightI think the important part is at the bottom :
Stream mapping:
Stream #0:1 (mp3) -> amerge:in0
Stream #0:2 (mp3) -> amerge:in1
amerge -> Stream #0:0 (libvo_aacenc)
Stream #0:0 -> #0:1 (copy)It maps the video stream as the second stream and the audio gets first. How do i resolve this ?
-map
did not help. (Maybe I just used it wrong) -
How to extract key-frames closest to given frame numbers from H264 video with ffmpeg
16 décembre 2016, par John AllardI know how to extract a set of frames as jpg files from a video using ffmpeg if you know the frame numbers (given below)
Extracting Frames: [40, 59, 73, 110]
/usr/bin/ffmpeg -y -hide_banner -nostats -loglevel error -i /home/pi/movie.mp4 -vf select='eq(n\,40)+eq(n\,59)+eq(n\,73)+eq(n\,110)',scale=640:-1 -vsync 0 /tmp/%04d.jpgThat will extract frames [40, 59, 73, 110] as files /tmp/0000.jpg, /tmp/0001.jpg, etc.
I also know how to extract all key frames for a given time interval :
ffmpeg -ss -i video.mp4 -t <duration> -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 frame%03d.jpg
</duration>That will get all I-frames from
start_time
throughstart_time+duration
.But what I would like to do is give a list of frame numbers and have ffmpeg extract the closest key-frames to each frame-number. Is there a way to do this with ffmpeg or would I have to write my own program ontop of libavcodec to do this ?
-
ffmpeg fails to connect to pulse audio when scheduled through cron
4 février 2017, par BarrettI would like to start ffmpeg to capture audio from pulse through a cron task. I am currently running Linux arch 4.8.13-1-ARCH #1 SMP PREEMPT x86_64 GNU/Linux.
$ ffmpeg
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 6.2.1 (GCC) 20160830
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: CX20583 Analog [CX20583 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0/usr/local/sbin/ffmpeg-audio
#! /bin/sh
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
n=$(date +"%s")
out="/home/user/audio/out"$n".mp3"
cd /
echo -e $USER" "$(id -u)"\n"$out"\n" > $out.txt
/usr/bin/ffmpeg -y -f alsa -i pulse -t 5 -codec:a libmp3lame -q:a 9 "file:"$out$ crontab -l
* * * * * /usr/local/sbin/ffmpeg-audio
$ journalctl -u cronie
Feb 04 11:51:01 arch crond[8913]: pam_unix(crond:session): session opened for user user by (uid=0)
Feb 04 11:51:01 arch CROND[8914]: (user) CMD (/usr/local/sbin/ffmpeg-audio)
Feb 04 11:51:01 arch sudo[8919]: user : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/ffmpeg -y -f alsa -i pulse -t 5 -codec:a libmp3lame -q:a 9 file:/home/user/audio/out1486237861.mp3
Feb 04 11:51:01 arch sudo[8919]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT (ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( built with gcc 6.2.1 (GCC) 20160830)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libavutil 55. 34.100 / 55. 34.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libavcodec 57. 64.101 / 57. 64.101)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libavformat 57. 56.100 / 57. 56.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libavdevice 57. 1.100 / 57. 1.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libavfilter 6. 65.100 / 6. 65.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libavresample 3. 1. 0 / 3. 1. 0)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libswscale 4. 2.100 / 4. 2.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libswresample 2. 3.100 / 2. 3.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ( libpostproc 54. 1.100 / 54. 1.100)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT (ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused)
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ()
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT ([alsa @ 0x55a46e0144a0] cannot open audio device pulse (Connection refused))
Feb 04 11:51:01 arch CROND[8913]: (user) CMDOUT (pulse: Input/output error)
Feb 04 11:51:01 arch sudo[8919]: pam_unix(sudo:session): session closed for user root
Feb 04 11:51:01 arch CROND[8913]: pam_unix(crond:session): session closed for user userffmpeg runs correctly from the command line and ’$ which ffmpeg-audio’ returns /usr/local/sbin/ffmpeg-audio, but ffmpeg returns
([alsa @ 0x55a46e0144a0] cannot open audio device pulse (Connection
refused))when scheduled through cron.
Any suggestions ?