Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (79)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (12738)

  • How to optimize FFMPEG/ Editing video ?

    6 mars 2016, par user6964

    I have the next commands for editing video but all the process take a long time. But with the same quality of the original video.

    //First cut original video
    exec("ffmpeg -i $video_path_main -ss $first_time1 -t $first_time2 -s 476x268 -r 10 -b 2000k -r 30 -g 100 -ar 22050 -ab 48000 -ac 1 -strict -2 $name_first");
    exec("ffmpeg -i $video_path_main -ss $second_time1 -t $second_time2 -s 476x268 -r 10 -b 2000k -r 30 -g 100 -ar 22050 -ab 48000 -ac 1 -strict -2 $name_second");

    $name_edit_second = uniqid() . '.mp4'; //Then editing the second video
    exec("ffmpeg -i $name_second -s 476x268 -r 10 -b 2000k -r 30 -g 100 -ar 22050 -ab 48000 -ac 1 -strict -2 -vf movie='" . $image_name . " [watermark]; [in] [watermark] overlay=308:43"."' $name_edit_second");

    //Then merge video file mp4 with Mencoder
    $name_total_1 = uniqid() . '.mp4';
    exec("mencoder -oac pcm -ovc xvid -vf scale -xvidencopts bitrate=460 -o $name_total_1 ".$name_first.' '.$name_edit_second);

    //Then convert the video to 3 formats that is necessary in my Player.
    $name_total = uniqid();

    //Of MP4 a FLV
    exec("ffmpeg -i $name_partial -f flv -s 476x268 -r 10 -b 2000k -r 30 -g 100 -ar 22050 -ab 48000 -ac 1 $name_total.flv");

    //Of MP4-Mencoder a MP4-FFMPEG
    exec("ffmpeg -i $name_partial -s 476x268 -r 10 -b 2000k -r 30 -g 100 -ar 22050 -ab 48000 -ac 1 -strict -2 $name_total.mp4"));

    //Of MP4 a WEBM
    exec("ffmpeg -i $name_partial -acodec libvorbis -s 476x268 -r 10 -b 2000k -r 30 -g 100 -ar 22050 -ab 48000 -ac 2 -f webm $name_total.webm");

    I don’t know if some of parameters take much time for all the process. Or if one of this command take much time.

    Note : Some videos have more than 2 parts of their original videos.


    UPDATE

    Maybe the parameter -theards 1 help me in NO take a lot of resources of the CPU. Also, I need to optimize the re-encoding because with only 8 users take the 100% of resources.

    I run FFMPEG in a other server that return the video edited to other server where stay my application.

    Sorry for my english.

  • How to transcode avi or mov file to mpeg-ts with specific results ?

    15 juillet 2015, par Andy Do

    Can someone please help me convert a mov or mp4 file to mpeg-ts to look like the output below ?

    So far I have this :

    ffmpeg -i test_5.mp4 -c copy -bsf h264_mp4toannexb -b:a test_5.ts

    and want to replicate this :

    Format                                   : MPEG-TS
    File size                                : 1.48 GiB
    Duration                                 : 11mn 45s
    Overall bit rate mode                    : Constant
    Overall bit rate                         : 18.0 Mbps

    Video
    ID                                       : 481 (0x1E1)
    Menu ID                                  : 1 (0x1)
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=15
    Format settings, picture structure       : Frame
    Codec ID                                 : 2
    Duration                                 : 11mn 45s
    Bit rate                                 : 16.9 Mbps
    Maximum bit rate                         : 15.0 Mbps
    Width                                    : 720 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 29.970 fps
    Standard                                 : NTSC
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 1.633
    Time code of first frame                 : 00:00:00;00
    Time code source                         : Group of pictures header
    Stream size                              : 1.39 GiB (94%)

    Audio
    ID                                       : 482 (0x1E2)
    Menu ID                                  : 1 (0x1)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : 129
    Duration                                 : 11mn 45s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 16.2 MiB (1%)
    Language                                 : English

    Thanks if you can !

  • Create conversion queue using ffmpeg and C #

    22 octobre 2017, par Alexei Agüero Alba

    Ok, the idea is to create a file queue that can be modified and reorganized (this is done) and for each file execute a ffmpeg process to convert it to another format.

    For conversion use Xabe.FFmpeg and .Net 4.5 all using async and await.

    The question would be how to execute an x ​​number of processes in parallel (example 4) of that variable queue and when one of them finishes executing the next one, keeping in execution always the same amount in parallel. I can start from scratch but I need ideas on how to do this in the simplest way possible. The program itself is simple (with gui) takes a folder and its subfolders all the video files and queues them and starts the conversion, you can add other folders with more files, and independent files reorder them, to convert whichever is the greater.

    At one point I found a package I think nuget (or github) that did exactly what I needed but I have not been able to get back.

    Thanks for your help in advance.

    Excuse the English because I use the translator of Google for being faster because my domain of this is limited but sufficient to understand the answers.


    Ok, I found what I was looking for called ProcessManager is a nupkg package. It has 2 years of development but seems stable. The only drawback is that it does not allow me to organize the conversion queue once you have added the files, although I have to try some ideas that maybe functions.

    var manager = new Manager(4); // Max 4 processes will be started simultaneously
    manager.Start();

    manager.ProcessErrorDataReceived += (sender, e) => Console.WriteLine(e.Data);
    manager.ProcessOutputDataReceived += (sender, e) => Console.WriteLine(e.Data);

    foreach (var videoFileName in Directory.EnumerateFiles("videos"))
    {
       var info = new ProcessInfo(
           "ffprobe.exe",
           string.Format("-v quiet -print_format json -show_format -show_streams \"{0}\"", videoFileName));

       manager.Queue(info);
    }

    Process Manager