Recherche avancée

Médias (91)

Autres articles (54)

  • 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 (...)

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (9249)

  • 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 !

  • 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.

  • FFmpeg remove background of video with no black outline

    26 février 2024, par Duc Pham The

    Im using this ffmpeg command to overlay a video on video(with remove black background)

    


    ffmpeg -i /home/ducpt/bunny.mp4 -i overlay_video.mp4 -filter_complex "[1:v]colorkey=0x000000:0.1:0.1[ckout];[0:v][ckout]overlay=enable='between(t,0, 4)':format=rgb[out]" -map '[out]' output.mp4


    


    I used filter_complex "colorkey 0x000000:0.1:0.1" to remove background of overlay video but result have a black outline.

    


    This is screenshot of video overlay original
Overlay Original

    


    And this is result

    


    enter image description here

    


    I tried to use unpremultiply=inplace=1 to remove black outline but not working

    


    ffmpeg -i /home/ducpt/bunny.mp4 -i overlay_video.mp4 -filter_complex "[1:v]colorkey=0x000000:0.1:0.1[ckout];[ckout]unpremultiply=inplace=1 [ckout2];[0:v][ckout2]overlay=enable='between(t,0, 4)':format=rgb[out]" -map '[out]' output.mp4


    


    Please help me remove black outline :(

    


    Sorry for my bad English !