
Recherche avancée
Autres articles (106)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (12407)
-
Adding subtitles with FFMpegCore in C# is not working on Azure Function
1er février 2024, par Skerdi BerberiI have deployed a C# azure function with ffmpeg.exe (using FFMpegCore nuget). The function adds audio and srt/ass subtitles to a video.
When I test locally this code works (running on azurite). But, when I deploy the azure function, the audio is added to the video but the subtitles don't show up.


At the begining I thought it was an issue with the Fonts because I was using ASS File for subtitles but then I switched to SRT and still is not working.


I've tried with both SRT and ASS but they both don't work using this code :


await FFMpegArguments
 .FromFileInput(videoInputPath, true, options =>
 {
 options.WithCustomArgument("-stream_loop -1");
 })
 .AddFileInput(audioPath, true)
 .OutputToFile(videoOutputPath, true, (options) =>
 {
 options.WithDuration(thread.AudioData.TotalAudioDuration);

 options.WithVideoCodec(VideoCodec.LibX264); // Re-encode video using x264 codec
 options.WithAudioCodec(AudioCodec.Aac); // Re-encode audio to AAC
 options.WithSpeedPreset(Speed.VeryFast);
 options.UsingShortest(true);

 options.WithVideoFilters((videoOptions) =>
 {
 videoOptions.HardBurnSubtitle(SubtitleHardBurnOptions.Create(subtitlesFile));
 });
 }).ProcessAsynchronously();



Here's the command it creates on Azure function :


ffmpeg -stream_loop -1 -i "C:\local\Temp\videoTempPath.mp4" -i "C:\local\Temp\audioTempPath.mp3" -t 00:00:22.8160000 -c:v libx264 -c:a aac -preset veryfast -shortest -vf "subtitles='C\:\\local\\Temp\\subtitles.srt'" "C:\local\Temp\output.mp4" -y



-
Transcodeit Add metadata to audio files
22 avril 2016, par GismmoI have found how to encode audio tracks to multiple formats, I am just struggling to try and find a way to attach specific metadata to the tracks when they are encoded. I would like to add, album artwork, artists name, track name, and genre etc.
I can see in the audio encoding parameters there are additional FFmpeg parameters you can set, however i am unsure what to use in order to set the metadata ?
{
"steps": {
"imported": {
"robot": "/s3/import",
"result": true,
"key": "AWS_KEY",
"secret": "AWS_SECRET",
"bucket": "BUCKET",
"path": "CUSTOM-PATH"
},
"mp3": {
"use": "imported",
"robot": "/audio/encode",
"result": true,
"preset": "mp3",
"ffmpeg": [],
"ffmpeg_stack": "v2.2.3"
},
"wav": {
"use": "imported",
"robot": "/audio/encode",
"result": true,
"preset": "wav",
"ffmpeg_stack": "v2.2.3"
},
"export": {
"robot": "/s3/store",
"use": [
"mp3",
"wav"
],
"key": "AWS_KEY",
"secret": "AWS_SECRET",
"bucket": "BUCKET"
} -
org.bytedeco.javacv.CanvasFrame showImage is hanging
24 août 2018, par user3911119An IOS device is uploading h264 files (3 sec videos) to a server. Each file is successfully readable by VLC.
Using FFMpegFrameGrabber, I grab each frame and try to display them using CanvasFrame.showImage as below. However, the method call hangs.
CanvasFrame canvas = new CanvasFrame("ios");
canvas.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
canvas.setAlwaysOnTop(true);
canvas.setResizable(true);
try(FileInputStream fis = new FileInputStream(file))
{
try(FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(fis))
{
grabber.setFormat("h264");
grabber.start();
while(true)
{
Frame frame = grabber.grabImage();
if(frame != null)
{
canvas.showImage(frame);
}
}
}
}Am I doing anything wrong in the above code ?
EDIT#1 : When I try to save the buffered image for the frame, a valid image is saved.
BufferedImage image = converter.getBufferedImage(frame);
File outputfile = new File("png_file");
ImageIO.write(image, "png", outputfile);