
Recherche avancée
Autres articles (18)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (2274)
-
Pydub AudioSegment.from_file() fails for mp3 audio file : Decoding failed. ffmpeg returned error code : 1,
27 mars 2021, par Nisuga JayawardanaCouldn't find any fix. Looks like a bug. How to fix this ?


# Grab the file from the request
 file_uploaded = request.FILES.get('sourceFile')
 file_path = uploads_base_path + file_uploaded.name
 
 # saving the uploaded file
 open(file_path, 'wb')

 extension = file_uploaded.name.split('.')[-1]
 with open(file_path, "rb") as wav_file:
 audio_segment = AudioSegment.from_file(wav_file, format=extension) <-------------Error

 # create .wav filename for the file
 wavFileName = uploads_base_path + 'out.wav'
 print(wavFileName)

 # convert audio file to .wav type
 audio_segment.export(wavFileName,"wav")



// Pydub Error

Decoding failed. ffmpeg returned error code : 1

Output from ffmpeg/avlib :

ffmpeg version N-101739-gcad3a5d715 Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 9.3-win32 (GCC) 20200320

// FFMPEG Error

[cache @ 000001c52157fdc0] Inner protocol failed to seekback end : -40

Last message repeated 1 times

[mp3 @ 000001c52157f400] Failed to read frame size : Could not seek to 1026.

[cache @ 000001c52157fdc0] Statistics, cache hits:0 cache misses:0

cache:pipe:0 : Invalid argument

-
ffmpeg error=13 permission denied android 10 [closed]
30 mars 2021, par MrParaskumar2021-03-26 12:10:36.988 12431-12727/? E/e: Exception while trying to run: [Ljava.lang.String;@c68db54
 java.io.IOException: Cannot run program "/data/user/0/package name/files/ffmpeg": error=13, Permission denied
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
 at java.lang.Runtime.exec(Runtime.java:698)
 at java.lang.Runtime.exec(Runtime.java:563)
 at c.d.a.a.n.a(:10)
 at c.d.a.a.f.b(:38)
 at c.d.a.a.f.doInBackground(:10)
 at android.os.AsyncTask$3.call(AsyncTask.java:378)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at java.lang.Thread.run(Thread.java:919)
 Caused by: java.io.IOException: error=13, Permission denied



-
How to record audio and video on macos with ffmpeg ?
5 janvier 2024, par chovy$ ffmpeg -f avfoundation -list_devices true -i ""
...
[AVFoundation indev @ 0x7fa8c24312c0] AVFoundation video devices:
[AVFoundation indev @ 0x7fa8c24312c0] [0] FaceTime HD Camera
[AVFoundation indev @ 0x7fa8c24312c0] [1] Capture screen 0
[AVFoundation indev @ 0x7fa8c24312c0] AVFoundation audio devices:
[AVFoundation indev @ 0x7fa8c24312c0] [0] MacBook Pro Microphone



These are my audio and video devices.
I'm trying to record audio from mic and video capture of screen.
However when I try to run the command I get this error :


$ ffmpeg -f avfoundation -i "1:0" \ 
 ~/Videos/screencast.mp4
ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
 built with Apple clang version 12.0.0 (clang-1200.0.32.29)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
[AVFoundation indev @ 0x7fced1c315c0] Configuration of video device failed, falling back to default.
[avfoundation @ 0x7fced2009000] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7fced2009000] Supported pixel formats:
[avfoundation @ 0x7fced2009000] uyvy422
[avfoundation @ 0x7fced2009000] yuyv422
[avfoundation @ 0x7fced2009000] nv12
[avfoundation @ 0x7fced2009000] 0rgb
[avfoundation @ 0x7fced2009000] bgr0
[avfoundation @ 0x7fced2009000] Overriding selected pixel format to use uyvy422 instead.



Additionally I'd like to capture camera in lower right. This is how I do it on Linux, but the basics don't even work on MacOS.


screencap() {
 file=`date +%Y-%m-%d-%H.%M.%S`
 ffmpeg -f alsa -i pulse -f x11grab -thread_queue_size 64 -i :0.0 \
 -video_size 384x216 -i /dev/video0 \
 -filter_complex 'overlay=main_w-overlay_w:main_h-overlay_h' \
 -r 60 -preset ultrafast ~/Videos/screencast-${file}.mp4
}