
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (7)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
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 (...)
Sur d’autres sites (2239)
-
h264_mp4toannexb filter failed to receive output packet while ffmpeg concat
10 août 2022, par AlexZhedaI am writing a very easy concat script for a list of videos.



(for %i in (*.mp4) do @echo file '%i') > mylist.txt



ffmpeg -safe 0 -f concat -i mylist.txt -c copy merged.mp4



Yet the log says something weird
h264_mp4toannexb filter failed to receive output packet”

Those files are rendered in VLC, but at certain timestamps they start to disallow moving the playtime cursor. I suspect that might be the case but I do not see much from the failed files.


The file(s) it fails on has the following description (
ffmpeg -i fn.mp4
)



EDIT : Truncated stats from all of the files in order.



[{'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2715 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1664 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1438 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1473 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1479 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1502 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1514 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1581 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1600 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1814 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1136 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1747 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1872 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1538 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2839 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1595 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1733 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1623 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1634 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1564 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1635 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1674 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1809 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1650 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1773 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1643 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1802 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1766 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1809 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1641 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1812 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1984 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1787 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1912 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1839 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1903 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1826 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1900 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1773 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1799 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1933 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 2023 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1971 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 2071 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1997 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1692 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1785 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1864 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 2007 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1897 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1726 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1799 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1683 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1735 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1751 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 2003 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1208 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1497 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1591 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1662 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1747 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1634 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1891 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1734 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1998 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1997 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1752 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1695 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 2002 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1934 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1799 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1966 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1972 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1968 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 2144 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 2049:2048 DAR 683:384], 1937 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)'},
 {'Stream #0:0': ' Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1674 kb/s, 29.99 fps, 30 tbr, 15360 tbn, 60 tbc (default)',
 'Stream #0:1': ' Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)'}]



-
What is Google Analytics data sampling and what’s so bad about it ?
16 août 2019, par Joselyn Khor — Analytics Tips, Development -
How to make your plugin multilingual – Introducing the Piwik Platform
29 octobre 2014, par Thomas Steur — DevelopmentThis is the next post of our blog series where we introduce the capabilities of the Piwik platform (our previous post was Generating test data – Introducing the Piwik Platform). This time you’ll learn how to equip your plugin with translations. Users of your plugin will be very thankful that they can use and translate the plugin in their language !
Getting started
In this post, we assume that you have already set up your development environment and created a plugin. If not, visit the Piwik Developer Zone where you’ll find the tutorial Setting up Piwik and other Guides that help you to develop a plugin.
Managing translations
Piwik is available in over 50 languages and comes with many translations. The core itself provides some basic translations for words like “Visitor” and “Help”. They are stored in the directory
/lang
. In addition, each plugin can provide its own translations for wordings that are used in this plugin. They are located in/plugins/*/lang
. In those directories you’ll find one JSON file for each language. Each language file consists in turn of tokens that belong to a group.{
"MyPlugin":{
"BlogPost": "Blog post",
"MyToken": "My translation",
"InteractionRate": "Interaction Rate"
}
}A group usually represents the name of a plugin, in this case “MyPlugin”. Within this group, all the tokens are listed on the left side and the related translations on the right side.
Building a translation key
As you will later see to actually translate a word or a sentence you’ll need to know the corresponding translation key. This key is built by combining a group and a token separated by an underscore. You can for instance use the key
MyPlugin_BlogPost
to get a translation of “Blog post”. Defining a new key is as easy as adding a new entry to the “MyPlugin” group.Providing default translations
If a translation cannot be found then the English translation will be used as a default. Therefore, you should always provide a default translation in English for all keys in the file
en.json
(ie,/plugins/MyPlugin/lang/en.json
).Adding translations for other languages
This is as easy as creating new files in the lang subdirectory of your plugin. The filename consists of a 2 letter ISO 639-1 language code completed by the extension
.json
. This means German translations go into a file namedde.json
, French ones into a file namedfr.json
. To see a list of languages you can use have a look at the /lang directory.Reusing translations
As mentioned Piwik comes with quite a lot of translations. You can and should reuse them but you are supposed to be aware that a translation key might be removed or renamed in the future. It is also possible that a translation key was added in a recent version and therefore is not available in older versions of Piwik. We do not currently announce any of such changes. Still, 99% of the translation keys do not change and it is therefore usually a good idea to reuse existing translations. Especially when you or your company would otherwise not be able to provide them. To find any existing translation keys go to Settings => Translation search in your Piwik installation. The menu item will only appear if the development mode is enabled.
Translations in PHP
Use the Piwik::translate() function to translate any text in PHP. Simply pass any existing translation key and you will get the translated text in the language of the current user in return. The English translation will be returned in case none for the current language exists.
$translatedText = Piwik::translate('MyPlugin_BlogPost');
Translations in Twig Templates
To translate text in Twig templates, use the translate filter.
{{ 'MyPlugin_BlogPost'|translate }}
Contributing translations to Piwik
Did you know you can contribute translations to Piwik ? In case you want to improve an existing translation, translate a missing one or add a new language go to Piwik Translations and sign up for an account. You won’t need any knowledge in development to do this.
Advanced features
Of course there are more useful things you can do with translations. For instance you can use placeholders like
%s
in your translations and you can use translations in JavaScript as well. In case you want to know more about those topics check out our Internationalization guide. Currently, this guide only covers translations but we will cover more topics like formatting numbers and handling currencies in the future.Congratulations, you have learnt how to make your plugin multilingual !
If you have any feedback regarding our APIs or our guides in the Developer Zone feel free to send it to us.