
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (61)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (10346)
-
Deploying on google App Engine : An error occurred : ffmpeg was killed with signal SIGABRT Error : ffmpeg was killed with signal SIGABRT
27 août 2020, par Jérémy GachonI wrote a node-js api, with node-js and fluent-ffmpeg :


'use strict';
require('babel-register');
const path = require('path'); 
const ffmpeg = require('fluent-ffmpeg');



[...]


var infs = new ffmpeg

infs.addInput(doc.data().url).outputOptions([
 '-preset slow', '-g 48', '-sc_threshold 0',
 '-map 0:0', '-map 0:1', '-map 0:0', '-map 0:1',
 '-s:v:0 1280x720', '-c:v:0 libx264', '-b:v:0 2000k',
 // "-var_stream_map", "'v:0,a:0 v:1,a:1'",
 '-master_pl_name ./' + req.params.id + '/master' + req.params.id + '.m3u8',
 '-f hls', '-hls_time 6', '-hls_list_size 0',
 '-hls_segment_filename ./' + req.params.id + '/fileSequence|' + req.params.id + '|%d|v%v.ts',
 '-max_muxing_queue_size 1024',
 ]).output('./' + req.params.id + '/video' + req.params.id + '.m3u8')
 .on('start', function (commandLine) {
 console.log('Spawned Ffmpeg with command: ' + commandLine);
 })
 .on('error', function (err, stdout, stderr) {
 console.log('An error occurred: ' + err.message, err, stderr);
 })
 .on('progress', function (progress) {
 console.log('Processing: ' + progress.percent + '% done')
 })
 .on('end', function (err, stdout, stderr) {

 console.log('Finished processing!' /*, err, stdout, stderr*/)
 })
 .run()
 res.status(200).send('GG').end();
 } 
 });



[...]


That work with




node app.js




on my macbook pro, but when i do




gcloud app deploy




and I call the public url, I have this logs :


Processing: undefined% done
An error occurred: ffmpeg was killed with signal SIGABRT Error: ffmpeg was killed with signal SIGABRT 



Here is my app.yaml :


# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# [START gae_flex_quickstart_yaml]
runtime: nodejs
env: flex

# This sample incurs costs to run on the App Engine flexible environment.
# The settings below are to reduce costs during testing and are not appropriate
# for production use. For more information, see:
# https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
manual_scaling:
 instances: 1
resources:
 cpu: 1
 memory_gb: 6
 disk_size_gb: 30

# [END gae_flex_quickstart_yaml]





How can I do to deploy correctly my node-js api on google app engine ?


Thank's in advance.


Jérémy.


-
bad audio mic recording quality with ffmpeg compared to sox
1er juillet 2021, par user2355330I am contacting you as after 3 days of searching I am stuck on a really simple point.


I want to record the sound of my mic on MacOS using ffmpeg.


I managed to do it using the following command :


ffmpeg -f avfoundation -audio_device_index 2 -i "none:-" -c:a pcm_s32l alexspeaking.wav -y -loglevel debug



The issue is that each time I am speaking, there are cracks and pop in the sound...


I tried to use sox and it gave me a perfect and crystal clear sound and I have no idea why... Below is the output of the sox command :


