
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (44)
-
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 -
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 (...)
Sur d’autres sites (8213)
-
Use ffmpeg to resize one input's dimension to match another input's dimension
18 novembre 2022, par Hans GDI need to resize one image A to match one dimension of another input B (make height of A match the height of B, for example). I will do this for several pairs of images in a folder, for which I will use a script in the end, but I wanted to know if this particular operation can be done only with
ffmpeg
.

Again, the final script could read the image, find the size and use
scale=-1:height
to accomplish the final goal, but is it posible to make the title's operation only withffmpeg
?

-
Create 256 color palette video
2 mars 2020, par rlcabralI already have this working by converting the source video to GIF with :
ffmpeg -y -t 5 source.mp4 -vf fps=10,scale=480:-1,smartblur=ls=-0.5,crop=iw:ih-2:0:0 -hide_banner -loglevel panic output.gif
And then converting the GIF to MP4, like so :
ffmpeg -y animated.gif -hide_banner -pix_fmt yuvj420p -loglevel panic -an -loglevel panic final.mp4
What I want is to convert
source.mp4
directly tofinal.mp4
, and have the same 256 color palette as a normal GIF.I tried merging both commands together, and although it generates a MP4, the result is a 16 bit video, surprisingly smaller than a 8 bit video.
Do I need to generate a palette first with
palettegen
and then re-encode the video with this palette ? -
Xuggle IMediaWriter error
10 décembre 2013, par prinsenIm testing xuggle and ran into a strange error. I have looked at the example in the documentation, and the xuggle-related code is identical. (http://www.xuggle.com/public/documentation/java/api/com/xuggle/mediatool/IMediaWriter.html)
public class StorageServer {
private final static String storage = "storage.mp4";
private final static IMediaWriter writer = ToolFactory.makeWriter(storage);
private final static Dimension dimension = new Dimension(320, 240);
protected final static Logger logger = LoggerFactory.getLogger(StorageServer.class);
public static void main(String[] args) {
writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_MPEG4,
320, 240);
//setup the connection
StreamServerAgent serverAgent = new StreamServerAgent(new StreamFrameListenerIMPL(), dimension);
serverAgent.start(new InetSocketAddress("localhost", 1337));
}
protected static class StreamFrameListenerIMPL implements StreamFrameListener {
private volatile long count = 0;
@Override
public void onFrameReceived(IVideoPicture image) {
logger.info("frame received :{}", count++);
if (count < 100) {
logger.info("Writing frame");
writer.encodeVideo(0, image);
} else if (count > 220) {
// writer.flush(); // doesn't matter
writer.close();
}
}
}When writer.close is called I get a runtime exception :
Error: cannot write packet to read only container
Which seems really strange..