
Recherche avancée
Autres articles (100)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (5870)
-
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);
}



-
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>
-
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.