sox -t coreaudio "G935 Gaming Headset" toto.wav -V6
sox: SoX v
time: Nov 15 2020 01:06:02
uname: Darwin MacBook-Pro.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
compiler: gcc Apple LLVM 12.0.0 (clang-1200.0.32.27)
arch: 1288 48 88 L
sox INFO coreaudio: Found Audio Device "DELL U2721DE"
sox INFO coreaudio: Found Audio Device "G935 Gaming "
sox DBUG coreaudio: audio device did not accept 2 channels. Use 1 channels instead.
sox DBUG coreaudio: audio device did not accept 44100 sample rate. Use 48000 instead.
Input File : 'G935 Gaming Headset' (coreaudio)
Channels : 1
Sample Rate : 48000
Precision : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
sox INFO sox: Overwriting `toto.wav'
sox DBUG wav: Writing Wave file: Microsoft PCM format, 1 channel, 48000 samp/sec
sox DBUG wav: 192000 byte/sec, 4 block align, 32 bits/samp
Output File : 'toto.wav'
Channels : 1
Sample Rate : 48000
Precision : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Comment : 'Processed by SoX'
sox DBUG effects: sox_add_effect: extending effects table, new size = 8
sox INFO sox: effects chain: input 48000Hz 1 channels (multi) 32 bits unknown length
sox INFO sox: effects chain: output 48000Hz 1 channels (multi) 32 bits unknown length
sox DBUG sox: start-up time = 0.051332
In:0.00% 00:00:07.13 [00:00:00.00] Out:340k [ | ] Clip:0 ^C
sox DBUG input: output buffer still held 2048 samples; dropped.
Aborted.
sox DBUG wav: Finished writing Wave file, 1359872 data bytes 339968 samples



I am pretty sure the issue is linked to the way the encoding is done and the params I used with ffmpeg but I don't seem to be able to grasp which one I must use.


Any ideas if there are ffmpeg experts here ?


-
How to get a list of video devices with a particular VendorID and/or ProductID using FFmpeg (on Mac OS)
26 mai 2020, par mcgregor94086The master task :



I am writing software for a multiple USB camera array. The camera may be connected to a CPU that has other USB cameras builtin or attached. I need to capture one 1920x1080 JPG image from EACH of MY array's cameras into a directory of images - but I need to EXCLUDE any OTHER cameras when taking pictures.



Right now I am trying to implement for MacOS, but in the future I will be implementing for Windows, Linux, iOS and Android.



What is known :



I know the VendorID, ProductID and UniqueID (reported by the MacOS USB system System Hardware Report) for each of the cameras in the camera array.



UNIQUESKY_CAR_CAMERA #5:

 Model ID: UVC Camera VendorID_7119 ProductID_2825
 Unique ID: 0x143400001bcf0b09

UNIQUESKY_CAR_CAMERA #6:

 Model ID: UVC Camera VendorID_7119 ProductID_2825
 Unique ID: 0x143300001bcf0b09




The problem code :



I made the following call to FFmpeg



ffmpeg -nostdin -hide_banner -an -sn -dn -f avfoundation -list_devices true -I 1




I received the following result in stderr :



[AVFoundation indev @ 0x7fc870e21800] AVFoundation video devices:
 [AVFoundation indev @ 0x7fc870e21800] [0] FaceTime HD Camera (Built-in)
 [AVFoundation indev @ 0x7fc870e21800] [1] UNIQUESKY_CAR_CAMERA #5
 [AVFoundation indev @ 0x7fc870e21800] [2] UNIQUESKY_CAR_CAMERA #6
 [AVFoundation indev @ 0x7fc870e21800] [3] Capture screen 0
 [AVFoundation indev @ 0x7fc870e21800] [4] Capture screen 1
 [AVFoundation indev @ 0x7fc870e21800] AVFoundation audio devices:
 [AVFoundation indev @ 0x7fc870e21800] [0] MacBook Pro Microphone
 1: Input/output error




Of these devices listed in the output, I happen to know (in this particular TEST CASE) that the cameras in my test array, are only these two :



[1] UNIQUESKY_CAR_CAMERA #5
[2] UNIQUESKY_CAR_CAMERA #6




With this knowledge, I can select the indices (1 2) that I need, and then use the following code to capture an image from each :



for i in 1 2; 
do
 ffmpeg -y -hide_banner -f avfoundation -r 15 -video_size 1920x1080 -i 1 -f image2 -qscale:v 1 -qmin 1 -qmax 1 -frames:v 1 img$i.jpg;
done





Unfortunately, in production use (i.e. outside of this test case), I CAN NOT rely on cameras all identifying themselves with the same TEXT "name" prefix (e.g. "UNIQUESKY_CAR_CAMERA"), so I can't just use grep to select the ones I want.



But I CAN be sure that I will know their VendorID, ProductID and UniqueIDs.



So, IF I could get



ffmpeg -nostdin -hide_banner -an -sn -dn -f avfoundation -list_devices true -I 1




to also list the VendorID and ProductID, then I could grep for those values.



Is this solution possible ? I can't find syntax in the documentation or examples for how to set such limits.



ALTERNATIVELY : if I could specify to FFmpeg -list_devices to limit the output list to just those with my specified VendorID and ProductIDs then I could easily get the list of device indices I will need for the succeeding image extraction.



Is this solution possible ? I can't find syntax in the documentation or examples for how to set such limits.



Special Note :

The cameras I am using are all 1920x1080, and that resolution is necessary for my application. As has been noted by many Mac users on the web, other image capture programs (such as imagesnap) sometimes capture images at lower resolution (1024x720) than the cameras are capable of, and will not capture images at higher resolutions such as (1920x1080). For this reason, and because it is available on ALL the OS platforms of interest to us, I chose to use FFmpeg.