Recherche avancée

Médias (91)

Autres articles (51)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (6855)

  • PyInstaller has strange interaction with YT_DLP

    12 janvier 2023, par MDorcelian

    this is for debugging - it's so I can get some test variables when im not passing a json as an argument.

    


    try: 
    data_string = sys.argv[1]

    # Convert the string back into an object
    data = json.loads(data_string)

    URL = data['url']
    PATH = data['filePath'] + "/"

except:
    URL = "https://www.youtube.com/watch?v=o9oGBnXqCgU"
    PATH = "C:/Users/PC/Downloads/videos"



    


    this is the weird part.

    


    try:
  ydl_opts = {
            'outtmpl':PATH_VIDEO + '/%(title)s.%(ext)s',
            'noplaylist':True,
            'format': "bv*[height<=1080][ext=mp4]+ba[ext=m4a]/b[height<=1080][ext=mp4] / bv*+ba/b",
            'mergeoutputformat':'mp4',
            'restrictfilenames':True,
            'ignoreerrors': False,
            'verbose':True,
            
        }
        with yt_dlp.YoutubeDL(ydl_opts) as ydl:
            ydl.download(URL)

            info = ydl.extract_info(URL, download=False)
            final_path_os = ydl.prepare_filename(info)
    except yt_dlp.utils.DownloadError as e:
        setJsonData(str(e))


    


    when i download videos as a script with code runner, it downloads normally completely fine. After I compile it as an exe and click it, it downloads completely fine.

    


    but when i pass my json through it, it knows where to download, it knows what's downloading, but it ALWAYS leaves two seperate video and audio files that were supposed to be combined. i assume its FFMPEG but i've included FFMPEG with the exe of pyinstaller.

    


    pyinstaller  --add-data "ffmpeg.exe;." --add-data "ffmpeg.exe;." -F returnMessage.py 


    


    and i've put ffmpeg in the same folder just in case

    


    setJsonData() writes to a json i have but i don't know how to debug because IT NEVER WRITES AN ERROR THERE. my exe just keepes running in the background. i've spent a day on this and am so lost.

    


    I've tried Exception error as e, nothing. I can't check the console because the application that launches this runs it silently.

    


    I'm sure it's the ydl.download(URL) that's the problem because I've set it up to make a test_json before it and it worked. if i put it after, it doesn't.

    


    I've checked the os paths to see if anything was up, but it's downloading in the correct place, just not downloading fully.

    


    i've downloaded the ffmpeg that was compatible with yt_dlp as well.

    


  • From URL of Video GetThumbnail Using Nreco

    8 février 2016, par Muhammad Abid Fahad

    I working on a sharepoint project in which i have to upload the videos in the document library as videoset. after creating a video set i have have to upload the video and fetch the thumbnail from the video and upload it. video is uploaded succesfully using

    spfile = item.Folder.Files.Add(fuUpload.FileName, fuUpload.PostedFile.InputStream, true);

    I am using using Nreco to get thumbnail from the video. However my code works fine on local machine but its giving error "http://mysite/Download/abc/abc.mp4 : Server returned 401 Unauthorized (authorization failed) (exit code : 1)" when i am using my application from other pc browsers.

    ffMpeg.GetVideoThumbnail(videoPath, ms, 10) ; the error line.

    here is the code i am using

    private MemoryStream SaveThumbnail(string videoPath)
       {
           MemoryStream ms;
           try
           {
               videoPath = "http://mysitehttp/Download/abc/abc.mp4"
               ms = new MemoryStream();
               SPSecurity.RunWithElevatedPrivileges(delegate() {

                   var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
                   ffMpeg.GetVideoThumbnail(videoPath, ms, 10);
               });


           }
           catch(Exception ex)
           {
               throw ex;
           }

           return ms;
       }
  • PHP - Get MP4 location from video URL or Video Embeded [on hold]

    28 décembre 2016, par toufik hidayat

    -2
    down vote
    favorite

    I am trying to fetch FREE video anime from acefile

    I have this link for example : http://acefile.net/embed-r9e9vomk8oc8-650x360.html

    What I want to do is to fetch where the mp4 is located and embed it in one of my website pages.

    I have a Chrome plugin that is able to download MP4 videos just by looking at the source page.

    Is there a way to achieve the same with PHP or Python ? Remember I only need the video location not to download it.

    Thanks all