
Recherche avancée
Autres articles (35)
-
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 (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
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 (...)
Sur d’autres sites (5501)
-
avfilter/vf_datascope : add option to show only subset of components
17 janvier 2021, par Paul B Mahol -
show output before making / rendering the output file ffmpeg [closed]
5 janvier 2021, par Education 4FunI wanna build an editing application using FFmpeg so when someone gives a video and do his operations I wanna show result before starting of rendering like any normal video editing
can some one let me know how it can be shown as all the operations he did should effect the video
like is there any way to do in FFmpeg or what does video editors do to achieve it
Thank you


Aditional info :-
like I made a basic GUI application using pyqt5 with some buttons to rotate, increase audio, increase the speed of the video, conversion b/n multiple types of video formats, and changing aspect ratio. so I just wanna show output before executing / clicking submit for rendering Hope now its a bit clear.


Finally i found the solution


ffplay test.mp4 -af "volume=8.0,atempo=4.0" -vf "transpose=2,transpose=2,setpts=1/4*PTS" -aspect 4:2



-
Show portrait video to landscape on Videojs player as HLS ffmpeg Laravel
11 décembre 2020, par TwistCodeI am currently using the ffmpeg library through laravel sdk. For the landscape videos I have no problem with the scaling filters application, but with the portrait videos I need the video to look like the thumbnail below :




But when I play the video, the player is distorted.




Note : It should be noted that when I work with horizontal scales, the player looks good, but the video is distorted.






this is my PHP Laravel code implementation


FFMpeg::FromDisk('local')->open($this->media)
 ->exportForHLS()
 ->setSegmentLength(6) // optional
 /*
 ->addFormat($lowBitrate, function ($media) {
 $media->addFilter(function ($filters, $in, $out) {
 $filters->custom($in, 'scale=854x480,setsar=1,setdar=16:9', $out); // $in, $parameters, $out

 });
 })*/
 // Portrait test
 ->addFormat($lowBitrate, function ($media) { 
 $media->addFilter(function ($filters, $in, $out) {
 // $filters->custom($in, "scale='w=min(720,trunc((480*33/40*dar)/2+0.5)*2):h=min(480,trunc((704*40/33/dar)/2+0.5)*2)',pad='w=720:h=480:x=(ow-iw)/2:y=(oh-ih)/2',setsar='r=40/33'", $out); // $in, $parameters, $out
 $filters->custom($in, "scale=239:-1", $out); // $in, $parameters, $out
 });
 })
 /*
 ->addFormat($midBitrate, function ($media) {
 $media->scale(1280, 720);
 })
 ->addFormat($highBitrate, function ($media) {
 $media->scale(1920, 1080);
 })*/
 ->save("public/hls/$video->id/$video->hash_name.m3u8");



This is the command that runs at the server level for portrait videos.




[2020-12-10 17:48:17] local.INFO : ffmpeg running command
'/usr/bin/ffmpeg' '-y' '-threads' '12' '-i'
'/home/vagrant/homesteadprojects/maquillate/storage/app/videos_directory/pexels-cottonbro-6054875.mp4'
'-filter_complex' '[0]scale=640 :-2[v0]' '-map' '[v0]' '-vcodec'
'libx264' '-b:v' '1200k' '-g' '48' '-hls_playlist_type' 'vod'
'-hls_time' '6' '-hls_segment_filename'
'/home/vagrant/homesteadprojects/maquillate/storage/app/public/hls/35/NXp9waz4AO5Q14Lu6T3JbjSRY496RrtiPGIz6IOJ_0_1200_%05d.ts'
'-acodec' 'aac' '-b:a' '128k'
'/home/vagrant/homesteadprojects/maquillate/storage/app/public/hls/35/NXp9waz4AO5Q14Lu6T3JbjSRY496RrtiPGIz6IOJ_0_1200.m3u8'




I don't really know if my problem is at the server or frontend level, but I would greatly appreciate any contribution.