
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 (31)
-
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...) -
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 -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (4738)
-
how to combine an image stream and an audio stream together with transcoding
11 novembre 2020, par SolskGaerI tried the method mentioned in this link to capture audio stream from an iPhone, and want to combine the audio stream with an image stream(10 fps) which can be acquired via http. But the output I got has messed up audio and the video speed is way faster than the input, here is the command I used to generate the video
ffmpeg -f avfoundation -i ":4" -f mjpeg -i http://127.0.0.1:8888 -c:a aac -c:v libx264 out.mp4
, how do I fix the problem ? By the way, when I transcoding audio/video only, it worked exactually as expected.

-
FFmpeg works out mp3 duration with file input, but fails with pipe ?
16 août 2012, par user1599160I am trying to get PCM data from mp3's using ffmpeg, but the files are stored on a database, gridfs, so I am trying to use pipes to give ffmpeg the data with some sucess, however there is one file which ffmpeg handles correctlt if fed the filename as an input, and incorrectly when given the file as a pipe :( any idea why ?
ffmpeg -i - -f s16le -acodec pcm_s16le output.raw < testMp3s/test-corrupt.mp3
gives
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid -- enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex -- enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect -- disable-debug --disable-static
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mp3 @ 0x16d7100] Unknown attached picture mimetype: JPG, skipping.
[mp3 @ 0x16d7100] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x16d7100] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'pipe:':
Metadata:
album : FreshNewMusik.Com
encoded_by : iTunes 10.6.3
title : No Lie (Freestyle)
artist : Lil Wayne
album_artist : Lil Wayne
genre : Hip-Hop/Rap
TT3 : twitter.com/jakejarvis
date : 2012
Duration: N/A, start: 0.000000, bitrate: 320 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/sYet
ffmpeg -i testMp3s/test-corrupt.mp3 -f s16le -acodec pcm_s16le output.raw
gives
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid -- enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mp3 @ 0xf33100] Unknown attached picture mimetype: JPG, skipping.
[mp3 @ 0xf33100] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0xf33100] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'testMp3s/test-corrupt.mp3':
Metadata:
album : FreshNewMusik.Com
encoded_by : iTunes 10.6.3
title : No Lie (Freestyle)
artist : Lil Wayne
album_artist : Lil Wayne
genre : Hip-Hop/Rap
TT3 : twitter.com/jakejarvis
date : 2012
Duration: 00:02:33.86, start: 0.000000, bitrate: 320 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/sHow do I get the duration with the pipe ? (the data is available on memory in a python app)
-
Extract image from video in Python using ffmpeg and subprocess
13 juin 2021, par MevonMe and a friend are currently working on a twitter bot which uploads images taken from randomly chosen video files.

We are using ffmpeg, withsubprocess.call()
, to get out.jpg from a video file,

which is working fine when the subtitles are hardcoded into the video.

We've also made it burn the subtitles into the out.jpg outside of python, but when trying it inside pyhton withsubprocess.call()
it won't work and it will say :

Output /file/path/to/file.mkv same as Input #0 - exiting
FFmpeg cannot edit existing files in-place.



This is the code for harcoded subtitles.


subprocess.call(
 ['ffmpeg', '-y', '-ss', str(randomTime), '-i', filepath, '-vframes', '1', '-vf', 'scale=1920:1080', '-q:v', '1',
 '-qmin', '1', tmpfilename])



And this the code for non hardcoded subtitles.


subprocess.call(
 ['ffmpeg', '-y', '-ss', str(randomTime), '-copyts', '-i', filepath, '-vf', 'subtitles', filepath, '-vframes', '1', '-vf', 'scale=1920:1080',
 '-vf', '-q:v', '1', '-qmin', '1', '-frames:v', '1', tmpfilename])



Also both me and my friend are not so sure if calling ffmpeg using
subprocess.call()
is the right way to do it in python.

Any kind of help is welcome and please ask me for more code or more details if needed.