
Recherche avancée
Autres articles (97)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
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 (...) -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)
Sur d’autres sites (7604)
-
use ffmpeg in vba to change video format
3 juillet 2020, par Iban ArriolaI want to change the video format of the embedded videos that appears in a presentation. I achieve to export the video file to another folder using the following code :



Dim Finame As Variant
 Dim oApp As Object
 Dim StoreFolder As Variant
 Dim Videoname As Variant
 Dim FileNameFolder As Variant

 MkDir "C:\template\videoZip"

 Set oApp = CreateObject("Shell.Application")
 FileNameFolder = "C:\template\videoZip\"
 Finame = ActivePresentation.Path & "\" & ActivePresentation.Name
 StoreFolder = "C:\template\created_files\"
 oApp.Namespace("C:\template\videoZip\").CopyHere Finame
 Name "C:\template\videoZip\" & ActivePresentation.Name As "C:\template\videoZip\" & ActivePresentation.Name & ".zip"


 oApp.Namespace(FileNameFolder).CopyHere oApp.Namespace("C:\template\videoZip\" & ActivePresentation.Name & ".zip").items

 Dim firstCount As Integer
 Dim lastCount As Integer

 For j = 1 To videoNum
 firstCount = oApp.Namespace(StoreFolder).items.count
 Videoname = "C:\template\videoZip\ppt\media\media" & j & ".mp4"
 oApp.Namespace(StoreFolder).CopyHere Videoname
 lastCount = oApp.Namespace(StoreFolder).items.count
 If firstCount = lastCount Then
 MsgBox "The video has problems loading and it will not be shown (Only mp4 supported)"
 End If
 Next j

 Set objFSO = CreateObject("Scripting.FileSystemObject")
 objFSO.deletefolder "C:\template\videoZip"
 End If




As I said, with this peace of code I can get all the videos that are in the presentation. Now I want to change the format of them. I heard that it is possible using ffmpeg. Other solutions to change format are welcome too.


-
avformat/hlsenc : increase initial program date time precision
18 juillet 2020, par Marton Balintavformat/hlsenc : increase initial program date time precision
Also query time only once, not for every variant stream, otherwise variant
streams might get a slightly different initial program date time. And we can
set this unconditionally because HLS_PROGRAM_DATE_TIME flag is checked
elsewhere.Signed-off-by : Marton Balint <cus@passwd.hu>
-
ffmpeg -var_stream_map Invalid keyval "v:0
22 septembre 2020, par rmrf flythe ffmpeg command is correct,


use ffmpeg command execute at command line is ok,


int windows10 use java exec the command is ok ,


by only in linux when i use java exec the ffmpeg command throw expection


the command :


ffmpeg -i /data/vsftpd/Anchor.mp4 -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k -map 0:v -map 0:a -map 0:v -map 0:a -f hls -var_stream_map "v:0,a:0 v:1,a:1" -hls_segment_filename 'file_%v_%03d.ts' out_%v.m3u8





[hls @ 0xd31b5c0] Invalid keyval "v:0
[hls @ 0xd31b5c0] Variant stream info update failed with status ffffffea
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument



jar


<dependency>
 <groupid>org.apache.commons</groupid>
 <artifactid>commons-exec</artifactid>
 <version>1.3</version>
</dependency>



java code


public static int exeCommand(String command, OutputStream out) throws ExecuteException, IOException {
 CommandLine commandLine = CommandLine.parse(command);
 PumpStreamHandler pumpStreamHandler = null;
 if (null == out) {
 pumpStreamHandler = new PumpStreamHandler();
 } else {
 pumpStreamHandler = new PumpStreamHandler(out);
 }

 // time out 10s
 ExecuteWatchdog watchdog = new ExecuteWatchdog(10000);

 DefaultExecutor executor = new DefaultExecutor();
 executor.setStreamHandler(pumpStreamHandler);
 //executor.setWatchdog(watchdog);

 return executor.execute(commandLine);
}