
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (74)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (12057)
-
Why do you need analytics for your WordPress ?
7 avril 2020, par Joselyn Khor — Analytics Tips, Plugins -
I am a newbie in FFmpeg and I am trying to use FFMPEG to play RTSP stream on Android, but it will play slower and slower
8 mai 2020, par AjaxI am a newbie in FFmpeg and I am trying to use FFMPEG to play RTSP stream on Android, but it will play slower and slower. The picture of my player and video source will increase with the time difference. The video are not synchronized. I'm pulling on the local area network。
The longer it is played, the more the picture of the video source will be. The more it cannot automatically return to the real-time picture like MediaCode's hardware decoding.The decoded picture is in slow motion, and it will freeze after a while.。What causes this ? How can i optimize it。
this is my code



2020-5-8/Problem has been solved


-
ffmpeg : how to correctly program input framerate calculation, given desired video length duration and output framerate ?
19 septembre 2015, par user89Let us say that I have
n
pictures named asimgXY.png
(whereXY
represent the numbers0
ton-1
, properly padded with zeros).From these, I would like to create a video that is
t
seconds long, that has an (output) framerateR
.I want to figure out what the input framerate should be, so I do the following calculation :
-
time spent per frame :
t_per_frame = t/n
-
input framerate :
1/t_per_frame = n/t
However, when I then try to create a movie using the following command :
ffmpeg -framerate n/t -i img%02d.png -r 30 test_output.mp4
I don’t get a movie that is
t
seconds long, and only two of the frames end up getting displayed. Why is this the case ?The following questions were unhelpful :
How to successfully use ffmpeg to convert images into videos
Turning images into videos with ffmpeg
I think I am misunderstanding what is meant by input framerate, and what is meant by output framerate. Could you help clarify ? I am using a Python script to call ffmpeg, as documented here : http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/
Here’s the output from the following manually executed command :
ffmpeg -framerate 24/5 -i img%02d.png -c:v libx264 -r 30 -pix_fmt yuv420p test_output.mp4
ffmpeg version N-75204-g314bc20 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-opencl --enable-zlib
libavutil 55. 2.100 / 55. 2.100
libavcodec 57. 1.100 / 57. 1.100
libavformat 57. 0.100 / 57. 0.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 1.100 / 6. 1.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, image2, from 'img%02d.png':
Duration: 00:00:00.42, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 800x400, 4.80 tbr, 4.80 tbn, 4.80 tbc
File 'test_output.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0000000004f16ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0000000004f16ba0] profile High, level 3.0
[libx264 @ 0000000004f16ba0] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec
imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b
_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=
25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.
60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test_output.mp4':
Metadata:
encoder : Lavf57.0.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 800x40
0, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.1.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 12 fps=0.0 q=-1.0 Lsize= 3kB time=00:00:00.33 bitrate= 62.2kbits
/s dup=10 drop=0
video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ove
rhead: 60.557274%
[libx264 @ 0000000004f16ba0] frame I:1 Avg QP:10.12 size: 566
[libx264 @ 0000000004f16ba0] frame P:3 Avg QP:18.10 size: 62
[libx264 @ 0000000004f16ba0] frame B:8 Avg QP:13.75 size: 22
[libx264 @ 0000000004f16ba0] consecutive B-frames: 8.3% 0.0% 25.0% 66.7%
[libx264 @ 0000000004f16ba0] mb I I16..4: 99.4% 0.0% 0.6%
[libx264 @ 0000000004f16ba0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0
% 0.0% 0.0% 0.0% skip:99.9%
[libx264 @ 0000000004f16ba0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.1% 0.0
% 0.0% direct: 0.0% skip:99.9% L0:37.5% L1:62.5% BI: 0.0%
[libx264 @ 0000000004f16ba0] 8x8 transform intra:0.0% inter:0.0%
[libx264 @ 0000000004f16ba0] coded y,uvDC,uvAC intra: 0.6% 0.0% 0.0% inter: 0.0%
0.0% 0.0%
[libx264 @ 0000000004f16ba0] i16 v,h,dc,p: 96% 0% 4% 0%
[libx264 @ 0000000004f16ba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 18% 36% 2% 2%
3% 3% 5% 1%
[libx264 @ 0000000004f16ba0] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0000000004f16ba0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000004f16ba0] ref P L0: 50.0% 50.0%
[libx264 @ 0000000004f16ba0] kb/s:18.50 -