
Advanced search
Medias (21)
-
1,000,000
27 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Demon Seed
26 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
The Four of Us are Dying
26 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Corona Radiata
26 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Lights in the Sky
26 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Head Down
26 September 2011, by
Updated: September 2011
Language: English
Type: Audio
Other articles (109)
-
L’agrémenter visuellement
10 April 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 April 2011, byLa 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. -
Soumettre améliorations et plugins supplémentaires
10 April 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
On other websites (13107)
-
Application memory usage decrese
17 September 2018, by unresolved_externalI have an application which actively uses ffmpeg for video decoding. The interesting thing which I discovered, is that after some time(hour or two) the memory usage is decreasing for about 20-25%. (e.g. from 260Mb to 200 Mb). I am wondering if this due to some specifics of the ffmpeg implementation? Or maybe this kind of memory fluctuations can happen if the memory is used actively.
I am running on x86_64 Ubuntu. The compiler is clang with libc++.
-
How to map frame extracted with ffmpeg and subtitle of a video? (frame accuracy problem)
14 November 2019, by Abitbolwould like to generate text files for frames extracted with ffmpeg, containing subtitle of the frame if any, on a video for which I have burn the subtitles using ffmpeg also.
I use a python script with
pysrt
to open the subrip file and generate the text files.
What I am doing is that each frames is named with the frame number by ffmpeg, then and since they are extracted at a constant rate, I can easily retrieve the time position of the frame using the formulat1 = fnum/fps
, wherefnum
is the number of the frame retrieved with the filename, andfps
is the frequency passed to ffmpeg for the frame extraction.Even though I am using the same subtitle file to retrieve the text positions in the timeline, that the one that has been used in the video, I still get accuracy errors. Most I have some text files missing or some that shouldn’t be present.
Because time is not really continuous when talking about frames, I have tried recalibrating
t
using the fps of the video wih the hardcoded subtitles, let’s call that fpsvfps
for video fps (I have ensured that the video fps is the same before and after subtitle burning). I get the formula:t2 = int(t1*vfps)/vfps
.
It still is not 100% accurate.For example, my video is at 30fps (
vfps=30
) and I extracted frames at 4fps (fps=4
).
The extracted frame 166 (fnum=166
) shows no subtitle. In the subrip file, the previous subtitle ends att_prev=41.330
and the next subtitle begins att_next=41.400
, which means thatt_sub
should satisfy:t_prev < t_sub and t_sub < t_next
, but I can’t make this happen.Formulas I have tried:
t1 = fnum/fps # 41.5 > t_next
t2 = int(fnum*vfps/fps)/vfps # 41.5 > t_next
# is it because of a indexing problem? No:
t3 = (fnum-1)/fps # 41.25 < t_prev
t4 = int((fnum-1)*vfps/fps)/vfps # 41.23333333 < t_prev
t5 = int(fnum*vfps/fps - 1)/vfps # 41.466666 > t_next
t6 = int((fnum-1)*vfps/fps + 1)/vfps # 41.26666 < t_prevCommand used:
# burning subtitles
# (previously)
# ffmpeg -r 25 -i nosub.mp4 -vf subtitles=sub.srt withsub.mp4
# now:
ffmpeg -i nosub.mp4 -vf subtitles=sub.srt withsub.mp4
# frames extraction
ffmpeg -i withsub.mp4 -vf fps=4 extracted/%05.bmp -hide_bannerWhy does this happen and how can I solve this?
One thing I have noticed is that if I extract frames of the original video and the subtitle ones, do a difference of the frames, the result is not only the subtitles, there are variations in the background (that shouldn’t happen). If I do the same experience using the same video two times, the difference is null, which means that the frame extraction is consistant.
Code for the difference:
ffmpeg -i withsub.mp4 -vf fps=4 extracted/%05.bmp -hide_banner
ffmpeg -i no_sub.mp4 -vf fps=4 extracted_no_sub/%05.bmp -hide_banner
for img in no_sub/*.bmp; do
convert extracted/${img##*/} $img -compose minus -composite diff/${img##*/}
doneThanks.
-
Proprietary codecs on Linux. What is legal?
17 October 2016, by George EcoSo, assuming we got a distribution without proprietary codecs installed.
Let’s take Linux Mint for example. I want to store and playback wav and ogg format sounds, either by using my own software, or by using another developer’s software. So far so good right?Imagine now that we have the following scenario. For some reason, I wanna playback a file that is either an mp4 or mp3 or mpeg or any other format, made by proprietary codecs. Instantly, I will need a codec for these formats.
I read somewhere that Fluendo sells solutions for "legal codec usage" for linux distros.
URL of fluendo: http://www.fluendo.com/en/So here comes the questions:
Using VLC and ffmpeg is enough for me to convert a file to an ogg or ogv so I can playback a song or a video using an open format. You can also playback playback files made by proprietary formats. But are VLC and ffmpeg legal to use, to playback such files made by proprietary codecs? For example, ss VLC codecs okay to be used without paying anyone for mp4 playback? Is it okay to convert a file from mp4 to ogv?
If not, are there any legal and open source and free (as in freedom) codecs around that can solve the issue, or does someone have to pay a product, to be ethically correct, to the developers of the proprietaty codecs?Note that I do not ask for Windows, since codec licenses are included to the price of the operating system. I ask exclusively for a free linux distribution.