
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (9)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 (...)
Sur d’autres sites (1063)
-
Record rtsp stream to a file to be played later
16 avril 2021, par Саня Рыбалкоeveryone.

I have a UWP app, which can stream rtsp streams from online ip cameras by means of FFmpegInterop NuGet package. This is how I use the FFmpegInteropMSS object to set mediaElement's source to the rtsp stream :

FFmpegInteropMSS ffmpeg = await FFmpegInterop.FFmpegInteropMSS.CreateFromUriAsync("rtsp://88.84.52.66/axis-media/media.amp");
 MediaStreamSource streamSource = ffmpeg.GetMediaStreamSource();
 mediaElement.SetMediaStreamSource(streamSource);
 mediaElement.Play();



But I have run into a problem - I need to make it possible to record the stream in a local file to be played later. I have found out this is possible while using ffmpeg console, but I would prefer to use some c# tools(not only FFmpegInterop library) to do it.

Thanks for your help in advance.

-
How to convert mp4 to mp3 in Android Java ?
16 août 2023, par AkshitI have the mp4 link of a video but don't have a link for the mp3 version of that mp4 video. So is there any way that I can convert that mp4 video to mp3 in Android ? I saw some resources but nothing works for me. I have two ways in which I believe this can be achieved


- 

- Convert the mp4 link to mp3 directly. (Not Sure if this is achievable)
- Download the mp4 on the device with the help of a link and then use some code to convert that mp4 to mp3.






I also tried some solutions which are available online


https://github.com/tanersener/mobile-ffmpeg


I tried the above library to achieve the final goal. But got :
Async command execution failed with returnCode=1
.

This error in the code I am using is :


private class Mp4ToMp3ConverterTask extends AsyncTask {
 @Override
 protected String doInBackground(String... params) {
 String mp4FilePath = params[0];
 String mp3OutputPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/output.mp3";

 String[] ffmpegCommand = {"-i", mp4FilePath, "-vn", "-ar", "44100", "-ac", "2", "-b:a", "192k", mp3OutputPath};


 Config.enableStatisticsCallback(new StatisticsCallback() {
 public void apply(Statistics newStatistics) {
 Log.d("Dekh", String.format("frame: %d, time: %d", newStatistics.getVideoFrameNumber(), newStatistics.getTime()));
 }
 });

 long executionIdd = FFmpeg.executeAsync(ffmpegCommand, new ExecuteCallback() {
 @Override
 public void apply(final long executionId, final int returnCode) {
 if (returnCode == RETURN_CODE_SUCCESS) {
 Log.i("Dekh", "Async command execution completed successfully.");
 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.i("Dekh", "Async command execution cancelled by user.");
 } else {
 Log.i("Dekh", String.format("Async command execution failed with returnCode=%d.", returnCode));
 }
 }
 });

 FFmpeg.cancel(executionIdd);

 return mp3OutputPath;
 }
}



Solution number 2 which I used is :




But I got an error here also :
Failed to instantiate extractor
.

And another error is :java.io.FileNotFoundException: open failed: EISDIR (Is a directory)


I tried the online available solution to solve these errors but nothing worked. Such as granting write permission. Providing a valid location to save the output.


But nothing works so far. Please help me on this. Thank you.


-
FFMPEG restream ends in 403 forbidden
2 décembre 2018, par John ChinI’m trying to restream locally a .m3u8 iptv link ( http://link:port/live/username/password/3820.m3u8 ) using Nginx...
I’ve used this command : ffmpeg -i [m3u8 link] -vcodec libx264 -b:v 500k -f flv rtmp ://192.168.1.8:1935/live/play
It seems to work, but after 30/40 seconds, ffmpeg follows a redirect of the iptv-m3u8 and ends in "403 forbidden"...
I’ve found online that I have to add some parameters, but I don’t know which one are this params...
Can you help me ?
Thank you in advance