Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (28)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Les images

    15 mai 2013

Sur d’autres sites (1646)

  • How to host a react.js ssr on vercel ?

    2 janvier 2024, par UltimateSheepConfusedAtCode

    I want to host a react.js server side rendering because of ffmpeg killing me with SharedArrayBuffer is not defined

    


    I've tried so many hosting service provider like firebase but now I want to host it to Vercel but I don't know how to make it works with react ssr. Can anyone help me ?

    


    When I run 'ssr' command in my machine it's work and ffmpeg is not throwing 'bad memory' or 'SharedArrayBuffer is not defined' but when I run it in vercel build command it stucks but the index.js/server.js is running I know because the main script is running and won't stop so the build is stuck but any solution ? I've search the problem but I guess nobody haven't asked this yet

    


    A picture of directory

    


    and this a code of package.json

    


    {
  "name": "ultimatesheep-vidreverse",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@babel/preset-env": "^7.18.10",
    "@babel/preset-react": "^7.18.6",
    "@babel/register": "^7.18.9",
    "@ffmpeg/core": "^0.11.0",
    "@ffmpeg/ffmpeg": "^0.11.0",
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.3.0",
    "@testing-library/user-event": "^13.5.0",
    "bootstrap": "^5.2.0",
    "cors": "^2.8.5",
    "ignore-styles": "^5.0.1",
    "react": "^18.2.0",
    "react-bootstrap": "^2.5.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "uuid": "^8.3.2",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "ssr": "npm run build && node backend/index.js",
    "deploy": "npm run build && firebase deploy",
    "git" : "git add . && git commit -m 'ahawdaw' && git push -u origin main"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "externals": {
    "react": "React"
  },
  "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
  "main": "backend/index.js",
  "keywords": [],
  "author": "",
  "license": "ISC"
}


    


    my vercel settings

    


  • Hide ffmpeg's console window when running YoutubeDL in GUI application

    27 février 2021, par Božo Stojković

    I'm developing a basic application which can download YouTube videos. Throughout the development, I had several quirks, including issues with formats.

    



    I decided to use a hopefully foolproof format syntax that youtube-dl will happily download for me in almost any case.

    



    Part of my YoutubeDL options look like this :

    



    self.ydl_opts = {
    'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
    'quiet': True,
    'progress_hooks': [self.ydl_progress],
    'outtmpl': None
}


    



    The outtmpl is inserted later on when output folder is chosen by the user.

    



    Since I'm using this format string, youtube-dl uses ffmpeg to merge(?) the audio and video if they are downloaded separately.

    



    When it does that, it opens very annoying console windows that capture the focus and interrupt other things I might be doing while the videos are downloading.

    



    My question is, how can I prevent ffmpeg or youtube-dl from creating those console windows from appearing, aka. how can I hide them ?

    



    EDIT :

    



    I'll provide bare bones script that reproduces the problem :

    



    from __future__ import unicode_literals
from PyQt4 import QtGui, QtCore
import youtube_dl, sys

def on_progress(info):
    print info.get("_percent_str", "Finished")

ydl_opts = {
    'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
    'progress_hooks': [on_progress],
    'quiet': True,
    'outtmpl': "C:/Users/Raketa/Desktop/%(title)s.%(ext)s"
}

ydl = youtube_dl.YoutubeDL(ydl_opts)

class DownloadThread(QtCore.QThread):
    def __init__(self):
        super(DownloadThread, self).__init__()
        self.start()

    def __del__(self):
        self.wait()

    def run(self):
        print "Download start"
        ydl.download(["https://www.youtube.com/watch?v=uy7BiiOI_No"])
        print "Download end"

class Application(QtGui.QMainWindow):
    def __init__(self):
        super(Application, self).__init__()
        self.dl_thread = DownloadThread()

    def run(self):
        self.show()

def main():
    master = QtGui.QApplication(sys.argv)

    app = Application()
    app.run()

    sys.exit(master.exec_())

if __name__ == '__main__':
    main()


    



    2(?) consoles appear at start of each download and 1 longer lasting console appears when both video and audio are downloaded. When downloading longer videos, the last console becomes unbearable.

    



    Is it possible to get rid of those ?

    


  • Hide ffmpeg's console window when running YoutubeDL in GUI application

    23 juin 2016, par Slayther

    I’m developing a basic application which can download YouTube videos. Throughout the development, I had several quirks, including issues with formats.

    I decided to use a hopefully foolproof format syntax that youtube-dl will happily download for me in almost any case.

    Part of my YoutubeDL options look like this :

    self.ydl_opts = {
       'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
       'quiet': True,
       'progress_hooks': [self.ydl_progress],
       'outtmpl': None
    }

    The outtmpl is inserted later on when output folder is chosen by the user.

    Since I’m using this format string, youtube-dl uses ffmpeg to merge(?) the audio and video if they are downloaded separately.

    When it does that, it opens very annoying console windows that capture the focus and interrupt other things I might be doing while the videos are downloading.

    My question is, how can I prevent ffmpeg or youtube-dl from creating those console windows from appearing, aka. how can I hide them ?

    EDIT :

    I’ll provide bare bones script that reproduces the problem :

    from __future__ import unicode_literals
    from PyQt4 import QtGui, QtCore
    import youtube_dl, sys

    def on_progress(info):
       print info.get("_percent_str", "Finished")

    ydl_opts = {
       'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
       'progress_hooks': [on_progress],
       'quiet': True,
       'outtmpl': "C:/Users/Raketa/Desktop/%(title)s.%(ext)s"
    }

    ydl = youtube_dl.YoutubeDL(ydl_opts)

    class DownloadThread(QtCore.QThread):
       def __init__(self):
           super(DownloadThread, self).__init__()
           self.start()

       def __del__(self):
           self.wait()

       def run(self):
           print "Download start"
           ydl.download(["https://www.youtube.com/watch?v=uy7BiiOI_No"])
           print "Download end"

    class Application(QtGui.QMainWindow):
       def __init__(self):
           super(Application, self).__init__()
           self.dl_thread = DownloadThread()

       def run(self):
           self.show()

    def main():
       master = QtGui.QApplication(sys.argv)

       app = Application()
       app.run()

       sys.exit(master.exec_())

    if __name__ == '__main__':
       main()

    2(?) consoles appear at start of each download and 1 longer lasting console appears when both video and audio are downloaded. When downloading longer videos, the last console becomes unbearable.

    Is it possible to get rid of those ?