Recherche avancée

Médias (91)

Autres articles (5)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (2289)

  • Changing mkv to mp4 with a batch script

    1er février 2021, par Hetsig

    What I want the .bat to do is to "scan" the files, in this case, .mkv, looking for streams (if there's more than a video stream and an audio stream you might need a matroska file). If you have an audio stream and a video stream, let's change the files as there's no reason to use matroska.

    


    Currently I have 10 seasons of a TV show, which I personally ripped from my own DVDs, and they are in .mkv format. But inside the .mkv there's only video and audio, the subtitles are separate.

    


    The only reason I want to change .mkv to .mp4 is that plex can't use .mkv.

    


    The current code I have to remove metadata on all .XXX in the folder :

    


    if not exist "%~dp1_temp" (
    goto foldercreate
    )
    else (
    goto continue
    )

:foldercreate
echo.
echo Created temp folder.
echo -
mkdir _temp
attrib _temp +h
set errorlevel=
:continue
for %%f in (*%~x1) do (
    title Fixing %%f...
    move "%%f" _temp >nul
    echo Currently fixing %%f...
    ffmpeg -xerror -hide_banner -i "%~dp1_temp\%%f" -map_metadata -1 -codec copy -map 0 "%~dp1%%f" -loglevel warning -stats
    if %errorlevel% neq 0 (
        pause
        )
    del "%~dp1_temp\%%f"
    echo -
    )
if %errorlevel% neq 0 (
    echo FFmpeg errored...
    pause
    )
echo All done! removing temp dir...
rmdir _temp /S /Q
timeout /t 2 /nobreak>nul


:eof


    


  • Remove framerate/duration metadata from h264 with ffmpeg

    5 mai 2020, par aron

    I need a H264 encoded video without framerate and duration metadata as these are stored and calculated externally.

    



    This is what I use :

    



    ffmpeg -r 30 -f image2 -i xyz -c:v libx264 -f h264 1579516080101.h264


    



    This is what mediainfo returns :

    



    General
Complete name                            : 1579516080101.h264
Format                                   : AVC
Format/Info                              : Advanced Video Codec
File size                                : 866 KiB
Duration                                 : 1 s 0 ms
Overall bit rate                         : 7 096 kb/s

Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Duration                                 : 1 s 0 ms
Bit rate                                 : 7 096 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.114
Stream size                              : 866 KiB (100%)


    



    How can I get rid of these entries ? I have tried -map_metadata -1 and setting no framerate, but that just resulted in using a default framrerate of 25.

    



    Thanks

    


  • look for an mp4 file inside a directory and send it to different directory after converting to mp3 in php ?

    13 mai 2019, par flash

    I have a directory called incoming_folder in which there is an mp4 file.

    What I want to achieve through php code is to scan a incoming_folder directory, look for an mp4 file and send it to outgoing_folder after converting it into mp3. Technically outgoing_folder should have mp3 version of mp4 from incoming_folder

    Tried with the following code although its scanning the incoming_folder directory but no conversion is happening through ffmpeg.

    <?php
    $dir    = 'in_folder';  /* Place where mp4 file is present */
    $files1 = scandir($dir);
    print_r($files1);    /* It lists all the files in a directory including mp4 file*/

    $destination = 'out_folder';  /* Place where mp3 file need to be send after conversion from mp4 */

    foreach($files1 as $f)
    {
     $parts = pathinfo($f);

     switch($parts['extension'])
     {
       case 'mp4' :
         system('ffmpeg -i '.$f.' -map 0:2 -ac 1 '.$destination.DS. $parts['filename'].'.mp3', $result);

         if ($result) {
           // Do something with result if you want
           // log for example
         }
         break;

       case 'mp3' :
         // copy($f, $destination. DS . $parts['filename']. '.' . $parts['extension']);
         copy($f, $destination.DS.$parts['filename'].'.mp3');
         break;  
     }
    }
    ?>