Recherche avancée

Médias (0)

Mot : - Tags -/latitude

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

Autres articles (11)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

Sur d’autres sites (3599)

  • Facebook Graph API - Getting error 2207026 when trying to upload video

    22 novembre 2022, par NiVeK92

    I try to upload a video via the graph API but as the title states, I get an error that states that I use an unsupported video format.

    


    I thought maybe the original video file doesn't match the video specifications as defined on https://developers.facebook.com/docs/instagram-api/reference/ig-user/media#video-specifications so I wrote a function to convert the file to match the specification, using ffmpeg with the following command (I tried many different ones, but this is the last one I tried)

    


    ffmpeg -i ${tmpInFile} -vf format=yuv420p -vf scale=-2:720 -pix_fmt yuv420p -r 30 -movflags +faststart -c:v libx264 -b:v 3M -c:a aac -b:a 128k -ac 2 -ar 44100 -shortest -f mp4 ${tmpOutFile}

    


    Unfortunately, the error persists.

    


    Here's the complete process :

    


    First I use await fetch('/api/convert-mp4', { method: 'POST', body: file }); to send the uploaded video file to the backend.

    


    Next I get the blob data from the request with const blob = await request.blob();.

    


    Then I create a temporary file with await fs.writeFile(tmpInFile, await blob.stream()).

    


    Then I call ffmpeg with the above command mentioned above and then read the file with const buffer = await fs.readFile(tmpOutFile);.

    


    Then I send the buffer as response body back to the client with return {status: 200,body: buffer}.

    


    Then I get the blob data from the response with const blob = await convertVideoResponse.blob();.

    


    Finally I convert it back into a file object with
const convertedFile = new File([blob], file.name, { type: 'video/mp4' });

    


    This file I upload to Supabase Storage (https://supabase.com/storage), and get a publicly accessible url (which I confirmed by opening it in an incognito tab).

    


    In the supabase dashboard I can see the video file has the correct media container (video/mp4) and the file size is small enough.

    


    Does anyone have an idea what could be the issue ?

    


    Edit :

    


    By changing the ffmpeg command to use h265 instead of h254 ffmpeg -i ${tmpInFile} -vf format=yuv420p -vf scale=-2:1350 -pix_fmt yuv420p -r 30 -movflags +faststart -c:v libx265 -vtag hvc1 -an -x265-params crf=25 -b:v 3M -c:a copy -c:a aac -b:a 128k -ac 2 -ar 44100 -shortest -f mp4 ${tmpOutFile} I managed to get it to work for some videos but not all, which confuses me, as I assumed that the video attributes should be the same for all videos processed by the same command.

    


  • ffmpeg, we reported the error of av_interleaved_write_frame() : End of fileB Error writing trailer of rtmps ://live-api-s.facebook.com:443/rtmp/*

    21 octobre 2022, par yong zhang

    We want to implement such a small function, using webrtc technology on the web side to push the stream to the webrtc service of SRS, and then push the rtmp stream of SRS to the go live of facebook through ffmpeg to push the live broadcast. But we encountered a problem. When we forwarded and pushed the stream with ffmpeg, we reported the error of av_interleaved_write_frame() : End of fileB Error writing trailer of rtmps ://live-api-s.facebook.com:443/rtmp/. Please help and guide the heroes to see where the problem may occur.
The command we executed is : ./ffmpeg -threads 2 -thread_queue_size 9512 -re -i "rtmp ://xxx.xxx.xxx:1935/live/" -max_muxing_queue_size 1024 -force_key_frames "expr:gte (t,n_forced2)" -vf crop=in_w:in_w9/16,scale=1280:720 -reorder_queue_size 4000 -max_delay 10000000 -c:v libx264 -preset veryfast -b:v 3000k -maxrate 1500k -bufsize 4000k -g 50 -c:a aac -ac 2 -ar 48000 -f flv -r 30 -flvflags no_duration_filesize "rtmps ://live-api-s.facebook.com:443/rtmp/"
The ffmpeg version is : 4.13 and above all the same error.
SRS version : 5.56

    


  • How to convert a video to be compatible with facebook graph (reel) api

    25 mai 2023, par Micha

    I am currently trying to get this api to work : create user media

    


    Everything works if I try to post photos. But as soon as I try to post a reel I always get the same error :

    


    {&#xA;  "error": {&#xA;    "message": "The video file you selected is in a format that we don&#x27;t support.",&#xA;    "type": "OAuthException",&#xA;    "code": 352,&#xA;    "error_subcode": 2207026,&#xA;    "is_transient": false,&#xA;    "error_user_title": "Unsupported format",&#xA;    "error_user_msg": "The video format is not supported. Please check spec for supported streams format",&#xA;   "fbtrace_id": "<removed>"&#xA;  }&#xA;} &#xA;</removed>

    &#xA;

    So I look into the reel specifications here : reel specification

    &#xA;

    Try as I might, I cannot get it to work. I work with technical google searches all day long, yet this time I seem to be looking in a completely wrong direction.

    &#xA;

    I have tried converters like Any Video Converter.

    &#xA;

    I have tried ffmpeg with the following command : ffmpeg -i input.mp4 -c:v libx264 -aspect 16:9 -crf 18 -vf "scale=iw*min(1280/iw\,720/ih):ih*min(1280/iw\,720/ih),pad=1280:720:(1280-iw)/2:(720-ih)/2" -fpsmax 60 -preset ultrafast -c:a aac -b:a 128k -ac 1 -pix_fmt yuv420p -movflags &#x2B;faststart -t 59 -y output.mp4

    &#xA;

    If there is a solution with ffmpeg I would appreciate it as I could automate much of the process. But if you know of any converter software I would gladly take that as well.

    &#xA;

    I think the main problem is the container requirement MPEG-4 Part 14. I can't seem to find any software that is able to produce a video with the required format. The closest I have gotten is MPEG-4 Part 10 but that doesn't work with the api.

    &#xA;

    Any help would be greatly appreciated.

    &#xA;