
Recherche avancée
Autres articles (111)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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 -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (5427)
-
ffmpeg : input rate and output rate not respected
2 novembre 2022, par GregoryI am using
ffmpeg
to overlay PNG and gifs while trying to preserve the same framerate and delay of the GIFs. The gif files all have the same number of frames (5) and a 13ms delay between each frame.

Attempt #1 :


ffmpeg 
 -r 5 -i ./Salmonbg.png 
 -r 5 -i ./Pinkfur.gif 
 -r 5 -i ./Cap.gif 
 -r 5 -i ./Glasses.gif 
 -r 5 -i Bone.gif 
 -filter_complex "[0:v][1:v]overlay=format=auto[v1];[v1][2:v]overlay=format=auto[v2];[v2][3:v]overlay=format=auto[v3];[v3][4:v]overlay=format=auto[v4];[v4]split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" 
 -r 1000/130 preview.gif



The command above will generate with the correct frame alignment from the png + gifs, however output frame delay incorrect :


Frame #1: 260 <- WRONG (Why???)
Frame #2: 130
Frame #3: 260 <- WRONG (Why???)
Frame #4: 130
Frame #5: 130



Attempt #2 :


ffmpeg 
 -i ./Salmonbg.png 
 -i ./Pinkfur.gif 
 -i ./Cap.gif 
 -i ./Glasses.gif 
 -i Bone.gif 
 -filter_complex "[0:v][1:v]overlay=format=auto[v1];[v1][2:v]overlay=format=auto[v2];[v2][3:v]overlay=format=auto[v3];[v3][4:v]overlay=format=auto[v4];[v4]split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" 
 -r 1000/130 preview.gif



The command above will output the correct frame delay, 13ms for all of them. However, the output gif will not use the first frame of each GIF. The second frame is used twice basically.


Any idea what I am missing ? I feel like i'm 90% there but i can't figure out what i'm doing incorrectly.


-
ffprobe reading wrong frame rate, any workarounds besides MediaInfo ?
20 mai 2023, par MintyI want to check the frame rate of many videos. I decided to employ ffprobe :


ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate faulty.mkv
=

500/21



That can't be right, what kind of fps is 500/21 ?


ffprobe faulty.mkv
(version 4.3.5-0+deb11u1+rpt3)

Stream #0:0: Video: (...), 23.81 fps, 23.81 tbr, 1k tbn, 23.98 tbc (default)



At least ffprobe 4 read the correct codec timescale i.e.
23.98 tbc (default)
, but in later versionstbc
has been deprecated :

Stream #0:0: Video: (...), 23.81 fps, 23.81 tbr, 1k tbn (default)



However, MediaInfo gets it right :


mediainfo faulty.mkv
=

(...)
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
(...)



I tried using
-count_packets
to then dividenb_read_packets
of the stream by theduration
of the file, I'm getting 1 second per hour error. This is much better compared to 23,8095, but packets are not frames, and only the prohibitively, unusably slow-count_frames
gets me the exact value.

The rest of my workflow uses ffprobe, so I'm reluctant to switch to MediaInfo completely. I get that the file is, well, faulty, but if
mediainfo
can do it, is there a way to make sure the correct frame rate is read withffprobe
without decoding the entire file as-count_frames
seems to do ?

-
Cannot open RTMP stream with FFMPEG Java Cannot assign requested address
12 novembre 2023, par lastpeony4I am trying to open an RTMP stream with
avformat_open_input
and for some reason i keep gettingCannot assign requested address
error.

My RTMP URL is correct because i can watch the stream using VLC Player and ffmpeg command line :

ffmpeg -i rtmp://1.1.1.1/app/teststream -vcodec copy -acodec copy output.mp4


int timeout = 2500;
setConnectionTimeout(timeout);

AVDictionary optionsDictionary = new AVDictionary();

String timeoutStr = String.valueOf(this.timeoutMicroSeconds);
av_dict_set(optionsDictionary, "timeout", timeoutStr, 0);

int analyzeDurationUs = 1500 * 1000;
String analyzeDuration = String.valueOf(analyzeDurationUs);
av_dict_set(optionsDictionary, "analyzeduration", analyzeDuration, 0);

int ret;

if ((ret = avformat_open_input(inputFormatContext, streamUrl, null, optionsDictionary)) < 0) {
 // ERROR Cannot assign requested address
}



I am using
org.bytedeco:ffmpeg:5.1.2-1.5.8 (ffmpeg-5.1.2-1.5.8.jar)


Why i can't open it ?