
Recherche avancée
Autres articles (57)
-
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 -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (6427)
-
slowing down a video with ffmpeg
20 août 2014, par jeetI’m making a video using ffmpeg & multiple images with this command :
ffmpeg -f image2 -i img%d.png v.mpg
The video is made, but plays very fast. Can I slow it down a bit ? (double duration nearly)
If possible set the speed while creation itself please.I also need to add an audio "a.wav" to the video being made, possibly in the same command. Is that possible ?
Please give me the commands
ThanksWhen I use this command, below is the error I get :
ffmpeg -r 12 -i pic\s%d.png -i rmt.wav -shortest -r 25 v.mpg
FFmpeg version SVN-r16573, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-cflags=-fno-common --enable-memalign-hack --enable-pthreads --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libfaac --enable-libgsm --enable-libx264 --enable-libschroedinger --enable-avisynth --enable-swscale --enable-gpl
libavutil 49.12. 0 / 49.12. 0
libavcodec 52.10. 0 / 52.10. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Jan 13 2009 02:57:09, gcc: 4.2.4
Input #0, image2, from 'pic\s%d.png':
Duration: 00:03:53.00, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, rgb24, 1366x768, 12.00 tb(r)
Input #1, wav, from 'rmt.wav':
Duration: 00:12:16.19, bitrate: 64 kb/s
Stream #1.0: Audio: pcm_u8, 8000 Hz, mono, s16, 64 kb/s
Stream #0.0: Video: mpeg1video, yuv420p, 1366x768, q=2-31, 200 kb/s, 25.00 tb(c)
Stream #0.1: Audio: mp2, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
[mp2 @ 0x1738390]Sampling rate 8000 is not allowed in mp2
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height -
What Every Programmer Should Know
24 décembre 2012, par Multimedia Mike — GeneralDuring my recent effort to force myself to understand Unicode and modern text encoding/processing, I was reminded that this is something that “every programmer should just know”, an idea that comes up every so often, usually in relation to a subject in which the speaker is already an expert. One of the most absurd examples I ever witnessed was a blog post along the lines of “What every working programmer ought to know about [some very specific niche of enterprise-level Java programming]“. I remember reading through the article and recognizing that I had almost no knowledge of the material. Disturbing, since I am demonstrably a “working programmer”.
For fun, I queried the googles on the matter of what ever programmer ought to know.
Specific Topics
Here is what every programmer should know about : Unicode, time, memory (simple), memory (extremely in-depth), regular expressions, search engine optimization, floating point, security, basic number theory, race conditions, managed C++, VIM commands, distributed systems, object-oriented design, latency numbers, rate monotonic algorithm, merging branches in Mercurial, classes of algorithms, and human names.Broader Topics
20 subjects every programmer should know, 97 things every programmer should know, 12 things every programmer should know, things every programmer should know (27 items), 10 papers every programmer should read at least twice, 10 things every programmer should know for their first job.Meanwhile, I remain fond of this xkcd comic whose mouseover text describes all that a person genuinely needs to know. Still, the new year is upon us, a time when people often make commitments to bettering themselves, and it couldn’t hurt (much) to at least skim some of the lists and find out what you never knew that you never knew.
What About Multimedia ?
Reading the foregoing (or the titles of the foregoing pieces), I naturally wonder if I should write something about what every programmer should know about multimedia. I think it would look something like a multimedia programming FAQ. These are some items that I can think of :- YUV : The other colorspace (since most programmers are only familiar with RGB and have no idea what to make of the YUV that comes out of most video decoding APIs)
- Why you can’t easily seek randomly to any specific frame in a video file (keyframe/interframe discussion and their implications)
- Understand your platform before endeavoring to implement multimedia software (modern platforms, particularly mobile platforms, probably provide everything you need in the native APIs and there is likely little reason to compile libavcodec for the platform)
- Difference between containers and codecs (longstanding item, but I would argue it’s less relevant these days due to standardization on the MPEG — MP4/H.264/AAC — stack)
- What counts as a multimedia standard in this day and age (comparing the foregoing MPEG stack with the WebM/VP8/Vorbis stack)
- Trade-offs to consider when engineering a multimedia solution
- Optimization doesn’t always work the way you think it does (not everything touted as a massive speed-up in the world of computing — whether it be multithreaded CPUs, GPGPUs, new SIMD instruction sets — will necessarily be applicable to multimedia processing)
- A practical guide to legal issues would not be amiss
- ???
What other items count as “something multimedia-related that every programmer should know” ?
-
ffmpeg error creating thumbnail different frame rate
18 décembre 2012, par KJSWhen using this at the command line I get very bad images with only grey or stripes in them.
It seems "the frame rate differs from container frame rate : 59.94 (60000/1001) -> 29.97 (30000/1001)".Is there any way I can fix this in the ffmpeg statement ?
ffmpeg -ss 00:00:10 -i FILENAME.mp4 -vframes 1 FILENAME.jpg
This is the output I get :
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jun 13 2010 23:44:18, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)Seems stream 0 codec frame rate differs from container frame rate : 59.94 (60000/1001) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'FILENAME.mp4':
Duration: 00:03:36.36, start: 0.000000, bitrate: 1305 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 640x428, 29.97 tbr, 29.97 tbn, 59.94 tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16
Output #0, image2, to 'FILENAME.jpg':
Stream #0.0(eng): Video: mjpeg, yuvj420p, 640x428, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[h264 @ 0x307f6b0]brainfart cropping not supported, this could look slightly wrong ...
[h264 @ 0x307f6b0]AVC: Consumed only 14978 bytes instead of 14984
[h264 @ 0x307f6b0]AVC: Consumed only 1147 bytes instead of 1153
[h264 @ 0x307f6b0]Missing reference picture
[h264 @ 0x307f6b0]AVC: Consumed only 1947 bytes instead of 1953
[h264 @ 0x307f6b0]Missing reference picture
[h264 @ 0x307f6b0]AVC: Consumed only 1870 bytes instead of 1876
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 810 bytes instead of 816
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 955 bytes instead of 961
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 1036 bytes instead of 1042
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 998 bytes instead of 1004
[h264 @ 0x307f6b0]Missing reference picture
frame= 1 fps= 0 q=3.3 Lsize= -0kB time=0.03 bitrate= -5.3kbits/s
video:14kB audio:0kB global headers:0kB muxing overhead -100.149568%