Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (111)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (9801)

  • discord.py FFMPEG Option reconnect not found

    19 avril 2021, par Lukelele

    I'm working on a music bot using discord.py, I've looked online and found that I needed to pass in ffmpeg options into discord.FFmpegPCMAudio() for the bot to not stop half way through the song. However it returns an error "Option reconnect not found."

    


    vc = await ctx.message.author.voice.channel.connect()

ydl_opts = {
    'format': 'bestaudio/best',
    'outtmpl': 'C:/Luke/YoutubeDLAudio/audio.mp3',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'mp3',
        'preferredquality': '192'
    }],
    'prefer_ffmpeg': True,
    'keepvideo': True
}

ffmpeg_opts = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5','options': '-vn'}   # <---------------

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.download([url])

vc.play(discord.FFmpegPCMAudio(executable="C:/Luke/ffmpeg/bin/ffmpeg.exe", source="C:/Luke/YoutubeDLAudio/audio.mp3", **ffmpeg_opts))    <--------------


    


    Does anyone know the problem ? Thanks for any help.

    


  • Flutter ffmpeg can't get width and height

    26 août 2022, par user31929

    I'm trying to retrive some info like duration,width and height from videos i pick from the phone gallery. I'm using :

    


     flutter_ffmpeg: ^0.4.2


    


    this is the code i use :

    


    Future getVideoInfo(String VideoPath) async {
    bool errorResult = false;
    FlutterFFprobe fFprobe = FlutterFFprobe();
    String? duration = "0";
    String? width = "0";
    String? height = "0";
    await fFprobe.getMediaInformation(VideoPath).then((info) {
      duration = info.getAllProperties()['duration'].toString();
      width = info.getAllProperties()['width'].toString();
      height = info.getAllProperties()['height'].toString();
    }, onError: (value) {
      errorResult = true;
    }).catchError((error) {
      errorResult = true;
    });

    if (errorResult == true) {
      Map resultmap = {"width": "0", "height": "0", "duration": "0"};
      return resultmap;
    }
    Map resultmap = {"width": width, "height": height, "duration": duration};
    return resultmap;
  }


    


    According to documentation https://pub.dev/packages/flutter_ffmpeg i'm trying to retrive elements in that way :

    


    info.getAllProperties()['width'].toString();


    


    but i can retrive only duration, width and eight are always null. Values are in the getAllProperties dictionary because i can see "width=1920 and height=824" using the Vscode debugger.
There is only a difference beetween those voices and "duration" , they are grayed out by the Vscode debugger insted of duration that is "red".
Anyway, why i can't access width and eight even if they seems to be accessible ?

    


  • Converting Videos In the Background ROR 3

    2 octobre 2012, par DragonFire353

    I've searched around on google and have come up with only one site that explains how to do this : http://railsonedge.blogspot.com/2009/01/flash-video-tutorial-with-rails-ffmpeg.html?m=0 I'm already using paperclip and already have everything set up with it and like using it better than the way this site is doing it. Is there a way to convert videos in the background while keeping track of the state of it using paperclip ? My Video.rb currently :

    class Video < ActiveRecord::Base
     belongs_to :user
     has_many :comments, dependent: :destroy
     attr_accessible :video, :user_id, :video_file_name, :title, :public, :description, :views

     has_attached_file :video, :styles => {
       :video => { geometry: "800x480>", format: 'webm' },
       :thumb => { geometry: "200x200>", format: 'png', time: 3 },
     }, processors: [:ffmpeg], url: "/users/:user_id/videos/:id/:basename_:style.:extension"

     #process_in_background :video #causes death

     validates :video, presence: true
     validates :description, presence: true, length: { minimum: 5, maximum: 100}
     validates :title, presence: true, length: { minimum: 1, maximum: 15 }

     validates_attachment_size :video, less_than: 1.gigabytes
     validates_attachment :video, presence: true

     default_scope order: 'created_at DESC'

     Paperclip.interpolates :user_id do |attachment, style|attachment.instance.user_id
     end

     def self.search(search)
       if search
         find(:all, conditions: ["public = 't' AND title LIKE ?", "%#{search}%"], order: "created_at DESC")
       else
         find(:all, conditions: ["public = 't'"], order: "created_at DESC")
       end
     end

     def self.admin_search(search)
       if search
         find(:all, conditions: ['title LIKE ?', "%#{search}%"], order: "created_at DESC")
       else
         find(:all, order: "created_at DESC")
       end
     end

    end