Recherche avancée

Médias (91)

Autres articles (107)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (5158)

  • Anomalie #3212 : Problème function gzopen dans librairie PclZip

    6 mai 2014, par lrt rln

    Bizarre, je suis en architecture i386 et :

    var_dump(get_extension_funcs(’zlib’)) ; 
    array(25)  [0]=> string(10) "readgzfile" [1]=> string(8) "gzrewind" [2]=> string(7) "gzclose" [3]=> string(5) "gzeof" [4]=> string(6) "gzgetc" 
    [5]=> string(6) "gzgets" [6]=> string(7) "gzgetss" [7]=> string(6) "gzread" [8]=> string(8) "gzopen64" [9]=> string(10) "gzpassthru" 
    [10]=> string(8) "gzseek64" [11]=> string(8) "gztell64" [12]=> string(7) "gzwrite" [13]=> string(6) "gzputs" [14]=> string(6) "gzfile" 
    [15]=> string(10) "gzcompress" [16]=> string(12) "gzuncompress" [17]=> string(9) "gzdeflate" [18]=> string(9) "gzinflate" 
    [19]=> string(8) "gzencode" [20]=> string(8) "gzdecode" [21]=> string(11) "zlib_encode" [22]=> string(11) "zlib_decode" 
    [23]=> string(20) "zlib_get_coding_type" [24]=> string(12) "ob_gzhandler" 
    


    Le problème est que SVP plante salement lors du dezip des plugins et renvoie le faux message : ’Missing zlib extensions’

  • Laravel php-ffmpeg Encoding failed

    21 août 2023, par Jack The Baker

    In laravel using php-ffmpeg want to convert video and do some changes on it, like watermark, change size and etc... I ran a test :

    


        $format = new X264;
    $ffmpeg = FFMpeg::create();
    $video = $ffmpeg->open(public_path()."/videos/file.mp4");
    $output = public_path().'/videos/'.time().'.mp4';
    $video->save($format, $output);


    


    And it is working good, but I want to add a watermark then added this :

    


         $watermarkPath = public_path().'/videos/watermark.png';
     $video ->filters() ->watermark($watermarkPath, array( 'position' => 'relative', 'bottom' => 50, 'right' => 50, ));


    


    But now I didn't get any output and also got error :

    


    


    FFMpeg\Exception\RuntimeException : Encoding failed in file
D :\Workshop\x\New
Version\x-api\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php
on line 116

    


    #0 D :\Workshop\x\New Version\x-api\app\Http\Controllers\AdsController.php(497) :
FFMpeg\Media\AbstractVideo->save(Object(FFMpeg\Format\Video\X264),
'D :\Workshop\Nob...')

    


    


    Any idea ?

    


  • Python script and equivalent command do not run the same

    19 août 2021, par user32882

    I would like to use youtubedl to download the audio from a YouTube video into an mp3 file. I came up with the following command to do so :

    


    youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=SF8DGbfOFig&ab_channel=derang

    


    When I run the above command through my command line, it seems that I successfully manage to download the file in mp3 format :

    


    [youtube] SF8DGbfOFig: Downloading webpage
[download] Destination: Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k]-SF8DGbfOFig.webm
[download] 100% of 5.57MiB in 00:03
[ffmpeg] Destination: Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k]-SF8DGbfOFig.mp3
Deleting original file Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k]-SF8DGbfOFig.webm (pass -k to keep)


    


    I then tried to convert the above command to an equivalent python script as follows :

    


    import youtube_dl
links = ["https://www.youtube.com/watch?v=SF8DGbfOFig&ab_channel=derang"]
ydl_args = {
        'audioformat': 'mp3',
        'outtmpl': '%(title)s.%(ext)s',
        'extractaudio': True
    }
with youtube_dl.YoutubeDL(ydl_args) as ydl:
    results = ydl.download(links)


    


    However, this does not succeed in generating an mp3 file of the audio. These are the logs I am getting :

    


    WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k].f135.mp4
[download] 100% of 4.42MiB in 00:02
[download] Destination: Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k].f251.webm
[download] 100% of 5.57MiB in 00:03
[ffmpeg] Merging formats into "Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k].mkv"
Deleting original file Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k].f135.mp4 (pass -k to keep)
Deleting original file Total Science & S.P.Y - Piano Funk (Ft. Riya & DāM FunK) [320k].f251.webm (pass -k to keep)


    


    What am I doing wrong here ? Aren't my command and python script equivalent ?