Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (60)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9364)

  • How can I download videos from reddit using praw

    9 octobre 2023, par rabbibillclinton

    So I want to download videos from reddit, I've seen projects on github but I'm very new to python and don't know how it works, if someone could explain I'd appreciate it, I found this project It works but it seperates audio and video and I want it all in one, I think you can combine those using ffmpeg but I don't know how that works either, also how do I configure some of this stuff like where the videos save and quality, here's my code.

    


    from redvid import Downloader
import praw

reddit = praw.Reddit(client_id = "a", client_secret = "b", user_agent = "c")

subreddit = reddit.subreddit("learnpython")
hot = subreddit.hot(limit=5)

downloader = Downloader(max_q=True)

for submission in hot:
    downloader.url = submission.url
    reddit.download()


    


  • Raising and Rescuing Custom Exception

    24 décembre 2013, par cmw

    I'm using Rails 3 with Carrierwave and FFMPEG to handle video uploads and encoding.

    In my uploader, I'm using FFMPEG to grab the duration of the video from cache before storing it.

    I'd like to raise a custom exception if the video's duration exceeds a specific length and then route the user accordingly. I've spent quite a bit of time trying to figure out how to create, raise and rescue my own custom exceptions in Rails – but, I've had no luck.

    Some posts I've used to try to piece this together include this stack overflow post and this article on customized exception handling in Rails 3. I've had no luck yet.

    I'm hoping someone can offer guidance on the proper approach to this. My mind is blown.

    Below is what my uploader looks like :

    class VideoUploader < CarrierWave::Uploader::Base

     before :store, :ffmpeg

     # Set storage type
     storage :fog

     # Override the directory where uploaded files will be stored.
     def store_dir
       "#{model.class.to_s.underscore}/videos/#{model.id}"
     end

     # Add a white list of extensions which are allowed to be uploaded.
     def extension_white_list
       %w(mov avi mp4 mkv wmv mpg)
     end

     def full_cache_path
       "#{::Rails.root}/public/#{cache_dir}/#{cache_name}"
     end

     private

     def ffmpeg(*args)
       @model.video.cache_stored_file!
       movie = FFMPEG::Movie.new("#{model.video.full_cache_path}")
       if movie.duration > 600
         raise "my custom exception will go here one day"
       end
     end

    end
  • How to rename the .wav file which is going to download using the below program ?

    29 avril 2020, par Y V Sravan Kumar Reddy
    from __future__ import unicode_literals
import youtube_dl

ydl_opts = {
    'format': 'bestaudio/best',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'wav',
        'preferredquality': '192'
    }],
    'postprocessor_args': [
        '-ar', '16000'
    ],
    'prefer_ffmpeg': True,
    'keepvideo': True
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.download(['https://www.youtube.com/watch?v=JpjEwIceVIo'])


    




    



    Output :

    



    [youtube] JpjEwIceVIo: Downloading webpage
[download] Speech on Importance of Education in English for Higher Secondary students by Smile Please World-JpjEwIceVIo.webm has already been downloaded
[download] 100% of 1.69MiB
[ffmpeg] Destination: Speech on Importance of Education in English for Higher Secondary students by Smile Please World-JpjEwIceVIo.wav


    




    



    I want to change the filename to audio1.wav instead of Speech on Importance of Education in English for Higher Secondary students by Smile Please World-JpjEwIceVIo.wav. Please help me with this problem.