
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (12)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (2517)
-
Merge commit ’d1f9563d502037239185c11578cc614bdf0c5870’
1er mars 2014, par Michael Niedermayer -
How to Manually Process Muxing h264 to mp4 ?
8 juillet 2023, par KaiThe project I'm currently working on involves capturing screen frames on Windows via the
Desktop Duplication API
as raw BGRA format pixel data, and then encoding these frames into h264 format.

At this point, I have successfully created a video in the h264 format using the
X264
crate. However, my next task is to mux the h264 frames into an mp4 file, and this is where I'm facing some difficulties. I am currently trying to utilize theffmpeg-the-third
crate, an FFmpeg wrapper in Rust, to perform this task, but I am unsure how to proceed with it.

I'm seeking assistance on how to use the
ffmpeg-the-third
crate or anything else that could allow me to convert the h264 video file to mp4 format. Specifically, I need help on how to implement the muxing process manually. Any guidance, examples, or resources that can guide me through this process would be greatly appreciated. Thank you !

Here is the code that I use to encode the captured frames into h264 via the
x264
crate :

fn encode_frames(frames: Vec>, width: u32, height: u32, fps: u32) -> Result<()> {
 let mut file = File::create("../vid/captured_video.h264").unwrap();
 let mut encoder = Encoder::builder()
 .fps(fps, 1)
 .build(Colorspace::BGRA, width as _, height as _)
 .unwrap();
 {
 let headers = encoder.headers().unwrap();
 file.write_all(headers.entirety()).unwrap();
 }
 for (index, mut pic_data) in frames.into_iter().enumerate() {
 let image = Image::bgra(width as _, height as _, &pic_data);
 let (data, _) = encoder.encode((fps as usize * index) as _, image).unwrap();
 file.write_all(data.entirety()).unwrap();
 }
 // Flush out delayed frames
 {
 let mut flush = encoder.flush();
 while let Some(result) = flush.next() {
 let (data, _) = result.unwrap();
 file.write_all(data.entirety()).unwrap();
 }
 }
 Ok(())
}



-
Merge remote-tracking branch ’cus/stable’
7 décembre 2013, par Michael NiedermayerMerge remote-tracking branch ’cus/stable’
* cus/stable :
ffplay : set default window size before starting audio
ffplay : factor out function setting default window size
ffplay : remove no longer necessary codec flush
ffplay : do not wait for flushing the picture queue on flush packetMerged-by : Michael Niedermayer <michaelni@gmx.at>