Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (68)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • How to upload a transcoded file to s3 and create a link to download it

    23 août 2016, par Dotun Longe

    I want to download a video after my module "creates" it by combining a picture and audio file. The output goes to my tmp folder. This works, but I don’t know how to access it.

    My method is to create another Paperclip attachment called "converted" and the module responsible for transcoding should also be responsible for uploading the converted video to a bucket, where I can then access it via @upload.converted.url.

    I have no idea how to go about this, and my eyes hurt from searching. If you have a better way for me to be able to download the transcoded video without this option, I will be open to it.

    Module -> videocreatingproccessor.rb :

    require 'streamio-ffmpeg'
    require 'fileutils'

    module VideoCreatingProcessor

    def self.convert_to_video (path_to_audio_file, path_to_image_file)
    movie = FFMPEG::Movie.new(path_to_audio_file)
    options = {video_codec: "libx264", frame_rate: 60, resolution: "960x720",
          x264_vprofile: "high", x264_preset: "slow", pixel_format: "720p",
          audio_codec: "libfaac", audio_bitrate: 32, audio_sample_rate: 44100, audio_channels: 2,
          threads: 2}
     woptions = { watermark: path_to_image_file, resolution: "960x720", watermark_filter: { padding_x: 10, padding_y: 10 } }

    movie.transcode("tmp/output.mp4",woptions ,options )
    end

    uploads_controller.rb :

    class UploadsController < ApplicationController
    before_action :set_upload, only: [:show, :edit, :update, :destroy]

    def index
    @uploads = Upload.all
    end

    def paudioaddress
    "https:" + @upload.audio.url
    end

    def pimageaddress
    "https:" + @upload.image.url
     end

     def show
     require "video_creating_processor"
     newvideo =    VideoCreatingProcessor.convert_to_video(paudioaddress,pimageaddress)
     end

     ....
     end
  • Why can't curl download the ffmpeg-2.7.tar.bz2 ?

    12 juin 2015, par Jerikc XIONG

    I’m working on OS X Yosemite 10.10.2. I want to use curl command to download the ffmpeg-2.7.tar.bz2 as following :

    curl -O http://ffmpeg.org/releases/ffmpeg-2.7.tar.bz2

    It can’t work.

    However it works fine with other url.

    The message as following when add the —verbose option :

    $ curl --verbose -O http://ffmpeg.org/releases/ffmpeg-2.7.tar.bz2
    * Hostname was NOT found in DNS cache
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 192.190.173.55...
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to ffmpeg.org (192.190.173.55) port 80 (#0)
    > GET /releases/ffmpeg-2.7.tar.bz2 HTTP/1.1
    > User-Agent: curl/7.37.1
    > Host: ffmpeg.org
    > Accept: */*
    >
    * HTTP 1.0, assume close after body
    < HTTP/1.0 302 Found
    < Location: http://211.167.105.70:80/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/ffmpeg.org/releases/ffmpeg-2.7.tar.bz2
    < Connection: Close
    <
    { [data not shown]
     0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
    * Closing connection 0

    Where did I go wrong ?

    PS :

    $ curl --version
    curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
    Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
  • How to convert messed-up .vtt sub file from youtube-dl —write-auto-sub download ?

    27 septembre 2023, par perry_the_python

    My goal is to download a YouTube video with auto-generated subtitles in a separate file like .vtt,.srt, etc.

    


    I am currently trying to achieve this with youtube-dl but I am open to other solutions if needed.

    


    When I run the following command, it downloads the video as .mp4 (which is fine) and a separate .vtt file, but the .vtt seems to be messed-up somehow and displays all the text for the whole clip at once instead of the specified times.

    


    Command I am running :

    


    youtube-dl --write-auto-sub https://www.youtube.com/watch?v=Roc89oOZOF4&list=PLJBo3iyb1U0eNNN4Dij3N-d0rCJpMyAKQ&index=45


    


    Downloads this .vtt :

    


    WEBVTT&#xA;Kind: captions&#xA;Language: en&#xA;&#xA;00:00:05.960 --> 00:00:08.290 align:start position:0%&#xA; &#xA;thank &lt;00:00:06.003><c>you  </c>&lt;00:00:06.046><c>ah </c>&lt;00:00:06.089><c>crap  </c>&lt;00:00:06.132><c>well </c>&lt;00:00:06.175><c>looks </c>&lt;00:00:06.218><c>like </c>&lt;00:00:06.261><c>the </c>&lt;00:00:06.304><c>good </c>&lt;00:00:06.347><c>Lord </c>&lt;00:00:06.390><c>just </c>&lt;00:00:06.433><c>sent  </c>&lt;00:00:06.476><c>me </c>&lt;00:00:06.519><c>a </c>&lt;00:00:06.562><c>conversation </c>&lt;00:00:06.605><c>starter </c>&lt;00:00:06.648><c>come </c>&lt;00:00:06.691><c>here  </c>&lt;00:00:06.734><c>Jesse </c>&lt;00:00:06.777><c>come </c>&lt;00:00:06.820><c>get </c>&lt;00:00:06.863><c>the </c>&lt;00:00:06.906><c>ball  </c>&lt;00:00:06.949><c>hmm</c>&#xA;&#xA;00:00:08.290 --> 00:00:10.549 align:start position:0%&#xA;thank you  ah crap  well looks like the good Lord just sent  me a conversation starter come here  Jesse come get the ball  hmm&#xA; &#xA;&#xA;00:00:10.549 --> 00:00:13.070 align:start position:0%&#xA; &#xA; &#xA;&#xA;00:00:13.070 --> 00:00:15.470 align:start position:0%&#xA; &#xA; &#xA;&#xA;00:00:15.470 --> 00:00:23.750 align:start position:0%&#xA; &#xA; &#xA;&#xA;00:00:23.750 --> 00:00:23.760 align:start position:0%&#xA; &#xA; &#xA;&#xA;00:00:23.760 --> 00:00:26.480 align:start position:0%&#xA; &#xA;&#xA;&#xA;&#xA;

    &#xA;

    I have read that this may be done on purpose by YouTube.

    &#xA;

    Even if this is true, is there any way to convert this .vtt to a usable format or simply download correctly-formatted auto-generated subtitles from YouTube ?

    &#xA;

    Python, FFMPEG, cmd-line preferred, but anything is helpful !

    &#xA;

    Thanks ! Any and all assistance is greatly appreciated !

    &#xA;