
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (35)
-
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 -
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 (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (6889)
-
How do I get videoshow (or any other js package) to merge image and sound files to the length I specify rather than a constant length of 5 seconds ?
5 décembre 2023, par BragonI’m trying to take an image file and a sound file and merge them together into an mp4 file. To this end, I use videoshow.js which is basically a wrapper for fluent-ffmpeg.js. For some reason, videoshow always sets the duration of the output file to 5 seconds regardless of what I set the loop parameter to. And to top it all off, it fades out the sound towards the end of the clip.


I’m happy for any solution to this even if it doesn’t include the use of videoshow or fluent-ffmpeg.


const url = require('url');
const { smartLog } = require('../services/smart-log');
const { getFile, getDuration } = require('../services/file-service');
const videoshow = require('videoshow');
const path = require('path');
const FFmpeg = require('fluent-ffmpeg');
const fs = require('fs');

const imgToMP4 = (caption, sound, image, duration, output) => {
 smartLog('info', `Converting ${image}`);
 const images = [image];

 const videoOptions = {
 fps: 10,
 loop: duration,
 transition: false,
 videoBitrate: 1024,
 videoCodec: 'libx264',
 size: '640x?',
 audioBitrate: '128k',
 audioChannels: 2,
 format: 'mp4',
 pixelFormat: 'yuv420p',
 };

 videoshow([
 {
 path: image,
 },
 ])
 .audio(sound)
 .save(output)
 .on('start', function (command) {
 smartLog('info', `ffmpeg process started: ${image}`);
 })
 .on('error', function (err) {
 smartLog('error', err);
 })
 .on('end', function (output) {
 smartLog('info', `Video created: ${output}`);
 });
};




-
How do I make my discord.py bot play a sound effect ?
15 mai 2024, par Kronik71My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the code :


@interactions.slash_command(
 name="press",
 description="Press the button"
)

async def press(ctx: interactions.ComponentContext):
 await ctx.send(f"{ctx.author.mention} has pressed the button")
 vc = ctx.author.voice.channel
 player = vc.create_ffmpeg_player('audiopath', after=lambda: print('done'))
 player.start()



But whenever I use the /press command, I get this error
AttributeError: 'GuildVoice' object has no attribute 'create_ffmpeg_player'


Is it something I did wrong with ffmpeg ?


I tried using a different way to write the code, basically grabbing the ffmpeg.exe path and the audio path, didn't work either. I just want the bot to play a small noise whenever someone uses /press command.


-
Delay Issue in Screen Recording with Sound Using FFmpeg
17 novembre 2023, par Vasilis B.I'm currently facing a puzzling issue with FFmpeg during screen recording sessions where I've noticed a small but noticeable delay when adding sound. I'm hoping to tap into the community's expertise to understand what might be causing this and how to resolve it.


Here's the command I'm using :


ffmpeg -f dshow -thread_queue_size 1024 -rtbufsize 100M -i "video=screen-capture-recorder:audio=virtual-audio-capturer" -f dshow -c:v h264_nvenc -g 30 -qp 10 -preset llhq -tune ull -pix_fmt yuv420p -vsync vfr -acodec libmp3lame -f rtsp "rtsp://rtsp-server:8554/stream"

This setup is intended to capture both video and audio for streaming purposes. However, I've noticed a small delay (output latency) in the audio when I add the sound component.



q=9.0 size=N/A time=00:00:14.36 bitrate=N/A speed=0.998x




Here are some specifics :


The delay isn't present when recording video only.


It's a consistent issue regardless of the streaming destination.


The hardware and software environment hasn't shown similar issues with other applications.


Could this delay be related to the way FFmpeg handles the audio and video synchronization, or might it be a hardware-related issue ?


Are there specific FFmpeg flags or settings that could help mitigate this delay ?


Has anyone else experienced similar issues and found workable solutions ?


Any insights, suggestions, or shared experiences would be greatly appreciated. Thanks in advance for your help !


P.S. : If additional details about my setup or configuration are needed, I'm happy to provide them.


I've experimented with different -thread_queue_size and -rtbufsize values but haven't seen significant improvements.