Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (32)

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

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6969)

  • How to find and download m3u8 file from websites's link like hotstar, voot and sonyliv in php, javascript or nodejs or python [on hold]

    10 juillet 2018, par gaurav pandey

    I’m trying to download the m3u8 file from website’s(Like hotstar, voot etc) video link using php or javascript or nodejs or python.

    Please help.
    Thanks

  • download and fill file on fly

    4 mai 2017, par Gianluca Calabria

    I’m trying to create a service for a client which takes some audio chunks and concatenate them. For this I’m using FFmpeg. The user should also be able to download the result on the fly without waiting for the conversion/concatenation to finish. The idea is to "fill" the file as the process goes on. I cannot work my way around it, is it possible to do ? I’m using a RESTful service which calls a class like this one

    public ReadableRepresentation serveDownloadRequest(Representation entity) throws SystemInitializationException {
       InputStreamChannel inputStreamChannel;
       Form reqParameters=getQuery();
       try {

           String parameters = readStringParameter(reqParameters, AudioCutAndJoinParameters.PARAMETERS, AudioCutAndJoinParameters.PARAMETERS_MANDATORY);
           trace.debug(this.getClass().getSimpleName() + " parameter " + AudioCutAndJoinParameters.PARAMETERS + "=" + parameters);

           String inputUri = readStringParameter(reqParameters, AudioCutAndJoinParameters.INPUT_URI, AudioCutAndJoinParameters.INPUT_URI_MANDATORY);
           trace.debug(this.getClass().getSimpleName() + " parameter " + AudioCutAndJoinParameters.INPUT_URI + "=" + inputUri);

           String markInRelative = readStringParameter(reqParameters, AudioCutAndJoinParameters.MARKIN_ID_RELATIVE, AudioCutAndJoinParameters.MARKIN_ID_RELATIVE_MANDATORY);
           trace.debug(this.getClass().getSimpleName() + " parameter " + AudioCutAndJoinParameters.MARKIN_ID_RELATIVE + "=" + markInRelative);

           String parametersString = readStringParameter(reqParameters, AudioCutAndJoinParameters.PARAMETERS_STRING, AudioCutAndJoinParameters.PARAMETERS_STRING_MANDATORY);
           trace.debug(this.getClass().getSimpleName() + " parameter " + AudioCutAndJoinParameters.PARAMETERS_STRING + "=" + parametersString);

           String cmdFolder = readStringParameter(reqParameters, AudioCutAndJoinParameters.COMMAND_FOLDER, AudioCutAndJoinParameters.COMMAND_FOLDER_MANDATORY);
           trace.debug(this.getClass().getSimpleName() + " parameter " + AudioCutAndJoinParameters.COMMAND_FOLDER + "=" + cmdFolder);

           Map markInIdRelativeMap=JsonEntityManager.getInstance().deserializeMap(markInRelative);
           Map parametersMap=JsonEntityManager.getInstance().deserializeMap(parameters);
           List <string> InputUri= JsonEntityManager.getInstance().deserializeList(inputUri);

           InputStream transcodeOutput = Services.getInstance().runAudioCutAndJoin(parametersMap,markInIdRelativeMap,InputUri,parametersString,cmdFolder);
           inputStreamChannel = new InputStreamChannel(transcodeOutput);

           ReadableRepresentation result = new ReadableRepresentation(inputStreamChannel, MediaType.AUDIO_ALL);

           Disposition disp = new Disposition(Disposition.TYPE_ATTACHMENT);

           disp.setFilename("test-cut.wav");
           result.setDisposition(disp);

           return result;
    </string>

    I’m using the process.getInputStream() as return of my runAudioCutAndJoin but no download happens until the process of conversion/concatenation is done. Can somebody please help me out ?

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

    29 septembre 2022, 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.

    &#xA;

    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.

    &#xA;

    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.

    &#xA;

    # videocreatingproccessor.rb&#xA;&#xA;require &#x27;streamio-ffmpeg&#x27;&#xA;require &#x27;fileutils&#x27;&#xA;&#xA;module VideoCreatingProcessor&#xA;  def self.convert_to_video (path_to_audio_file, path_to_image_file)&#xA;    movie = FFMPEG::Movie.new(path_to_audio_file)&#xA;    options = {&#xA;      video_codec: "libx264",&#xA;      frame_rate: 60,&#xA;      resolution: "960x720",&#xA;      x264_vprofile: "high",&#xA;      x264_preset: "slow",&#xA;      pixel_format: "720p",&#xA;      audio_codec: "libfaac",&#xA;      audio_bitrate: 32,&#xA;      audio_sample_rate: 44100,&#xA;      audio_channels: 2,&#xA;      threads: 2,&#xA;    }&#xA;&#xA;    woptions = { watermark: path_to_image_file, resolution: "960x720", watermark_filter: { padding_x: 10, padding_y: 10 } }&#xA;&#xA;    movie.transcode("tmp/output.mp4",woptions ,options )&#xA;  end&#xA;end&#xA;

    &#xA;

    # uploads_controller.rb&#xA;&#xA;class UploadsController &lt; ApplicationController&#xA;  before_action :set_upload, only: [:show, :edit, :update, :destroy]&#xA;&#xA;  def index&#xA;    @uploads = Upload.all&#xA;  end&#xA;&#xA;  def paudioaddress&#xA;    "https:" &#x2B; @upload.audio.url&#xA;  end&#xA;&#xA;  def pimageaddress&#xA;    "https:" &#x2B; @upload.image.url&#xA;  end&#xA;&#xA;   def show&#xA;    require "video_creating_processor"&#xA;    newvideo = VideoCreatingProcessor.convert_to_video(paudioaddress, pimageaddress)&#xA;   end&#xA;&#xA;   # ....&#xA;end&#xA;

    &#xA;