
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (64)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (7002)
-
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"
} -
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



-
Transcode video using celery and ffmpeg in django
28 octobre 2015, par RobinI would like to transcode user uploaded videos using celery. I think first I should upload the video, and spawn a celery task for transcoding.
Maybe something like this in the tasks.py :
subprocess.call('ffmpeg -i path/.../original path/.../output')
Just completed First steps with celery, so confused how to do so in the
views.py
andtasks.py
. Also is it a good solution ? I would really appreciate your help and advice. Thank you.models.py :
class Video(models.Model):
user = models.ForeignKey(User)
title = models.CharField(max_length=100)
original = models.FileField(upload_to=get_upload_file_name)
mp4_480 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
mp4_720 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
privacy = models.CharField(max_length=1,choices=PRIVACY, default='F')
pub_date = models.DateTimeField(auto_now_add=True, auto_now=False)my incomplete views.py :
@login_required
def upload_video(request):
if request.method == 'POST':
form = VideoForm(request.POST, request.FILES)
if form.is_valid():
if form.cleaned_data:
user = request.user
#
#
# No IDEA WHAT TO DO NEXT
#
#
return HttpResponseRedirect('/')
else:
form = VideoForm()
return render(request, 'upload_video.html', {
'form':form
})