Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (48)

  • 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

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7384)

  • Use ffmpeg to extract/remix audio from/into video

    2 décembre 2023, par user37143

    Working on a Mac, I have a bunch of .mkv files that I want to extract the audio from, then use an ML model I have in order to translate them and then mix them back into the video.

    


    For the extraction phase, I am running :
ffmpeg -i {input_video}.mkv -map 0:a -c copy {output_audio}.aac
however I am getting these errors :

    


    [adts @ 0x130708b30] Only AAC streams can be muxed by the ADTS muxer
[out#0/adts @ 0x6000031943c0] Could not write header (incorrect codec parameters ?): Invalid argument
[aost#0:1/copy @ 0x13070a050] Error initializing output stream: 


    


    which I suspect are because of subtitles, seeing these warnings earlier in the output :

    


    [matroska,webm @ 0x130704260] Could not find codec parameters for stream 4 (Subtitle: (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x130704260] Could not find codec parameters for stream 5 (Subtitle:  (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x130704260] Could not find codec parameters for stream 6 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options


    


    The only command that has worked for me so far is
ffmpeg -i {input_video}.mkv -vn -c:a aac {output_aduio}.wav which however created a completely empty audio file.

    


    Any help would be greatly appreciated

    


  • how to upload a video to google driver use paperclip or carriwave

    14 janvier 2016, par bách trần nguyên

    i want to upload video to google driver.
    code models
    video model

    class Video < ActiveRecord::Base
     has_attached_file :video,
      :storage => :google_drive,
      :google_drive_credentials => {:client_id => AppConfig.gg_drive.client_id,
                                 :client_secret => AppConfig.gg_drive.client_secret,
                                 :refresh_token => AppConfig.gg_drive.refresh_token,
                                 :scope => AppConfig.gg_drive.scope,
                                 :access_token => Token.cache_access_token_google_drive
                                 },
     :styles => {
       :medium => {
         :geometry => "640x480",
         :format => 'mp4'
       },
       :thumb => { :geometry => "160x120", :format => 'jpeg', :time => 10}
     },# hello 123
     :processors => [:transcoder],
     :google_drive_options => {
       :path => proc { |style| "#{style}_#{id}_#{image.original_filename}" },
       :public_folder_id => '0B0VNyOkzIwUZZFFGeVhycFk0dnc'
     }
    end

    in Gemfile

    gem 'google-api-client'
    gem 'paperclip'
    gem 'paperclip-googledrive'
    gem 'paperclip-av-transcoder'
    gem "paperclip-ffmpeg"

    in controller

    def create
       if params[:videos]
         params[:videos].each { |video| Video.create(video: video) }
       end
    end

    when i run , this display error

    [AV] Running command : if command -v avprobe 2>/dev/null ; then echo "true" ; else echo "false" ; fi
    [AV] Running command : if command -v ffmpeg 2>/dev/null ; then echo "true" ; else echo "false" ; fi
    Av::UnableToDetect in AlbumsController#create
    Unable to detect any supported library

    pls. how to fix this errors

  • Trying to get property of non-object while uploading to database

    26 novembre 2017, par Programmmereg

    I have a script when user can clip video, then that video uploads to public folder, and now I want to upload all video data to database. But i get error like in title. Here’s my code :

    Controller :

    public function clip($id)
       {
           $video = Video::where('id', $id)->first();

           $oldId = $video->id;
           $originalName = $video->original_name;
           $newName = str_random(50) . '.' . 'mp4';

           FFMpeg::fromDisk('public')
           ->open('/uploads/videos/' .$video->file_name)
           ->addFilter(function ($filters) {
           $filters->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(5), FFMpeg\Coordinate\TimeCode::fromSeconds(2));
           })
           ->export()
           ->toDisk('public')
           ->inFormat(new \FFMpeg\Format\Video\X264)
           ->save('/uploads/videos/' . $newName);



           $data = ['user_id'=>Auth::user()->id,
               'file_name'=>$newName,
               'original_name'=> $originalName,
               'old_id' => $oldId,
           ];

            $video = Video::edit($data);
       }

    Model :

    public static function edit($request)
       {
           $video = new Video;
           $video->user_id = $request->user_id;
           $video->file_name = $request->file_name;
           $video->original_name = $request->original_name;
           $video->save();

           $old = $file = Video::where('id', $request->old_id)->delete();
           //$old_file = unlink($request->file('file'));

           return $video;
       }

    What should I edit ?