
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (74)
-
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 -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (7012)
-
Using Mencoder to Convert Sequence of Images Sorted Numerically to Video
7 décembre 2017, par txizzleI want to use
mencoder
to convert a sequence of PNG files to video. The PNG files are named likefile1.png, file2.png, ... file1000.png
. However, if I run this :mencoder mf://*.png -mf fps=25 -ovc copy -oac copy output.avi
The resulting video will not stitch together the frames in the correct order (correct : 1,2,3,.... incorrect : 1, 10, 100, ...). Answers to a similar question suggest that I can manually input the range of frames to have mencoder use the correct numerical order :
mencoder mf://file{1..1000}.png -mf fps=25 -ovc copy -oac copy output.avi
or to manually sort the files with something like
ls -v
and then save the results to a list (say,list.txt
), and then pass that intomencoder
:mencoder mf://@list.txt -mf fps=25 -ovc copy -oac copy output.avi
However, my question is : Is there a way to do this in a single command without specifying the last frame ?
Ideally, I would want an equivalent to
mf://file*.png
that uses a numerical sorting as opposed to the default sorting. For example,ffmpeg
has the option to specify input files likefile%d.png
, which would order the files numerically.Thanks !
-
How to install ffmpeg for a django app on heroku ?
10 janvier 2018, par yndolokI’d like to use ffmpeg to extract a frame from a video to use it as a poster. This is my first time deploying an app, let alone on heroku, so I’m not sure how to install ffmpeg on the server.
I’ve found this build of ffmpeg with instructions to ’vendor’ it into my app, and then adjust my app’s configuration settings / path. What does it mean to vendor something ? I have a feeling it’s a rails thing, because I can’t seem to find an explanation by googling.
Also, what would be the django equivalent of the instructions to run
heroku config:set PATH=bin:vendor/ffmpeg/bin:<...> -a yourapp
andheroku config:set LD_LIBRARY_PATH=vendor/ffmpeg/lib:/usr/local/lib -a yourapp
? -
How to compute the number of extra samples added by LAME or FFMPEG
24 janvier 2018, par actuallyaswinI am attempting to build a MP3 decoder / parser in Python which supports files encoded by LAME or FFMPEG.
My encoding shell script is shown here :
#!/bin/bash
for i in wav/*.wav; do
i=${i##*/};
lame --nores --strictly-enforce-ISO -t --cbr -b 64 -h "wav/${i}" "mpeg/lame/${i%.wav}.mp3";
ffmpeg -i "wav/${i}" -codec:a libmp3lame -qscale:a 2 "mpeg/ffmpeg/${i%.wav}.mp3";
doneThis scripts reads WAVE files located in
./wav/
and produces a controlled-bitrate MP3 of 64kbps in my./mp3/lame/
directory, and a variable-bitrate MP3 of quality 2 in my./mp3/ffmpeg/
.I have written a Python script that iterates through both resultant MP3s, counting the number of frames and samples. Both the LAME and FFMPEG results are equivalent (in terms of frames and samples), but their binary files are different.
The LAME/FFMPEG sample count was done by iterating through the binary MP3 files, locating and parsing the frame header, then using the MP3 spec to determine the number of samples per frame.
- Number of MP3 data-frames : 112 (ignoring the Xing/Info first frame)
- Number of output frames : 112*576 = 64512
Here is a comparison of the sample count for a single 4-second input file :
- Input WAV # of samples = 62996
- Output LAME/FFMPEG # of samples = 64512
- Difference = 1516
I understand that according to the LAME FAQ file, resultant MP3 files are zero padded in the front and back to make sure the inverse MDCT is performed properly, but also because the windows overlap.
What I can’t ascertain from the above FAQ, or from any previous StackOverflow post, is how to compute the number of artificially added samples. If I can be sure that all 1516 of these samples are zeros, and I can be sure of their position in the bytestream, I’d like to be able to confidently toss them out. Since there are 1516 "extra" samples and there are 576 samples per frame for a V2LIII encoding, then there must be more than two (but less than three) erroneous MPEG frames here.
Is anyone here savvy enough with MPEG encoding/decoding to know how many samples are added, and in which frames those samples will be in ? In other words, will the first frame and last frame always contain blank data, or are there more frames ?