Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (89)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (5699)

  • how to update ffmpeg password in Config.php

    15 décembre 2014, par Ray Martin Balilo

    I have successfully installed PHP FFMPEG on my laptop which is windows 8 (I was using xampp) following this guide

    http://myownhomeserver.com/2012/12/how-to-install-ffmpeg-php-php-5-4-on-windows-8-xampp-1-8-1/

    after installing it, the test file is working just right. Then after that i try the video conversion guide following this

    http://myownhomeserver.com/2012/12/how-to-run-execute-ffmpeg-with-php-on-windows-pc/

    my problem is that when i try to click the convert it button. It says that "The page at localhost:8080 says : Request failed !"

    according to the comment in the guide the solution is i need to update the password of ffmpeg in config.php

    this is the code of config.php :

    <?php
    /**
    * Configuration File
    *
    * @ver     0.1
    */
    define('DS', DIRECTORY_SEPARATOR);

    define('BASE_PATH', realpath(dirname(__FILE__)) . DS);

    $_protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off") ? "https" : "http";

    define('BASE_URL', $_protocol ."://". $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])      .'/');

    // Videos to convert path
    define('SOURCE_PATH', BASE_PATH . 'source'. DS);

    // Converted videos output path
    define('OUTPUT_PATH', BASE_PATH .'output'. DS);

    // Logs Path
    define('LOG_PATH', BASE_PATH .'logs'. DS);

    // POST URL for Javascript Queries
    define('POST_URL', BASE_URL .'process.php');

    // Execution Script URL (Where the ffmpeg command will be posted to)
    define('EXEC_URL', BASE_URL .'ffmpegExec.php');

    // FFMPEG Path (ffmpeg.exe)
    define('FFMPEG_PATH', BASE_PATH .'ffmpeg\bin\ffmpeg.exe');

    // FFMPEG Password (Change the value 't^$bG1c4=9u63yyKLmW7Q71tu17p5q' with something new!)
    define('FFMPEG_PW', sha1('sdfdfe'));

    if( !file_exists(SOURCE_PATH) )
       mkdir(SOURCE_PATH, 0755, true);

    if( !file_exists(OUTPUT_PATH) )
       mkdir(OUTPUT_PATH, 0755, true);

    if( !file_exists(LOG_PATH) )
      mkdir(LOG_PATH, 0755, true);

    My problem is I dont know how to locate the password of ffmpeg in my windows 8 laptop. Can someone tell me how can I locate the password of ffmpeg ?
    I know I need to make some minor changes in config.php, mainly setting the FFMPEG_PATH constant to the correct location for my Windows computer. But I dont know how... please someone help me please

    Thanks for the help in advance

  • How do I remux/transcode a progressive file in ffmpeg ?

    3 décembre 2014, par Levi Roberts

    Here’s what I’m trying to do.

    My primary objective is to remux or transcode a currently downloading media file for AppleTV and iOS compatible streaming.

    I am doing this by looking at the media file and only transcoding when necessary, otherwise it will only alter the container the video/audio lives in. This will reduce overhead for files that are already compatible. The specific compatible output I am looking for is AppleTV3 and iOS.

    I have a file that is progressive, meaning that it is downloading using another download manager or another app without the help of nodejs. This file may or may not have the moov information available in the beginning of the file. It just so happens, that I believe my test file does.

    I have some code that is partially working and it would make sense to be able to get this code fully working. That said, I’m not dismissing alternative ways to do this.

    My primary problem (I think) has to do with the moov header location or that it’s being set incorrectly. I’m hoping the fix is as simple as correcting my poor ffmpeg knowledge with command line parameters.

    I am piping the file to and from ffmpeg via GrowingFile and fs.createWriteStream respectively.

    My code for doing so is :

    var fs = require('fs');
    var child = require('child_process');

    var GrowingFile = require('growing-file');
    var input_file = GrowingFile.open('./tmp/input.mp4');
    var output_file = fs.createWriteStream('./tmp/output.m4v');

    // I've tried various args and ffmpeg params here without success.
    var args = ['-re', '-i', 'pipe:0', '-g', '52', '-ab', '64k', '-vcodec', 'libx264', '-vb', '448k', '-f', 'mp4', '-movflags', 'frag_keyframe+faststart', 'pipe:1'];
    var trans_proc = child.spawn('ffmpeg', args, null);

    input_file.pipe(trans_proc.stdin);
    trans_proc.stdout.pipe(output_file);

    I am also temporarily trying to make these files work as intended via ffmpeg command line alone, without success. That command is :

    ffmpeg -i original.mp4 -vcodec copy -r 24 output.m4v

    Snippet of original.mp4 via mediainfo :

    General
    Format                                   : MPEG-4
    Format profile                           : Base Media / Version 2
    Codec ID                                 : mp42
    File size                                : 9.87 MiB
    Duration                                 : 43mn 14s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 31.9 Kbp

    Video
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L2.1
    Codec ID                                 : avc1
    Duration                                 : 43mn 14s
    Width                                    : 480 pixels
    Height                                   : 268 pixels
    Color space                              : YUV
    Scan type                                : Progressive
    Stream size                              : 67.5 MiB

    Audio
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 43mn 14s
    Bit rate mode                            : Variable
    Bit rate                                 : 96.0 Kbps

    What’s happening is that output.m4v has an incorrect duration of only the part of the file that’s already downloaded. The video reaches the end or a refresh happens to make the duration longer. This process repeats until the original file is done downloading. What I want is to be able to emulate/clone the duration of the input file to the output file .

  • Ffmpeg how do I put image behind video at fixed position [duplicate]

    30 janvier 2020, par andrew cummins

    I have an image (720x1280) I want to use as the canvas. I want to put a video in front of the Image but at a specific section and output to mp4. I attached a screenshot

    I’m familiar with the overlay command but not sure how to get the video overlay in that exact location.

    ffmpeg -loop 1 -i image.png -i video.mp4 -filter_complex "[1:v]scale=400 :-1[fg] ;[0:v][fg]overlay=(W-w)/2 :(H-h)/2:shortest=1" output.mp4

    [Screenshot idea]

    https://i.stack.imgur.com/8dHJ4.jpg