Recherche avancée

Médias (91)

Autres articles (30)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4423)

  • using ffmpeg from macOS terminal for uploading youtube short from android just do nothing

    25 juin 2023, par Yogi Arif Widodo

    my component / recording is using blachole plugin on macOS.

    


    engine : 13" Macbook Pro M1 ( macOS 13.2 / Ventura )

    


    step to reproduce

    


      

    1. my output is screenRecordingAudio ( this name is custom name ).
    2. 


    


    // screenRecordingAudio in audioMidi : 
BlackHole 16ch [mark as checked on use]
External Headphones [mark as checked on use]


    


    


    screenRecordingAudio is using on by click on right top of bar UI, click sound, click screenRecordingAudio.

    


    


    OR

    


    


    screenRecordingAudio is using on Settings ➡️ Sounds ➡️ Output ➡️ then choose screenRecordingAudio

    


    


      

    1. my input is quickTimeInput ( this name is custom name ).
    2. 


    


    // quickTimeInput in audioMidi : 
BlackHole 16ch [mark as checked on use]


    


      

    1. then using + shift + 5 , on option i use quickTimeInput
    2. 


    3. i use these command to convert into mp4 and also purpose to get more small size video
    4. 


    


    #!/bin/bash

# greet the user
function yoVideo() {
  ffmpeg -i $1.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart $1.mp4
}


    


    OR

    


    ffmpeg -i yogiarifwidodo.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart yogiarifwidodo.mp4


    


      

    1. then i move the video into my phone android.
    2. 


    3. then when i tried to upload on youtube as short, its cannot be process to upload ( its just do nothing ) but when i upload on facebook reels its work also on instagram story its still working also for whatsapp story.
    4. 


    


    when i didnt convert into mp4 its also happend and in any other case for example whatsapp story , its lagging to review video before upload . its happend to on instagram .
but when i force upload , the result video is good and smooth . then i re download my video its still best video and when try to upload my download video , there is no lagging in any condition.

    


    how to get ffmpeg perform into mp4 and also no lagging on editing while uploading at whatsapp story or instagram story or facebook , etc ?
by the way i dont know command ffmpeg , the code is copied from stackoverflow and i forgot where is it.

    


  • FFMPEG unable to stream videos frame by frame to RTMP Youtube Live stream using Python

    1er octobre 2024, par YadneshD

    I need to open a locally stored video, process it frame by frame and send it to YouTube live RTMP stream. I am able to do it using FFMPEG in command line terminal but unable to do it using Python. In Python on console, it shows stream is properly sent but on YouTube Live control room it shows no data. I tried all other tools like Vidgear, Gstreamer etc. But most of them use FFMPEG backend and it does not work.

    


    Here is my command to directly send video from .mp4 source file that works properly on terminal and video is streamed on YouTube Live control room -

    


    ffmpeg -re -i "video.mp4" -c:v libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -c:a aac -b:a 128k -f flv rtmp://a.rtmp.youtube.com/live2/youtube-key

    


    My Python program which reads and send video frame by frame shows everything is fine on console but YouTube shows No Data -

    


    import cv2
import subprocess

# Path to your video file
video_path = "video.mp4"

# FFmpeg command to stream to YouTube
rtmp_url = "rtmp://a.rtmp.youtube.com/live2/youtube-key"
ffmpeg_command = [
    'ffmpeg',
    '-y',  # Overwrite output files without asking
    '-f', 'rawvideo',
    '-pixel_format', 'bgr24',
    '-video_size', '1280x720',  # Change according to your video resolution
    '-framerate', '30',  # Frame rate
    '-i', '-',  # Input from stdin
    '-c:v', 'libx264',
    '-preset', 'veryfast',
    '-maxrate', '3000k',
    '-bufsize', '6000k',
    '-pix_fmt', 'yuv420p',
    '-f', 'flv',
    rtmp_url
]

# Start FFmpeg process
ffmpeg_process = subprocess.Popen(ffmpeg_command, stdin=subprocess.PIPE)

# Open video with OpenCV
cap = cv2.VideoCapture(video_path)

if not cap.isOpened():
    print("Error: Could not open video.")
    exit()

while True:
    ret, frame = cap.read()
    if not ret:
        break  # End of video

    # Write the frame to FFmpeg's stdin
    ffmpeg_process.stdin.write(frame.tobytes())

# Cleanup
cap.release()
ffmpeg_process.stdin.close()
ffmpeg_process.wait()


    


    Console output -

    


    console output

    


    FFMPEG Build info -

    


    FFMPEG build info

    


    I tried in Linux and Windows both and got same results. In the python program, I am not processing frames now but in future I will do it. I just want to stream video frame by frame as of now so that I can do the processing in future. Please help !!!

    


  • How to use python-ffmpeg to stream to platforms like youtube, twtich ? [closed]

    16 mars 2023, par wraient

    I have been using ffmpeg from terminal to stream to twitch for a project. But I have to move it to python I found this python-ffmpeg module but could not find any good documentation. How do I convert this terminal ffmpeg command into python-ffmpeg command ?

    


    "ffmpeg -re -i ./anime/aots8e1.mkv  -c:v libx264 -preset veryfast -b:v 6000k -maxrate 6000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv rtmp://live-ber.twitch.tv/app/"+streamkey


    


    If there are other better alternative to use ffmpeg and python together, please recommend.