
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (37)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
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 (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (8455)
-
Setting B frames in a video with ffmpeg
4 juin 2021, par roberutsuAccording to ffmpeg manual, setting
-g
is to define space between "I" frames, and setting-bf
to use "B" frames. The former I got, but the latter not.


The goal : I'm trying to have a video with a GOP 3,12 (M= 3, N=12).
That means : 2 "B" frames separating each "P" frames, and "I" frames with 12 frames of distance. Or simply : "IBBPBBPBBPBBI"



I think that I got only the N=12, using the commands below :



- 

ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 12 -y -i video.yuv -vcodec mpeg4 video.m4v
MP4Box -hint -mtu 1460 -fps 30 -add video.m4v video.mp4
ffmpeg -y -i video.mp4 video_ref.yuv
../cmd/psnr 352 288 420 video.yuv video_ref.yuv > psnr_ref.txt
../cmd/mp4trace -f -s 192.168.0.2 12346 video.mp4 > trace
head -n 20 trace















Result :



[robert@10-2Fontes]$ head -n 20 trace
1 H 12002 9 0.000
2 P 11479 8 0.034
3 P 12021 9 0.066
4 P 11239 8 0.099
5 P 5407 4 0.134
6 P 2735 2 0.166
7 P 1014 1 0.199
8 P 850 1 0.232
9 P 619 1 0.265
10 P 979 1 0.298
11 P 813 1 0.331
12 P 806 1 0.364
13 H 5109 4 0.396




*Note, the most important is the command
-g 12
in ffmpeg, but I writing all the commands. The video that I'm using is the "highway", from cif page videos : http://www2.tkn.tu-berlin.de/research/evalvid/cif.html


I don't know why the result trace is using "H" instead of "I".



I tried to put
-bf 2
in ffmpeg command, but did not worked (I think because I saw no "B" indications in the result)


List item



ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 12 -bf 2 -y -i video.yuv -vcodec mpeg4 video.m4v




Result :



[robert@10-2Fontes]$ head -n 20 trace
1 H 12002 9 0.001
2 P 11479 8 0.034
3 P 12021 9 0.067
4 P 11239 8 0.100
5 P 5407 4 0.132
6 P 2735 2 0.166
7 P 1014 1 0.199
8 P 850 1 0.232
9 P 619 1 0.265
10 P 979 1 0.298
11 P 813 1 0.331
12 P 806 1 0.363
13 H 5109 4 0.400



-
Setting B frames in a video with ffmpeg
30 juin 2013, par Robert CantaruttiAccording to ffmpeg manual, setting
-g
is to define space between "I" frames, and setting-bf
to use "B" frames. The former I got, but the latter not.The goal : I'm trying to have a video with a GOP 3,12 (M= 3, N=12).
That means : 2 "B" frames separating each "P" frames, and "I" frames with 12 frames of distance. Or simply : "IBBPBBPBBPBBI"I think that I got only the N=12, using the commands below :
ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 12 -y -i video.yuv -vcodec mpeg4 video.m4v
MP4Box -hint -mtu 1460 -fps 30 -add video.m4v video.mp4
ffmpeg -y -i video.mp4 video_ref.yuv
../cmd/psnr 352 288 420 video.yuv video_ref.yuv > psnr_ref.txt
../cmd/mp4trace -f -s 192.168.0.2 12346 video.mp4 > trace
head -n 20 trace
Result :
[robert@10-2Fontes]$ head -n 20 trace
1 H 12002 9 0.000
2 P 11479 8 0.034
3 P 12021 9 0.066
4 P 11239 8 0.099
5 P 5407 4 0.134
6 P 2735 2 0.166
7 P 1014 1 0.199
8 P 850 1 0.232
9 P 619 1 0.265
10 P 979 1 0.298
11 P 813 1 0.331
12 P 806 1 0.364
13 H 5109 4 0.396*Note, the most important is the command
-g 12
in ffmpeg, but I writing all the commands. The video that I'm using is the "highway", from cif page videos : http://www2.tkn.tu-berlin.de/research/evalvid/cif.htmlI don't know why the result trace is using "H" instead of "I".
I tried to put
-bf 2
in ffmpeg command, but did not worked (I think because I saw no "B" indications in the result)List item
ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 12 -bf 2 -y -i video.yuv -vcodec mpeg4 video.m4v
Result :
[robert@10-2Fontes]$ head -n 20 trace
1 H 12002 9 0.001
2 P 11479 8 0.034
3 P 12021 9 0.067
4 P 11239 8 0.100
5 P 5407 4 0.132
6 P 2735 2 0.166
7 P 1014 1 0.199
8 P 850 1 0.232
9 P 619 1 0.265
10 P 979 1 0.298
11 P 813 1 0.331
12 P 806 1 0.363
13 H 5109 4 0.400 -
Two pass high quality theora/vorbis ffmpeg encoding
25 septembre 2017, par Lea ChescottaI want to achieve the same video encoding that I had with ffmpeg2theora with standard ffmpeg, this is because i need the flexibility ffmpeg has to make the container mkv, with subtitles other than srt.
In ffmpeg2theora i have the following command that output a very high quality and very small filesize file :
$ ffmpeg2theora --videobitrate 2000 --two-pass --first-pass firstpass --speedlevel 0 --width 640 --height 360 --resize-method lanczos --noaudio input.mkv
$ ffmpeg2theora --videobitrate 2000 --two-pass --second-pass firstpass --speedlevel 0 --width 640 --height 360 --resize-method lanczos --noaudio input.mkv --output output.ogvBeing the most interesting options here i think (From ffmpeg2theora manual page) :
--two-pass
--first-pass <filename>
--second-pass <filename>
--speedlevel
encoding is faster with higher values the cost is quality and bandwidth (default 1)
</filename></filename>But i can only found a simple way to encode theora/vorbis in standard ffmpeg (from : https://trac.ffmpeg.org/wiki/TheoraVorbisEncodingGuide) :
ffmpeg -i input.mkv -codec:v libtheora -qscale:v 7 -codec:a libvorbis -qscale:a 5 output.ogv
That produces a very bad quality output even in the best quality setting (10)
How can I do a 2 pass ’high quality’/’not so big filesize’ theora/vorbis in plain ffmpeg ?