
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#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
Autres articles (50)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
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 -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (4950)
-
How to convert an mp3 file to raw audio format using javascript
4 octobre 2022, par Lord BeeI'm working on a project that involves song matching, so I am integrating with rapidApi's shazam endpoints. But the thing is, the song matching endpoint needs the audio snippet to be a base64 string of the audio in raw audio format. I know the API works. I downloaded a 3rd party application to do the conversion from mp3 to .raw, and converted it to base64 before making the request with it.


Now, I need to integrate this flow programmatically. How do I convert an mp3 or any audio source really to a .raw file ? I've done a lot of searching but I can't find any solution.


-
How to take metadata from .mp3 file and put it to a video as a text using FFmpeg ?
6 décembre 2020, par GrrzlyIn my previously opened topic :


How to make FFmpeg automatically inject mp3 audio tracks in the single cycled muted video



I've got detailed explanation from @llogan how to broadcast looped short muted video on youtube automatically injecting audio tracks in it without interrupting a translation.


I plan to enhance the flow and the next question I faced with is how to dynamically put an additional text to the broadcast.


Prerequisites :


- 

- youtube broadcast is up and running by ffmpeg
- short 3 min video is paying in infinity loop
- audio tracks from playlist are automatically taken by "ffmpeg concat" and injected in the video one by one








this is a basic command to start translation :




ffmpeg -re -fflags +genpts -stream_loop -1 -i video.mp4 -re -f concat
-i input.txt -map 0:v -map 1:a -c:v libx264 -tune stillimage -vf format=yuv420p -c:a copy -g 20 -b:v 2000k -maxrate 2000k -bufsize
8000k -f flv rtmp ://a.rtmp.youtube.com/live2/my-key




Improvements I want to bring


- 

- I plan to store some metadata in audio files (basically it's an artist name and a song name)
- At the moment a particular song starts playing artist/song name should be taken from metadata and displayed on the video as text during the whole song is playing.
- When the current song finishes and a new one starts playing the previous artist/song text should be replaced with the new one etc








My question is how to properly take metadata and add it to the existing broadcast config using ffmpeg ?


-
MediaPlayer miscalculates audio duration. getCurrentPosition() goes back when audio reaches the end
26 mars 2017, par KacyI’m streaming .ogg files from my server. The
MediaPlayer
plays the song to completion, but when it reaches the end of the song,getCurrentPosition()
returns a time less than the actual duration of the song. For 1 song it’s only off by a second, but for another song it’s off by 13 seconds.I have a
SeekBar
that’s updated every second by callinggetCurrentPosition()
, and once the bar reaches the end, it actually jumps back a few seconds. And I can no longer useseekTo()
into the segment of the song that’s past the miscalculated duration because I receive the error :Attempt to seek to past end of file
.Chrome’s html video element simply displays the songs with the incorrect durations.
Other tools like ffmpeg or this app on Windows 10 called PowerMediaPlayer both calculate the songs’ durations perfectly.
I believe this problem is related to this answer, but the solution assumes ffmpeg also miscalculates the duration, which is not the case here. Using the
-vn
flag when converting audio files to ogg didn’t change anything.What are my options ? Is there a way to get the MediaPlayer to calculate the correct duration ?
Update :
Converting to mp3 has no issues (although I used
audioBitrate('96k')
instead ofaudioQuality(2)
, but I require a solution to get ogg files working. Below is how I’m using ffmpeg to perform the conversion. Another thing worth noting is that when I used'vorbis'
instead of'libvorbis'
for the codec the durations were off by less than a second, if at all. However, I must use'libvorbis'
because'vorbis'
is experimental and results in significanlty inconsistent bitrates across different files given the same audio quality parameter. (And it ignoresaudioBitrate()
entirely.)ffmpeg( filepath )
.toFormat( 'ogg' )
.audioCodec( 'libvorbis' )
.audioQuality( 2 )
.output( destination )
.run();