
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (68)
-
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 (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
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 : (...)
Sur d’autres sites (11454)
-
c# how to correctly format an ffmpeg user input stream ?
6 janvier 2021, par user14527374So I'm writing a c# application which allows a user to scale a video in pixels to a custom dimension. I am strugeling to get the user input from a textbox for the mpeg psi arguments :


Here is the code :


var localStoragePath = Path.Combine(Path.GetTempPath(), name);
 var directoryPath = Path.GetDirectoryName(localStoragePath);
 Directory.CreateDirectory(directoryPath);
 File.WriteAllBytes(localStoragePath, bytes);
 Progress.Text = ($"File copy successful: {File.Exists(localStoragePath)}");
 var readBack = File.ReadAllBytes(localStoragePath);
 Progress.Text = ($"Read file Back: {readBack.Length}, {localStoragePath}");
 var resizedFolderPath = @"C:\upscaledvideohere";
 Directory.CreateDirectory(resizedFolderPath);
 var resizedFiePath = Path.Combine(resizedFolderPath, Path.GetFileName(localStoragePath));

 var psi = new ProcessStartInfo();
 psi.FileName = @"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\bin\ffmpeg.exe";
 psi.Arguments = $"-i \"{localStoragePath}\" -vf scale=" + pixelsheight.Text "\"{resizedFiePath}\"";
 psi.RedirectStandardOutput = false;
 psi.RedirectStandardError = false;
 psi.UseShellExecute = true;
 Progress.Text = ($"Args: {psi.Arguments}");



For


psi.Arguments = $"-i \"{localStoragePath}\" -vf scale=" + pixelsheight.Text "\"{resizedFiePath}\""



What would be the correct way to input the text for what the user typedin the pixelsheight text box ?


Thanks very much.


-
Error Exception : You do not have ffmpeg installed on your machine when using python bar_chart_race with reticulate in rstudio
27 septembre 2020, par Zhiqiang WangI have run
python
bar_chart_race
successfully injupyter notebook
.

import bar_chart_race as bcr
bcr.bar_chart_race(df=wide_1, filename=None, title='Mortality (per million) by Country')



I have
ffmpeg
installed on my machine.

> Sys.which("ffmpeg")
 ffmpeg 
"C:\\ffmpeg\\bin\\ffmpeg.exe" 



However, when I tried the same code in
rmarkdown
withrstudio
reticulate
,

import bar_chart_race as bcr
bcr.bar_chart_race(wide_1)



I received the following message :


Exception: You do not have ffmpeg installed on your machine. Download
 ffmpeg from here: https://www.ffmpeg.org/download.html.
 
 Matplotlib's original error message below:

 [WinError 6] The handle is invalid



reticulate::py_config()


> reticulate::py_config()
python: C:/ProgramData/Anaconda3/python.exe
libpython: C:/ProgramData/Anaconda3/python38.dll
pythonhome: C:/ProgramData/Anaconda3
version: 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/ProgramData/Anaconda3/Lib/site-packages/numpy
numpy_version: 1.18.5



ffmpeg
works fine with R animated graph packages inrstudio
, and withpython
bar_chart_race
. I have tried to re-installffmpeg
several times. Any advice would be appreciated.

-
ffmpeg : video to aligned audio (audio too short)
16 octobre 2020, par mcbI want to extract an aligned audio stream from a video. The goal is to obtain an audio sequence that is precisely aligned with the video.


Issue : The video and audio sequences are not aligned. The output audio duration is shorter than the video input.


Script to reproduce :


fn=TV-20200617-2242-4900.websm.h264
url=https://download.media.tagesschau.de/video/2020/0617/$fn.mp4
wget -nc $url

ffmpeg -y -i "$fn.mp4" -vsync 1 -async 1 -map 0:a "$fn.wav" -map 0:v "$fn.flv"

ffprobe -i $fn.mp4 # Duration: 00:01:51.68
ffprobe -i $fn.flv # Duration: 00:01:51.68
ffprobe -i $fn.wav # Duration: 00:01:49.61



What I have tried (without success) :


- 

- Adding
-async 1
as suggested in this answer. - Adding
-acodec copy
and exporting the video at the same time (link). - Opening the
mp4
in Audacity. The duration there is00:01:49.61
. - Opening the
mp4
in VLC. Duration :00:01:51.68
. - Explicitly setting the framerate.
- Other video files.














ffmpeg version 4.2.4-1ubuntu0.1


I would appreciate any hint on how to make this work. Thank you.


- Adding