
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (106)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (13678)
-
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
}



-
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

-
Extracted .wav file from .mp4 video with ffmpeg only has half of the duration
16 mars 2021, par TheSprinterI've been using ffmpeg to extract .wav files from .mp4 videos to then generate waveforms and spectrograms for it, but I stumbled upon a file for which ffmpeg does not generate the full audio file. The video duration is 25:25 (25 minutes and 25 seconds), but the .wav file is 12:28 (12 minutes and 28 seconds).


This is what I've been doing :


C:\Users\<user>> ffmpeg -i video.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav
</user>


I tried with
-ac 2
only to see if I get something different, but the result is the same. In fact, I can't generate the plots I need with a stereo audio file.

This is what I get in the terminal when I run the command :


C:\Users\<user>>ffmpeg -i video.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200621
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 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
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'audio.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42mp41
 creation_time : 2021-03-09T05:00:00.000000Z
 Duration: 00:25:25.29, start: 0.000000, bitrate: 2308 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4410 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
 Metadata:
 creation_time : 2021-03-09T05:00:00.000000Z
 handler_name : ?Mainconcept Video Media Handler
 encoder : AVC Coding
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 253 kb/s (default)
 Metadata:
 creation_time : 2021-03-09T05:00:00.000000Z
 handler_name : #Mainconcept MP4 Sound Media Handler
Stream mapping:
 Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'audio.wav':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42mp41
 ISFT : Lavf58.45.100
 Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s (default)
 Metadata:
 creation_time : 2021-03-09T05:00:00.000000Z
 handler_name : #Mainconcept MP4 Sound Media Handler
 encoder : Lavc58.91.100 pcm_s16le
size= 64463kB time=00:12:28.41 bitrate= 705.6kbits/s speed= 156x
video:0kB audio:64463kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000118%
</user>


If this information on the video is not enough to troubleshoot, the video says the following (when it starts, for the first few seconds) :



EP TRT (23.976): 01:24:53:18
EP TRT (29.976): 01:24:55:06

AUDIO LAYOUT

Channel 1: Left Front (L)
Channel 2: Right Front (R)
Channel 3: Center (C)
Channel 4: Low Frequency/Effects (LFE)
Channel 5: Left Surround (Ls)
Channel 6: Right Surround (Rs)
Channel 7: Mono Mix (L)
Channel 8: Mono Mix (R)



This is for TV, that's why you see that longer duration. I don't know if all this is relevant, actually.


Some additional info


Something curious is that I'm doing this for manual tests, but I'm actually creating an app with python and, for that, I'm using
python-ffmpeg
module, and I with that I'm getting the correct .wav file (with the correct duration). The python lines for this are the following :

(
 ffmpeg
 .input(
 
 )
 .output(
 ,
 audio_bitrate=316000,
 ac=1,
 ar=48000
 )
 .run()
)