Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (74)

  • Demande de création d’un canal

    12 mars 2010, par

    En 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, par

    Certains 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, par

    La 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 David

    i 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

    


    &lt;?php&#xA;    $new_file="new.mp4";&#xA;    $text="eloke";&#xA;    $video_name="video.mp4";&#xA;    echo file_exists($new_file)? "<video autoplay="autoplay" src="&#x27;$new_file&#x27;"></video>":"No file";&#xA;   &#xA;    $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";&#xA;    exec("$cmd 2>&amp;1", $output);&#xA;    var_dump($output);&#xA;?>&#xA;

    &#xA;

    I am getting this in the browser

    &#xA;

    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" }&#xA;

    &#xA;

    Please what am i doing wrong

    &#xA;

  • ffmpeg text overlay both ${frame_num} and :timecode values ?

    2 novembre 2022, par Whome

    Text overlay does not work if framenum 1..n and timecode hh:mm:ss:frame attributes are used together, how do overlay both running values ?

    &#xA;

    Does not work, only timecode is incrementing and framenum is a as a text:&#xA;ffmpeg.exe -hide_banner -nostats ^&#xA;  -i "video_25fps.mp4" -threads 4 -preset fast ^&#xA;  -c:v libx264 -profile:v main -level 4.0 -s:v 640x360 -b:v 512k -pix_fmt yuv420p ^&#xA;  -refs 3 -bf 3 -g 50 -keyint_min 25 -b_strategy 1 -flags &#x2B;cgop -sc_threshold 0 ^&#xA;  -movflags "negative_cts_offsets&#x2B;faststart" ^&#xA;  -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&#x2B;60:text=&#x27;H264\ 640x360\ 512k\ frame\: %{frame_num}\ &#x27;:start_number=1:timecode=00\\:00\\:00\\:00:rate=25" ^&#xA;  -an -sn -t 30 -y output.mp4&#xA;&#xA;Works if framenum only:&#xA;  -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&#x2B;60:text=&#x27;H264\ 640x360\ 512k\ frame\: %{frame_num}&#x27;:start_number=1"&#xA;&#xA;Works if timecode only:&#xA;  -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&#x2B;60:text=&#x27;H264\ 640x360\ 512k\ &#x27;:timecode=&#x27;00\:00\:00\:00&#x27;:rate=25"&#xA;

    &#xA;

  • Issue with image using ffmpeg to combining it on PHP

    8 mai 2017, par 7sega7

    I’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 : image with text

    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.