Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (62)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7784)

  • Powershell script for youtube-dl

    29 mai 2022, par Ricardo

    I'm trying to write a script to simplify input of variables to youtube-dl.

    


    Here is my ffmpeg command (replace items in brackets) :

    


    ./ffmpeg -ss ['starting time', ex: 05:49] -i $(./youtube-dl -f 22 --get-url ['video youtube url']) -t ['clip duration in seconds'] -c:v copy -c:a copy ['file result name'].mp4


    


    Here is my PowerShell command :

    


    cls

$url = Read-Host -Prompt "Enter the Youtube Video URL"

$start = Read-Host -Prompt "Enter the video start time (H:MM:SS)"

$end = Read-Host -Prompt "Enter the clip duration in seconds"

$name = Read-Host -Prompt "Enter the video name"

./ffmpeg -ss $start -i $(./youtube-dl -f 22 --get-url $url) -t $end -c:v copy -c:a copy $name.mp4



    


    And this is the result I receive from Powershell :

    


    Powershell screenshot

    


  • extract audio with youtube-dl on windows

    12 mars 2017, par FlyingNimbus

    I want to extract audio from a video downloaded with youtube-dl on windows. I got youtube-dl working, but am unable to extract the audio. This problem is caused due to not having the correct audio codes installed. When i try to extract audio it tells me the following :

    WARNING : unable to obtain file audio codes with ffprobe

    youtube-dl man sais the following :
    - x -extract-audio convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)

    How do I install ffprobe or ffmpeg ? Do I install this on windows, or do I install this as a python extension ? I have no idea, can someone point me in the right direction ?

    OS : windows 7

  • Pipe OpenCV and PyAudio to ffmpeg streaming youtube rtmp from python

    22 août 2021, par a0910115172

    How can I pipe openCV and PyAudio to ffmpeg streaming youtube rtmp from python.
The error message shows as following :
No such filter : 'pipe:1'
pipe:1 : Invalid argument

    


    Here is my code :

    


    Import module

    


    import cv2
import subprocess
import pyaudio


    


    Audio

    


    p = pyaudio.PyAudio()
info = p.get_host_api_info_by_index(0)
numdevices = info.get('deviceCount')
for i in range(0, numdevices):
        if (p.get_device_info_by_host_api_device_index(0, i).get('maxInputChannels')) > 0:
            print("Input Device id ", i, " - ", p.get_device_info_by_host_api_device_index(0, i).get('name'))

CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100

stream = p.open(format=FORMAT,
                channels=CHANNELS,
                rate=RATE,
                input=True,
                frames_per_buffer=CHUNK)

# Stream Audio data here
# data = stream.read(CHUNK)


    


    Video

    


    rtmp = r'rtmp://a.rtmp.youtube.com/live2/key'

cap = cv2.VideoCapture(0)
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
fps = 30



    


    command param here

    


    command = ['ffmpeg',
           '-y',
           '-f', 'rawvideo',
           '-pixel_format', 'bgr24',
           '-video_size', "{}x{}".format(width, height),
           '-framerate', str(fps),
           '-i', 'pipe:0',
           '-re',
           '-f', 'lavfi',
           '-i', 'pipe:1',
           '-c:v', 'libx264',
           '-c:a', 'aac',
           '-vf', 'format=yuv420p',
           '-f', 'flv',
           rtmp]


    


    Create subprocess to ffmpeg command

    


    pipe = subprocess.Popen(command, shell=False, stdin=subprocess.PIPE
)
while cap.isOpened():
    success, frame = cap.read()
    if success:
        if cv2.waitKey(1) & 0xFF == ord('q'):
            break
        pipe.stdin.write(frame.tostring())
        pipe.stdin.write(stream.read(CHUNK))


    


    Audio Stop

    


    stream.stop_stream()
stream.close()
p.terminate()


    


    Video Stop

    


    cap.release()
pipe.terminate()


    


    Thanks