
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (44)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8004)
-
Rails Thumbnails for videos being uploaded to S3
20 octobre 2015, par DaniI have a rails application where I need to upload videos to an amazon s3 bucket alongwith their thumbnails. I am using ffmpeg to generate thumbnails and I am using carrierwave to handle video uploads. Here is my video uploader class
class VideoUploader < CarrierWave::Uploader::Base
include CarrierWave::Video
storage :fog
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
def extension_white_list
%w(mp4 flv)
end
endThe video uploads fine and the column for video url is set in videos table but I want to generate thumbnail and upload it as well. I know I have to use ffmpeg here but don’t exactly know how to do it.
Any help will be appreciated.
-
No such file or directory : 'ffmpeg' on MacOS in Python
22 novembre 2023, par Harper BledsoeI am using MacOS (Apple Silicon) and I am trying to use the whisper module from OpenAI in Python. My code is this :


import whisper

file_path = "4547.mp3"
model = whisper.load_model("base")

result = model.transcribe(file_path)
print(result["text"])



When running that code I get the error :


FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg': 'ffmpeg'



I think it is because Python is looking in the wrong folder for ffmpeg and therefore can't find it, but I don't know how to fix that if that is the issue.


I have installed homebrew and used the command 'brew install ffmpeg' and it has successfully installed with no errors. I have tried uninstalling ffmpeg and reinstalling it. I have tried uninstalling open_whisper but to no avail.


-
c# ffmpeg encode/decode audio and video
31 juillet 2017, par IC.FulvioI’m writing C# code to stream audio and video through RTSP. I use ffmpe.Autogen wrapper and NAudio. With the video I have no problem, hevc
25fps
.About audio, I capture audio samples with NAudio and after, I copy the buffer in the AVframe data of ffmpeg. The audio codec that I use is :
AAC f32le 44,1 khz
. When I encode, in the main loop, I write one video frame and after one audio frame.while (video_st != null)
{
img1.CopyTo(imgframe);
var startFrame = DateTime.Now;
ret = Utility_ffmpeg.write_video_frame(outContext, video_st, frameCount, &dst_picture, frame, ref imgframe, sws_ctx);
if (ret < 0)
{
Debug.WriteLine("Write video frame failed.\n");
return;
}
var streamDuration = DateTime.Now - startSend;
//audio
if (enable_audio && srcAudio.audio_buff != null)
{
if (srcAudio.audio_buff_dim > 0)
{
lock (srcAudio.audio_buff)
{
frameCount++;
Utility_ffmpeg.write_audio_frame(outContext, srcAudio.audio_buff, srcAudio.audio_buff_dim, audio_st, frameCount);
}
}
}
Debug.WriteLine("Elapsed time " + streamDuration + ", video stream pts " + video_st->pts.val + ".\n");
var frameDuration = DateTime.Now - startFrame;
Debug.WriteLine(frameDuration+" total \n");
//System.Threading.Thread.Sleep((int)((long)1000.0 / (long)STREAM_FRAME_RATE - (long)frameDuration.TotalSeconds));
System.Threading.Thread.Sleep(40);
//}
}When I decode the video all is ok but the audio comes and goes. The synchronization is ok.
I think the problem is that I need to send more audio frame then video, but I’m not sure. Someone has an idea about the origin of the problem ?
Thanks in advance and sorry for my English.