
Recherche avancée
Médias (1)
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (97)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (7557)
-
Convert audio to MP3 : 4 frames left in the queue on closing
21 août 2024, par VololodymyrI am trying to convert AMR audio to MP3 :


ByteArrayInputStream amrStream = new ByteArrayInputStream(amrData);
 ByteArrayOutputStream mp3Stream = new ByteArrayOutputStream();

 try (FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(amrStream);
 FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(mp3Stream, grabber.getAudioChannels())) {
 
 grabber.setFormat("amr");
 grabber.start();

 recorder.setFormat("mp3");
 int sampleRate = grabber.getSampleRate();

 recorder.setSampleRate( sampleRate < MIN_SAMPLE_RATE ? MIN_SAMPLE_RATE : sampleRate);
 recorder.setAudioChannels(grabber.getAudioChannels());

 // The AMR low bitrate sounds better then same bitrate on mp3, so we increase it
 int bitrate = grabber.getAudioBitrate();
 recorder.setAudioBitrate(bitrate < MIN_BITRATE ? MIN_BITRATE : bitrate);
 recorder.start();

 Frame frame;
 while ((frame = grabber.grab()) != null) {
 if (frame.samples != null) {
 recorder.record(frame);
 }
 }
 recorder.flush();
 recorder.release();
 grabber.release();
 recorder.stop();
 grabber.stop();
 } catch (Exception e) {
 throw new IOException("Failed to convert AMR to MP3", e);
 }



For some reason, the output mp3 file is always cut for half of a second.


And in logs, I can see :

[libmp3lame @ 000002106e0b26c0] 4 frames left in the queue on closing


Any ideas on how I can flush those 4 frames to my output steam ?
I tried flushing with Thread.sleep(), other order of release/stop calls, nothing works.


-
jwplayer slow buffer video lag
8 juillet 2015, par user281738I’m using Jwplayer for my mobile site... So i need mobile capability html5 player.. i choose jwplayer.
I’m Converting Video with ffmpeg
ffmpeg -i Input.mp4 -vcodec h264 -b 1400k -s 1280X720 -acodec libfaac -ac 2 -ab 128k -movflags faststart -y Output.mp4
I’m Using Centos Apache server and so i installed H264 Streaming Module
My videos are starting fast at first.. but in middle when my internet slows and buffering slows down.. At the same time video lags and sounds continues for few second ... at some point my video and audio sync well. This is happening because of slow buffer problem.. After whole video buffered when i replay..full video is playing well .
I Used Some Android Phones Chrome Browser To Check .
I need playing position to Show load Icon and wait if buffer slows.. not lag videoI cant lower my video bitrate.. because of my competitors.. i want solution for my html5 player.. i have added my jwplayer code.
<code class="echappe-js"><script> jwplayer("myElement").setup({<br />
width: "100%",<br />
skin: "skin.xml",<br />
autostart: true,<br />
<br />
sharing: {},<br />
image: "http://example.com/Mp4/screen.jpg",<br />
<br />
sources: [{<br />
file: "http://example.com/720.mp4",<br />
label: "720p",<br />
"default": "true"<br />
},{<br />
file: "http://example.com/HD/hd.mp4",<br />
label: "HD"<br />
},{<br />
file: "http://example.com/Mp4/480x320.mp4",<br />
label: "480p"<br />
}],<br />
startparam: "starttime",<br />
stretching: "exactfit",<br />
autostart: false,<br />
});<br />
<br />
<br />
<br />
</script> -
FFMPEG silencedetect output does not match Audacity Sound Finder
12 avril 2017, par tngoI’m currently working on labeling sound sections in an audio file.
When I ran my audio file through Audacity Sound Finder with the following settings this is what I get
0.448980 0.498866 1
0.698413 0.927891 2
1.147392 1.426757 3
1.566440 1.815873 4These are the first 4 labels for the audio file where the sounds were found to be louder than -12dB.
However when I ran the same audio file through FFMPEG silencedetect filter with n=-12dB:d=0.1 this is the output
[silencedetect @ 000000000272a8c0] silence_start: -0.00712018
[silencedetect @ 000000000272a8c0] silence_end: 0.371519 | silence_duration: 0.378639
[silencedetect @ 000000000272a8c0] silence_start: 0.457279
[silencedetect @ 000000000272a8c0] silence_end: 0.650159 | silence_duration: 0.19288
[silencedetect @ 000000000272a8c0] silence_start: 0.828798
[silencedetect @ 000000000272a8c0] silence_end: 1.11456 | silence_duration: 0.28576
[silencedetect @ 000000000272a8c0] silence_start: 1.38608
[silencedetect @ 000000000272a8c0] silence_end: 1.8576 | silence_duration: 0.1
[silencedetect @ 000000000272a8c0] silence_start: 2.31488For FFMPEG to detect sound I’m considering silence_end to be sound_start and silence_start to be sound_end. With that logic the output from FFMPEG actually is
0.371519 0.457279 1
0.650159 0.828798 2
1.11456 1.38608 3
1.8576 2.31488 4To me it seems like all the timestamps from FFMPEG are shifted to the left compare to Audacity Sound Finder. Is there something that I’m missing ?
Any help would be much appreciated.
Thanks,