Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (93)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (2733)

  • Php and mysql Video upload Using ffmpeg

    13 juillet 2014, par EcoWebtr

    Hello friends i am trying to make a video upload script but I just want to ask a question.How will the integration of ffmpeg ?I asked my server provider. They said FFmpeg is in working condition.
    I want to give a just an example in my code.

    <?php


    if(isset($_POST['submit']))
    {
    $tmp = $_FILES['file']['tmp_name'];
    $name = $_FILES['file']['name'];
    $ext = pathinfo($name, PATHINFO_EXTENSION);
    $name = alphaID(microtime(true) * 10000);

    move_uploaded_file($temp,"uploaded/".$name.'.'.$ext);

       mysql_query("INSERT INTO `video` VALUE ('','$name','$ext')");
    }

    ?>

    My video was uploaded successfully. Where and how can i add Ffmpeg code ?

  • How to use the video datastreaming I get from nginx server ?

    31 janvier, par Jennie Tsai

    I have three nodes in my network :
dataServer --- node1 --- node2.
My video data "friends.mp4" is saved on dataServer. I started both dataServer and node2 as rtmp-nginx servers. I use ffmpeg on node1 to pull datastreaming on dataServerand and push the converted datastreaming to the application "live" on node2.
Here's my configuration of nginx.conf for node2.

    


    worker_processes  1;
events {
    worker_connections  1024;
}

rtmp {
    server {

    listen 1935;

    chunk_size 4000;

application play {
        play /usr/local/nginx/html/play;
    }

application hls {
        live on;
        hls on;
        hls_path /usr/local/nginx/html/hls;
    hls_fragment 1s;
    hls_playlist_length 4s;
    }

application live  
    {
        live on; 
    allow play all;
    }
}
}


    


    I want to run this python code to recognize the faces in friends.mp4 :

    


    import cv2

vid_capture=cv2.VideoCapture("rtmp://127.0.0.1:1935/live")
face_detect = cv2.CascadeClassifier('./haarcascade_frontalface_default.xml')
if (vid_capture.isOpened() == False):
    print("Error opening the video file")
else:
    fps = vid_capture.get(5)
    print("Frames per second : ", fps,'FPS')
    frame_count = vid_capture.get(7)
    print('Frame count : ', frame_count)

while(vid_capture.isOpened()):
    ret, frame = vid_capture.read()
    if ret == True:
        gray = cv2.cvtColor(frame, code=cv2.COLOR_BGR2GRAY)
        face_zone = face_detect.detectMultiScale(gray, scaleFactor=1.1, minNeighbors=3)
        for x, y, w, h in face_zone:
            cv2.rectangle(frame, pt1 = (x, y), pt2 = (x+w, y+h), color = [0,0,255], thickness=2)
            cv2.circle(frame, center = (x + w//2, y + h//2), radius = w//2, color = [0,255,0], thickness = 2)
        cv2.imshow('Frame', frame)
        key = cv2.waitKey(50)
        if key == ord('q'):
            break
    else:
        break
vid_capture.release()
cv2.destoryAllWindows()


    


    But I can't do it because cv2.VideoCapture can not get the data streaming from rtmp://127.0.0.1:1935/live. Maybe it is because this path is not a file. How can I get the video streaming received by the nginx server and put it to my openCV model ? Is there a way that I just access the dataStreaming received by the nginx server and make it a python object that openCV can use ?

    


  • Files corrupted using ffmpeg, the process is not completed

    5 mai 2022, par medinaracing

    I transcoding .mxf files to .mp4, my process works good for files when the duration is less 35 minutes, but when the video file has a longer duration the transcoding is not completed. This is my command according to my preset :

    


    ffmpeg -i input_file.mxf -y -map 0:0 -map 0:2 -c:v libx264 -threads 12 -bf 32 -flags 4 -preset fast -b:v 7000k -minrate 7000k -maxrate 7000k -bufsize 7000k -s 1280x720 -aspect 1.7777 -pass 8 -b:a 128k -q:v 16 -strict -2 -acodec:0 aac -metadata:s:a:0 language=spa /media/nas/output_file.mp4


    


    I using the ffmpeg version 4.2.4 in Ubuntu Server 20.04, any suggestion ? Thank a lot for your help friends.