
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (25)
-
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 (5659)
-
How do i add multiple sound effects (mp3) to a video (mp4) at any given time in the video ? [closed]
25 octobre 2023, par StudentProgrammerI am trying to automate my editing process. I have a video.mp4 with a given length, a folder with different sound-effects.mp3 and a list of timestamps = (t1, t2, t3...). I would like to be able to insert any sound-effect at any given time in the video. Furthermore a sound may last multiple seconds and overlap another sound. I've tried to visualize the concept with images.
enter image description here
enter image description here
Preferably this would be done in Python. However, I would be extremely happy if anyone took their time to help me out using any means of programming required.


I have tried using Moviepy without much success as I am only able to add sound to the start of the video. Perhaps ffmpeg is the way to go.


-
Why does my icecast stream sound broken and underwater-ish ?
3 octobre 2023, par func_kenobiFor the past few weeks I've been trying to make my own audio player, that streams audio to icecast2, I got to the point where I managed to connect to icecast using requests library for python and decode a .mp3 file with FFMpeg and then send it to icecast, but for some reason, it sounds garbled and broken, I don't even know how to describe this... It sounds like you are calling someone from an elevator while there is the strongest geomagnetic storm ever happening outside.


Here's the code of my player, not sure if I did anything wrong here :


import requests
import subprocess

server = "http://127.0.0.7:55061/stream.mp3"
user = "source"
password = "42425"
headers = {
 "User-Agent": "My Streamer",
 "Content-Type": "audio/mpeg",
 "Ice-Public": "1",
 "Ice-Name": "My Stream",
 "Ice-Description": "A cool stream",
 "Ice-Genre": "Music"
}


input_file = "/home/funckenobi/Documents/civil.mp3" 
sample_rate = 44100 
bitrate = 128 
channels = 2 


ffmpeg_command = [
 "ffmpeg",
 "-re", 
 "-i", input_file, 
 "-f", "mp3", 
 "-ar", str(sample_rate), 
 "-b:a", str(bitrate) + "k", 
 "-ac", str(channels), 
 "-"
]
ffmpeg_process = subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE)


session = requests.Session()
session.auth = (user, password)
session.headers.update(headers)


response = session.put(server, data=ffmpeg_process.stdout)

if response.ok:
 print("Stream finished successfully")
else:
 print("Stream failed: ", response.reason)



Some additional info :
I am using Linux Ubuntu.


I tried to stream a file with good audio quality. The audio quality was bad.


-
ffmpeg makes video with no sound on video.js
21 septembre 2023, par Laurent BI have this code that creates m3u8 file to stream a mkv file after transcoding.


ffmpeg.setFfmpegPath(ffmpegPath);
childProcess = ffmpeg()
 .input(inputFilePath)
 // .native()
 .inputOptions(['-y', '-progress', 'pipe:1'])
 .outputOptions(['-b:v 1M', '-hls_time 2', '-hls_list_size 0', '-hls_segment_size 500000'])
 .output('public/output.m3u8')
 .on('end', () => {
 io.emit('conversionComplete', { percent: 100, time: totalDuration, totalDuration, timemark: millisecondsToTimeString(totalDuration) });
 childProcess = null
 })
 .on('error', (error) => {
 io.emit('conversionError', { error });
 childProcess = null
 })
 .on('progress', (progress) => {
 io.emit('conversionProgress', { ...progress, time: timeStringToMilliseconds(progress.timemark), totalDuration });
 });

childProcess.run();



The m3u8 is readable by VLC Player and video.js and can be casted to Chrome Cast. For some others, 4Go files moreless, it works only when the video is transcoded without sound with option .inputOption('-an').


Here's the content of m3u8


#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:4
#EXTINF:10.000000,
output4.ts
#EXTINF:10.000000,
output5.ts
#EXTINF:8.640000,
output6.ts
#EXTINF:10.000000,
output7.ts
#EXTINF:10.000000,
output8.ts



- 

- I tried with all possible audio codecs provided by ffmpeg
- I tried with bigger/smaller parts for ts files
- I tried with other bitrate








Thanks in advance for your ideas