
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (51)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (7870)
-
how to use ffmpeg video compression in android [on hold]
6 février 2017, par Muhammed FayazAs am trying to compress a video in android mobile. I got the techniques about ffmpeg, but am not able to fix this as am first in android developing. So anyone please help me to use ffmpeg in android
-
FFMPEG Webvtt m3u8 download into single vtt file, ignore the "X-TIMESTAMP-MAP=MPEGTS=" (timestamp sync problem)
5 janvier 2021, par Panda XiaI want to download the subtitle of a video, it has separated m3u8 file for subtitle :


webvtt source in m3u8 format : https://sdn-global-streaming-cache.3qsdn.com/9378/files/19/05/1199332/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes.ism/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000.m3u8


looks like :


#EXTM3U
#EXT-X-VERSION:4
## Created with Unified Streaming Platform(version=1.9.5)
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:989
#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z
#EXTINF:24.72, no desc
Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-1.webvtt
#EXTINF:2.56, no desc
Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-13.webvtt
#EXTINF:50.88, no desc
Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-14.webvtt
#EXTINF:3.079, no desc
Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-40.webvtt
#EXTINF:60.401, no desc
....



Then use the command to download the multiple webvtts into one vtt file "EN.vtt" :


ffmpeg -i "https://sdn-global-streaming-cache.3qsdn.com/9378/files/19/05/1199332/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes.ism/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000.m3u8" "DE.vtt"



In output "DE.vtt" the X-TIMESTAMP-MAP=MPEGTS:xxxxxx,LOCAL:00:00:00.000 from each webvtt file (webvtt in m3u8) are ignored.


so that the time Synchronisation is broken, the start time of each Segment always begins from 00:00:00, looks like :


WEBVTT

00:00.000 --> 00:02.560
So viel Macht.

00:00.000 --> 00:03.079
Was er sagte.

00:00.000 --> 00:04.680
oder
die Schönheit

00:00.000 --> 00:01.440
Er sagte immer:

00:00.000 --> 00:03.840
Auf seinen Klang 

00:00.000 --> 00:07.519
Seine Paranoia.



Could ffmpeg support the relative time stamp to convert into absolute time stamp ?
Or use other method to download perfect webvvt file ?


-
IOException when trying to run ffmpeg command on Android
20 avril 2020, par Rashid FaheemI am using this library through gradle with Android Studio 3.6.



implementation 'com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.2.5'




This is path of input and output file.



String VideoIn = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/Ab.mp4";
String VideoOut = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/Ab1.avi";




This is code where I load ffmpeg and try to execute command to convert an mp4 into avi. (Same command i use on windows to do this task). But it say IOException (No such file or directory) although input file is present in Download folder.



private void convert(String VideoIn, String VideoOut) {
 ffmpeg = FFmpeg.getInstance(this);
 try {
 ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
 @Override
 public void onFailure() {
 super.onFailure();
 }

 @Override
 public void onSuccess() {
 super.onSuccess();
 }

 @Override
 public void onStart() {
 super.onStart();
 }

 @Override
 public void onFinish() {
 super.onFinish();
 }
 });
 } catch (FFmpegNotSupportedException e) {
 Log.e(TAG, e.getMessage());
 }

 try {
 ffmpeg.execute("-i " + VideoIn + " " + VideoOut, new ExecuteBinaryResponseHandler() {
 @Override
 public void onSuccess(String message) {
 Log.e(TAG, message);
 }

 @Override
 public void onProgress(String message) {
 Log.e(TAG, message);
 }

 @Override
 public void onFailure(String message) {
 Log.e(TAG, message);
 }

 @Override
 public void onStart() {
 Log.e(TAG, "onStart called");
 }

 @Override
 public void onFinish() {
 Log.e(TAG, "onFinish called");
 }
 });
 } catch (FFmpegCommandAlreadyRunningException ex) {
 Log.e(TAG, ex.getMessage());
 }
}




Here is log data for your to understand. I am not that expert in that so I couldn't figure out what is wrong with my code. Path is correct and file is there. Maybe I am calling this command wrong or what ?



I searched google and stack overflow much but nothing helped me solve it. Any help would be appreciated.



04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: Input File Path: 
/storage/emulated/0/Download/Ab.mp4
04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: Output File Path: 
/storage/emulated/0/Download/Ab1.avi
04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: Device not supported
04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: onStart called
04-20 12:08:26.084 12696-13027/com.example.myapplication E/FFmpeg: Exception while trying to run: 
/data/user/0/com.example.myapplication/files/ffmpeg -i /storage/emulated/0/Download/Ab.mp4 
/storage/emulated/0/Download/Ab1.avi
java.io.IOException: Error running exec(). Command: [/data/user/0/com.example.myapplication/files/ffmpeg, -i, /storage/emulated/0/Download/Ab.mp4, /storage/emulated/0/Download/Ab1.avi] Working Directory: null Environment: null
 at java.lang.ProcessManager.exec(ProcessManager.java:211)
 at java.lang.Runtime.exec(Runtime.java:186)
 at java.lang.Runtime.exec(Runtime.java:259)
 at java.lang.Runtime.exec(Runtime.java:202)
 at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
 at android.os.AsyncTask$2.call(AsyncTask.java:307)
 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
 at java.lang.Thread.run(Thread.java:833)
 Caused by: java.io.IOException: No such file or directory
 at java.lang.ProcessManager.exec(Native Method)
 at java.lang.ProcessManager.exec(ProcessManager.java:209)
 at java.lang.Runtime.exec(Runtime.java:186) 
 at java.lang.Runtime.exec(Runtime.java:259) 
 at java.lang.Runtime.exec(Runtime.java:202) 
 at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) 
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) 
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) 
 at android.os.AsyncTask$2.call(AsyncTask.java:307) 
 at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246) 
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
 at java.lang.Thread.run(Thread.java:833) 
04-20 12:08:26.084 12696-12696/com.example.myapplication E/Video to Mp3: onFinish called