
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
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
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (111)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (9733)
-
avformat_write_header error() error -22 : Could not write header to '' "
11 septembre 2023, par Saurabh SharmaI am trying to extract audio from video byte array file using ffmpeg library and store the output in another byte array.
Here is my implementation :


private byte[] extractAudioFromVideo(byte[] videoBytes) {

 try {
 FFmpegLogCallback.set();
 ByteArrayInputStream videoData = new ByteArrayInputStream(videoBytes);

 ByteArrayOutputStream audioData = new ByteArrayOutputStream();

 FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(videoData);
 grabber.start();
 
 FrameRecorder recorder = new FFmpegFrameRecorder(audioData, grabber.getAudioChannels());
 recorder.setFormat("wav");
 recorder.setAudioCodec(avcodec.AV_CODEC_ID_ADPCM_IMA_WAV);
 recorder.setAudioBitrate(grabber.getAudioBitrate());
 recorder.setAudioChannels(grabber.getAudioChannels());
 recorder.setAudioQuality(0);
 recorder.start();


 // Grab and record audio frames
 Frame audioFrame;
 while ((audioFrame = grabber.grabSamples()) != null) {
 recorder.record(audioFrame);
 }

 
 grabber.stop();
 recorder.stop();
 
 return audioData.toByteArray();
 } catch (FFmpegFrameGrabber.Exception | FrameRecorder.Exception e) {
 e.printStackTrace();
 }



On running the above code, I am running into the error


org.bytedeco.javacv.FrameRecorder$Exception: avformat_write_header error() error -22: Could not write header to ''
 at org.bytedeco.javacv.FFmpegFrameRecorder.startUnsafe(FFmpegFrameRecorder.java:900)
 at org.bytedeco.javacv.FFmpegFrameRecorder.start(FFmpegFrameRecorder.java:406)



On adding FFmpegLogCallback.set() in the above code for detailed logs it says
Error : [wav @ 0x7f9910eb4780] No streams to mux were specified


Info: Input #0, matroska,webm, from 'java.io.ByteArrayInputStream@36d592ba':

Info: Metadata:

Info: encoder : 
Info: Chrome
Info: 

Info: Duration: 
Info: N/A
Info: , start: 
Info: 0.000000
Info: , bitrate: 
Info: N/A
Info: 

Info: Stream #0:0
Info: (eng)
Info: : Audio: opus, 48000 Hz, mono, fltp
Info: (default)
Info: 

Info: Stream #0:1
Info: (eng)
Info: : Video: h264 (Constrained Baseline), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9]
Info: , 
Info: 30.30 fps, 
Info: 30 tbr, 
Info: 1k tbn, 
Info: 60 tbc
Info: (default)
Info: 

Error: [wav @ 0x7f9910eb4780] No streams to mux were specified



Can someone please suggest how to resolve it


Thanks


-
How do I resolve ffmpeg concat command error "unknown keyword..." ?
6 décembre 2023, par ScorbI am trying to concatenate two video files using ffmpeg, and I am receiving an error.


To eliminate compatibility issues between the two videos, I have been concatenating the same video with itself, and the same error persists.


ffmpeg \
 -f concat \
 -safe 0 \
 -i intro_prepped.avi intro_prepped.avi \
 -c copy \
 concat.avi 



And the error output I receive is....




[concat @ 0x220d420] Line 1 : unknown keyword 'RIFFf� ?'
intro_prepped.avi : Invalid data found when processing input




I have tried various combinations of concat flags and have not been able to get it to work. Has anyone seen this error before ?


-
How do i fix the error "ffmpeg was not found." in my discord bot ?
4 janvier 2023, par Anton AbboudI am currently trying to make my discord bot play a youtube audio from a URL. However, I can't pass the error "ffmpeg was not found". I have tried to use different solutions but nothing has worked. My code currently looks like this :


import discord
import asyncio
from discord import FFmpegPCMAudio
from discord.utils import get
from discord.ext import commands
from youtube_dl import YoutubeDL

@bot.command(brief="Plays a single video, from a youtube URL")
async def play(ctx, url):
 if not ctx.message.author.voice:
 await ctx.send("{} is not connected to a voice channel".format(ctx.message.author.name))
 return
 else:
 global channel_player
 channel_player = ctx.message.author.voice.channel
 await channel_player.connect()
 YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist':'True'}
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 voice = get(bot.voice_clients, guild=ctx.guild)

 if not voice.is_playing():
 with YoutubeDL(YDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)
 URL = info['url']
 voice.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))
 voice.is_playing()
 else:
 await ctx.send("Already playing song")
 return



I am relatively new to coding so if you have any other suggestions on top of (hopefully) the solution to the problem, feel free !


I am relatively new to coding so if you have any other suggestions on top of (hopefully) the solution to the problem, feel free !


I have as I said tried a few different other approaches but nothing has worked. The one that seemed to almost work was to download ffmpeg through libx264 and create files that python could be directed to.


I also tried downloadeing the most recent version of ffmpeg and 7zip to extract it.