
Recherche avancée
Autres articles (82)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (12132)
-
Extract bytes of specific stream from mpegts file using ffmpeg
2 novembre 2016, par MaMazavI have an mpeg-ts file with a single program. The program consists of some streams - one video stream and some metadata streams.
I would like to extract a specific stream to a separate file. However the metadata is encoded using a codec that ffmpeg doesn’t know. I don’t really care about this - I just want to extract the data as bytes, without the mpeg-ts container headers. I tried to use codec "copy" but with no success.
I tried the following :
ffmpeg -i video.ts -map 0:1 -codec copy stream.txt
But ffmpeg says :
Unable to find a suitable output format for stream.txt
The error above is only because ffmpeg doesn’t know how to output a text file. So I tried to output with "rawvideo" container :
ffmpeg -i video.ts -map 0:1 -codec copy -f rawvideo stream.txt
But :
Cannot map stream #0:1 - unsupported type
Just to ensure that I can extract a content of an unknown codec I tried the following :
ffmpeg -i video.ts -map 0:1 -codec copy stream.ts
But again :
Cannot map stream #0:1 - unsupported type
So my questions are :
- Can I extract a byte stream of an unknown codec stream ? and how ?
- How can I output the byte stream without any container ? Should I use the rawvideo ?
-
avformat/utils : Avoid copying packets unnecessarily
20 septembre 2019, par Andreas Rheinhardtavformat/utils : Avoid copying packets unnecessarily
Up until now, read_frame_internal in avformat/utils.c uses a spare
packet on the stack that serves no real purpose : At no point in this
function is there a need for another packet besides the packet destined
for output :
1. If the packet doesn't need a parser, but is output as is, the content
of the spare packet (that at this point contains a freshly read packet)
is simply copied into the output packet (via simple assignment, not
av_packet_move_ref, thereby confusing ownership).
2. If the packet needs parsing, the spare packet will be reset after
parsing and any packets resulting from the packet read will be put into
a packet list ; the output packet is not used here at all.
3. If the stream should be discarded, the spare packet will be
unreferenced ; the output packet is not used here at all either.Therefore the spare packet and the copies can be removed in principle.
In practice, one more thing needs to be taken care of : If ff_read_packet
failed, the output packet was not affected, now it is. But given that
ff_read_packet returns a blank (as if reset via av_packet_unref) packet
on failure, there is no problem from this side either.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
avfilter/vsrc_mandelbrot : change sin to sinf for color computation
24 novembre 2015, par Ganesh Ajjanagaddeavfilter/vsrc_mandelbrot : change sin to sinf for color computation
lrintf is anyway used, suggesting we only care up to floating precision.
Rurthermore, there is a compat hack in avutil/libm for this function,
and it is used in avcodec/aacps_tablegen.h.This yields a non-negligible speedup. Sample benchmark :
x86-64, Haswell, GNU/Linux :old (draw_mandelbrot) :
274635709 decicycles in draw_mandelbrot, 256 runs, 0 skips
300287046 decicycles in draw_mandelbrot, 512 runs, 0 skips
371819935 decicycles in draw_mandelbrot, 1024 runs, 0 skips
336663765 decicycles in draw_mandelbrot, 2048 runs, 0 skips
581851016 decicycles in draw_mandelbrot, 4096 runs, 0 skipsnew (draw_mandelbrot) :
269882717 decicycles in draw_mandelbrot, 256 runs, 0 skips
296359285 decicycles in draw_mandelbrot, 512 runs, 0 skips
370076599 decicycles in draw_mandelbrot, 1024 runs, 0 skips
331478354 decicycles in draw_mandelbrot, 2048 runs, 0 skips
571904318 decicycles in draw_mandelbrot, 4096 runs, 0 skipsReviewed-by : Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>