
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (30)
-
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 (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (5662)
-
Running Background Process using FFMPEG on Google Cloud Run stopping in middle
7 juillet 2021, par pashaplusI have an external bash script that transcodes audio files using FFmpeg and then uploads the files to google cloud storage. I am using the google cloud run platform for this process but the process is stopping in the middle and not getting any clue from the logs. I am using the node js spawn command to execute the bash script


const createHLSVOD = spawn('/bin/bash', [script, file.path, file.destination, contentId, EPPO_MUSIC_HSL_URL, 'Content', speed]);
 createHLSVOD.stdout.on('data', d => console.log(`stdout info: ${d}`));
 createHLSVOD.stderr.on('data', d => console.log(`stderr error: ${d}`));
 createHLSVOD.on('error', d => console.log(`error: ${d}`));
 createHLSVOD.on('close', code => console.log(`child process ended with code ${code}`));



on cloud run beginning the process itself taking a lot of time but in my local machine transcoding and uploading is very fast. after some time transcoding logs are being stopped and no new logs appear. I have no clue what is happening




so what is happening here ? why it is very slow in the first place and why the process is being stopped in middle without any error








-
I want to use Xabe.FFmpeg to convert the video size, but I found that I may be stuck in a deadlock problem
13 mai 2021, par HalfLuckyI now use WPF to develop the function of importing video. I want to add a code to convert the video size, but every time the program runs to this line of code, my program will deadlock here.


public MyRelayCommand<string> ImportMovieCmd => new Lazy>(() =>new MyRelayCommand<string>(ImportMovie)).Value;

private async void ImportMovie(string mediaType)
{
 string[] pathlist = ExecuteSelectFileDialog(mediaType);

 if (pathlist == null || pathlist.Length == 0)
 {
 return;
 }

 foreach (var path in pathlist)
 {
 ...

 await GetMasterMovie(newMedia);

 ...
 }
}
</string></string>


When I proceed to convert the video size, I will be stuck at this step !


private static async Task GetMasterMovie(MovieMediaInfoVM newMedia)
{
 try
 {

 ...

 var conversion = await Xabe.FFmpeg.FFmpeg.Conversions.FromSnippet.ChangeSize(moviepath, output, VideoSize.Nhd);

 conversion.OnProgress += (sender, args) =>
 {
 var percent = (int)(Math.Round(args.Duration.TotalSeconds / args.TotalLength.TotalSeconds, 2) * 100);
 Log.Other.Info2($"[{args.Duration} / {args.TotalLength}] {percent}%");
 };

 await conversion.Start();

 ...

 }
 catch (Exception ex)
 {

 Log.Other.Info2(ex.ToString());
 }
}



When I close the current window, the program starts to convert the video again. I have now changed all methods to asynchronous, but every time the program reaches the line of code below, it will freeze. I have no clue now. I can only ask for help !


-
ffmpeg : Create a fake shadow below alpha channel webm/png sequence
6 mai 2021, par Beneos BattlemapsPurpose : I'd like to render out animated 3D meshes as png sequence to use them as animated tokens for virtual tabletop games. To make the mesh looks more natural I'd like to create a fake show beneath the actual token.


Problem : I have a png sequence
1
(as well as a webm file created with ffmpet out of this png sequence if it makes it easier) with alpha channel. To create the webm I use :
ffmpeg -framerate 24 -f image2 -i Idle_Top.%04d.png -c:v libvpx-vp9 -crf 25 -pix_fmt yuva420p Idle_Top.webm
(If its relevant). I'd like to render out the png sequence to a webm file that have the current images as well as the transparent shadow beneath the token combined.

Possible workflow : I think a good way to achieve the wanted shadow effect is to use the alpha channel image as a mask on a black picture with the same resolution as the source image
2
. Then you have a complete black version of the image. Then you need to place this image beneath the colored image and make a offset of 10px left and 10px down to create the ilusion of perspective3
. At the end the black image below the colored image must have a transparency as well ( 30% visibility should be enough)4
.



Assets : I've put the webm file and the png files on my gDrive https://drive.google.com/drive/folders/1wznGaPwhKc2UyPpSZBSISa1gs3oixsHR?usp=sharing


Though I work with ffmpeg on a regular basis I have no clue where to start. Can you please help me out with this interesting problem ?


Best regards
Ben