
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (74)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
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 ;
-
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (10540)
-
How to run ffmpeg with php in debian 10
6 août 2020, par Eloike Davidi am trying to run a ffmpeg command with my php in Debian 10, but its not working, but the command is working perfectly in windows. The command is to add a watermark and a text at the bottom of the video.
Here is the php code


<?php
 $new_file="new.mp4";
 $text="eloke";
 $video_name="video.mp4";
 echo file_exists($new_file)? "<video autoplay="autoplay" src="'$new_file'"></video>":"No file";
 
 $cmd="ffmpeg -i $video_name -i watermark.jpg -filter_complex overlay=W-w-5:H-h-15[video];[video]drawtext=\"text=$text:fontcolor=white:fontsize=12:x=(w-text_w)-5: y=(h-text_h)-5\" $new_file";
 exec("$cmd 2>&1", $output);
 var_dump($output);
?>



I am getting this in the browser


array(1) { [0]=> string(103) "sh: 1: [video]drawtext=text=eloke:fontcolor=white:fontsize=12:x=(w-text_w)-5: y=(h-text_h)-5: not found" }



Please what am i doing wrong


-
ffmpeg text overlay both ${frame_num} and :timecode values ?
2 novembre 2022, par WhomeText overlay does not work if
framenum 1..n
andtimecode hh:mm:ss:frame
attributes are used together, how do overlay both running values ?

Does not work, only timecode is incrementing and framenum is a as a text:
ffmpeg.exe -hide_banner -nostats ^
 -i "video_25fps.mp4" -threads 4 -preset fast ^
 -c:v libx264 -profile:v main -level 4.0 -s:v 640x360 -b:v 512k -pix_fmt yuv420p ^
 -refs 3 -bf 3 -g 50 -keyint_min 25 -b_strategy 1 -flags +cgop -sc_threshold 0 ^
 -movflags "negative_cts_offsets+faststart" ^
 -vf "drawtext=fontfile=/fonts/Roboto-Regular.ttf:fontcolor=White:fontsize=38:box=1:boxcolor=black:x=(w-text_w)/2:y=text_h-line_h+60:text='H264\ 640x360\ 512k\ frame\: %{frame_num}\ ':start_number=1:timecode=00\\:00\\:00\\:00:rate=25" ^
 -an -sn -t 30 -y output.mp4

Works if framenum only:
 -vf "drawtext=fontfile=/fonts/Roboto-Regular.ttf:fontcolor=White:fontsize=38:box=1:boxcolor=black:x=(w-text_w)/2:y=text_h-line_h+60:text='H264\ 640x360\ 512k\ frame\: %{frame_num}':start_number=1"

Works if timecode only:
 -vf "drawtext=fontfile=/fonts/Roboto-Regular.ttf:fontcolor=White:fontsize=38:box=1:boxcolor=black:x=(w-text_w)/2:y=text_h-line_h+60:text='H264\ 640x360\ 512k\ ':timecode='00\:00\:00\:00':rate=25"



-
Issue with image using ffmpeg to combining it on PHP
8 mai 2017, par 7sega7I’m trying to combine images with ffmpeg on PHP.
First, I save the image with this and resizing then :
$imagen = file_get_contents($_SESSION['img']);
file_put_contents('img_prod.jpg', $imagen);
$img = resize_imagejpg('img_prod.jpg', 650,360);
imagejpeg($img, 'img_prod.jpg');Then I create a png with only a title or info. At the moment I’m giving the text with a form, later I’ll do with BD.
For this I’m using the imagettftext :titulo = explode("-", $_SESSION['title']);
$im = imagecreatetruecolor(400, 30);
$white= imagecolorallocate($im, 255, 255, 255);
$black= imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white);
$font= 'Comfortaa.ttf';
imagettftext($im, 10, 0, 15, 10, $black, $font, $titulo[$i]);
imagepng($im, "img_con_texto.png");
imagedestroy($im);What I’m doing here is, first I get the Title for my form, and with the explode, every time I read a "-", I put all the text in another line. I simplified this on the code quote por easy read.
Then I create the color, I filled the all rectangle with one color, pick the font and put the font, color font and the text on a image and destroy the variable for using again with another text.At the end, I use ffmpeg to put the image for "file_get_contents" and the image with the text.
echo shell_exec('ffmpeg -y -i marco.png -i img_prod.jpg -filter_complex "overlay=20:(main_h-overlay_h)/2" out_img_prod.jpg')
The "marco.png" it is just a white image with no contents. I open paint, change the resize pixels for 850/480 and saving that as marco.png.
Then I add the text on the right side with the last image :
echo shell_exec('ffmpeg -y -i out_img_prod.jpg -i img_con_texto.png -filter_complex "overlay=500:140" prod_title.jpg');
The issue is that, when I do this, the text have a light gray color on the background. When I create the img with the text, It have white background color and it is a .png So I don’t know why It have that gray background color.
This is the image from the last code :If I did the same with paint or gimp, adding mannualy the text on the image on the left, the background gray color dissapear so, It is possible to quit that light grey color ?
PD : I quit some code for a simple read, so maybe I miss to quit variables. Also, If the img is more smaller and the text don’t collide with the text, the light gray color still there.