
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (31)
-
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 ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4452)
-
add watermark to video with FFMPEG and convert to HLS for all resolution
25 juin 2021, par sinaI'm using this package :
aminyazdanpanah/PHP-FFmpeg-video-streaming
. I try to add a watermark to a video and I am using "hls" after adding a watermark method. The problem is the watermark is apply just for one resolution and the other representations does not work.

For example, I use this method :


$video ->filters() ->watermark('sample.png', [ 'position' => 'relative', 'bottom' => 50, 'right' => 50, ]);

$video->hls() ->setFormat($format) ->autoGenerateRepresentations([144,360,480]) ->save('sample.m3u8');



In this case only the default representation is save (depend on video resolution) and other quality not generate.


Is there a way to add watermark to hls (all quality) ?


-
Nginx can't record live streaming results for medium resolution
1er juillet 2021, par firman alislamiwhen i finished live streaming, the live streaming result file was not recorded for medium resolution...


rtmp {
server {
 listen 1935;
 chunk_size 4096; 
application live {
 live on;
 exec_push /usr/bin/ffmpeg -re -i rtmp://localhost/live/$name 
 -async 1 -vsync -1
 -c:v libx264 -c:a aac -b:v 200k -b:a 34k -vf "scale=240:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost/hls/$name_low
 -c:v libx264 -c:a aac -b:v 300k -b:a 64k -vf "scale=360:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost/hls/$name_low360
 -c:v libx264 -c:a aac -b:v 800k -b:a 64k -vf "scale=480:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost/hls/$name_low480
 -c:v libx264 -c:a aac -b:v 1800k -b:a 128k -vf "scale=720:trunc(ow/a/2)*2" -tune zerolat#-acodec copy -vcodec copy -f flv rtmp://localhost/hls/$name;
}
application hls {
 live on;
 deny play all;
 hls on;
 hls_fragment 4;
 hls_playlist_length 20;
 hls_path /mnt/hls;
 hls_variant _mid BANDWIDTH=1800000,RESOLUTION=1280x720; 
 hls_variant _low480 BANDWIDTH=80000,RESOLUTION=858x480;
 hls_variant _low360 BANDWIDTH=300000,RESOLUTION=480x360;
 hls_variant _low BANDWIDTH=200000,RESOLUTION=352x240; 
 hls_nested on;
 record all;
 record_path /mnt/record/;
 record_unique on;
 exec_record_done ffmpeg -y -i $path -acodec libmp3lame -ar 44100 -ac 1 -vcodec libx264 $dirname/$basename.mp4;
 }
 }
 



}ency -preset superfast -crf 23 -f flv rtmp ://localhost/hls/$name_mid ;
#-c:v libx264 -c:a aac -b:v 1024k -b:a 128k -vf "scale=1080:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp ://localhost/hls/$name_high
#-c copy -f flv rtmp ://localhost/hls/$name_src ;


-
Size of the file even larger after resizing to lower resolution
8 juillet 2021, par Dejan ĆosićI am trying to resize mp4 file with resolution 3840x2160 and 25fps (670MB) to lower resolution 1920x1080.
After this command : ffmpeg -i dfgdfg.mp4 -filter:v scale=1920 :-1 -c:a copy -crf 18 dfgdfg.mp4 2>&1 I have even bigger file : 1.24GB.
To make things even more weird, if I trim small part of this video (28mb) and apply same command, I get, we can say, properly resized video (17mb).
Anyone have idea what's going on here and why resizing on smaller file works better then on large file ?
Just to mention that original video was made using drone and it has 3.91GB and I've resized it to 670MB using some 3rd party software so it's probably that 670MB video is already compressed.