Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (111)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (7135)

  • When I was try to use ffmpeg to convert video file extension, SharedArrayBuffer has troubles

    26 mai 2022, par DAN

    I want to convert video extension to .mp4 by using ffmpeg.

    


    At first, I wrote code like this.

    


    import{ createFFmpeg, fetchFile, } from '@ffmpeg/ffmpeg'

export default {
    setup() {
        const ffmpeg = createFFmpeg({ log: true, })
        const previewVideo = async (event) => {
            const file = event.target.files[0]

            if (file.size > 1024*1024*200) {
                alert("100MB 이하의 동영상만 등록할 수 있습니다.\n\n" + "현재 파일 용량" + (Math.round(file.size / (1024 * 1024))) + "MB")    
            } else {
                const previewVideo = document.getElementById("previewVideo")
                console.log('start')
                await ffmpeg.load()
                console.log('start transcoding')
                ffmpeg.FS('writeFile', 'test.mov', await fetchFile(file))
                await ffmpeg.run('-i', 'test.mov', 'test.mp4')
                console.log('complete transcoding')
                const data = ffmpeg.FS('readFile', 'test.mp4')
                const videoUrl = URL.createObjectURL(new Blob([data.buffer], { type: 'video/mp4'}))
                previewVideo.setAttribute("src", videoUrl)
                previewVideo.play()
            }
        }
    }
}


    


    But, when I inputed video file, below error occurred.

    


    Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined
    at 459bf020-690b-4964-b875-8028d2bcaf81:22:175
    at Object.load (createFFmpeg.js:64:20)
    at async Proxy.previewVideo (PostModal.vue:99:17)


    


    PostModal.vue:99:17 = await ffmpeg.load()

    


    So, I searched in google, finally I found one solution. And added below code in index.html body's bottom

    


    <code class="echappe-js">&lt;script&gt;&amp;#xA;  if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

    And I could resolve that error !! However, another error occurred like below.

    &#xA;

    Uncaught (in promise) Error: bad memory&#xA;    at 7d608d39-864a-4c63-930a-5ec5065337fe:23:1&#xA;    at Object.load (createFFmpeg.js:64:20)&#xA;    at async Proxy.previewVideo (PostModal.vue:99:17)&#xA;

    &#xA;

    I searched again. And then I found some people recommend to use coi-serviceworker.js&#xA;I added below code in index.html body's

    &#xA;

    <code class="echappe-js">&lt;script src='http://stackoverflow.com/feeds/tag/coi-serviceworker.js'&gt;&lt;/script&gt;&#xA;

    &#xA;

    And added file coi-serviceworker.js in my repo&#xA;file github link

    &#xA;

    However, another two errors were occurred again...

    &#xA;

    An SSL certificate error occurred when fetching the script.&#xA;&#xA;COOP/COEP Service Worker failed to register: DOMException: Failed to register a ServiceWorker for scope (&#x27;https://localhost:3000/&#x27;) with script (&#x27;https://localhost:3000/coi-serviceworker.js&#x27;): An SSL certificate error occurred when fetching the script.&#xA;

    &#xA;

    some solution recommended change Allow invalid certificates for resources loaded from localhost. to enable in chrome ://flags/#allow-insecure-localhost

    &#xA;

    But, still occurred same error. I'm stuck here since I didn't find another solution. Could you have any another solution ?

    &#xA;

  • I detected an error downloading a twitch tv stream. I use ffmpeg. That error stops the download, how can I fix it ? [closed]

    9 juin, par sort35ofn

    I wanted to perform a download via ffmpeg of a video streamed live on the Twitch tv platform. I have windows 10 and I use cmd to run ffmpeg.

    &#xA;

    The command I use to download the concert is :

    &#xA;

    ffmpeg.exe -i "m3u8-link" -c copy name.ts&#xA;

    &#xA;

    I once downloaded with yt-dlp, but noticed that the quality was noticeably lower, at least using the following command :&#xA;yt-dlp.exe -f (bestvideo+bestaudio/best) "amazon-channel-link"

    &#xA;

    That's why I prefer to download with ffmpeg. Normally I haven't had any problems with downloads. But this is already the third time (not continuously/consecutively) that I get this error. That error causes the download of the stream to terminate. It is not like in other occasions that sometimes a .ts fragment (of 3 seconds, for example) has already expired (and is not included in the download) but the download continues.

    &#xA;

    [https @ 000001edada180c0] Opening &#x27;https://sae12.playlist.ttvnw.net/v1/playlist/Cr4GlKuutNM7CxfM9Sq0mdUFxA8uA3F2oluPaJOmOPaBjmTkdiv4RxnkTtt_tEV8t2CyuH6D1E0HB3Erpbjq3mCfV5KqO4GfOMNOElmyYe2AKZcyQJHNeavrFfVBPB_pbDS5PYWTzUHoS0iTLfmn2cx-wHMHXa5MO-IdGPRixWDvezKNhOebWYscoIWvYwstshPSFvem1EN1UES7QfIDHSlBcZF3lGeVpg2yl05dhVwAX8YI9rnBtXYbwAUwcjEmPiqk_wm6oEX-2LRsw_05dznnVv6BbyYsLvyZu810xt9BNQU6rNCSzuoZhVx8gFxoyEdUt-VV3L_xj78-5CFibrvnO4uCafCZ5-wE_bEtUQeuHsLmm9Qf9Pj5BIGB2BHWm2LqlGTHcDG-8Z0u1-3_FB_h7fN7-uuyN-6-lreZYHDPviM8hKHFMU3zwNY29elgKRPgVMJ-4ysLWGuOPdwrylJpLFJSzsXhZaEE4p_4Zg6gfDuozYYttmPI2G1LErd5p1lT9DkQncFZibymap5Fiv-x21-jeNbrZo92PfW7lIo6NPdlnPWyoUTOb2KjgU9R0fm1UJt1kQJmQMVyDN2OHZ4t7dcAfyGMTwU26O7DdaYZhhv8mPMteBZcyjnLKH7e5AMtHUEVO2r9QIOiH0wDLNh-f9WS2kmRdJENBvl5mMGdyVHhBc9K9G5SuxBesi6F_9P_8agwpPo51m8ikJvSVJKduoIfVLSuto2SIe4DFI7hMxbplWfxBb1PNEoMWyeQd0iHUwDqQwVCFHq8OhGBp1EJtx1CNVtBhztLIqNXBbxR1Cdy8tx5rdJjq4EKlFKU3eh3_aRkhe7gulUKx2cZYNg4bGHpNBU1DP-std8xG1ckPdTpig-h_1okYPd7sXnynBFnhMHkVipsIJC4fkoT2MXHo3ItgMgTUBh1-oWD6qaD00VDM9TyDcCawJt-kI8-KnwlUkh7pq2cUv9ODqSjm5xcLoxPUxutCoZ9aKq9cnV0kqKPXxmLOekmgWK8G8MjFZ6Es5n46NeKREgQEBUTf2TZkUTOHZAiElyPy0ZdyOxFkdFZ06yqq8zUWG_dnhpgbrS1SueCOx5rGInRIdg94TIaDLMJTUvkLrqDdcS2jiABKgl1cy1lYXN0LTIwuAw.m3u8&#x27; for reading&#xA;[https @ 000001edad715600] HTTP error 500 Internal Server Errortrate=4480.2kbits/s speed=1.01x elapsed=0:17:30.76&#xA;[hls @ 000001edab89e500] keepalive request failed for &#x27;https://sae12.playlist.ttvnw.net/v1/playlist/Cr4GlKuutNM7CxfM9Sq0mdUFxA8uA3F2oluPaJOmOPaBjmTkdiv4RxnkTtt_tEV8t2CyuH6D1E0HB3Erpbjq3mCfV5KqO4GfOMNOElmyYe2AKZcyQJHNeavrFfVBPB_pbDS5PYWTzUHoS0iTLfmn2cx-wHMHXa5MO-IdGPRixWDvezKNhOebWYscoIWvYwstshPSFvem1EN1UES7QfIDHSlBcZF3lGeVpg2yl05dhVwAX8YI9rnBtXYbwAUwcjEmPiqk_wm6oEX-2LRsw_05dznnVv6BbyYsLvyZu810xt9BNQU6rNCSzuoZhVx8gFxoyEdUt-VV3L_xj78-5CFibrvnO4uCafCZ5-wE_bEtUQeuHsLmm9Qf9Pj5BIGB2BHWm2LqlGTHcDG-8Z0u1-3_FB_h7fN7-uuyN-6-lreZYHDPviM8hKHFMU3zwNY29elgKRPgVMJ-4ysLWGuOPdwrylJpLFJSzsXhZaEE4p_4Zg6gfDuozYYttmPI2G1LErd5p1lT9DkQncFZibymap5Fiv-x21-jeNbrZo92PfW7lIo6NPdlnPWyoUTOb2KjgU9R0fm1UJt1kQJmQMVyDN2OHZ4t7dcAfyGMTwU26O7DdaYZhhv8mPMteBZcyjnLKH7e5AMtHUEVO2r9QIOiH0wDLNh-f9WS2kmRdJENBvl5mMGdyVHhBc9K9G5SuxBesi6F_9P_8agwpPo51m8ikJvSVJKduoIfVLSuto2SIe4DFI7hMxbplWfxBb1PNEoMWyeQd0iHUwDqQwVCFHq8OhGBp1EJtx1CNVtBhztLIqNXBbxR1Cdy8tx5rdJjq4EKlFKU3eh3_aRkhe7gulUKx2cZYNg4bGHpNBU1DP-std8xG1ckPdTpig-h_1okYPd7sXnynBFnhMHkVipsIJC4fkoT2MXHo3ItgMgTUBh1-oWD6qaD00VDM9TyDcCawJt-kI8-KnwlUkh7pq2cUv9ODqSjm5xcLoxPUxutCoZ9aKq9cnV0kqKPXxmLOekmgWK8G8MjFZ6Es5n46NeKREgQEBUTf2TZkUTOHZAiElyPy0ZdyOxFkdFZ06yqq8zUWG_dnhpgbrS1SueCOx5rGInRIdg94TIaDLMJTUvkLrqDdcS2jiABKgl1cy1lYXN0LTIwuAw.m3u8&#x27; with error: &#x27;Server returned 5XX Server Error reply&#x27; when parsing playlist&#xA;[https @ 000001edad714900] HTTP error 500 Internal Server Errortrate=4480.2kbits/s speed=   1x elapsed=0:17:32.82&#xA;[hls @ 000001edab89e500] Failed to reload playlist 0&#xA;[https @ 000001edab8a4dc0] Opening &#x27;https://c513a515af41.chantenay.akamai.hls.ttvnw.net/v1/segment/CvUCxQ8TAK7dXfVU_OB77Tl0jy4jVuXiNgXG_97z6zGC4vXLrJNkgegJgVTcnrjyxZuL37UAeKJ9nhR48Yq2YRy_r8EnJ3PyAX407Gj21HDw3AG1KFXL-Z1ysn7DFTvOb434uA_farXGB276wYH-n0dFr7TzD7G2sCLcYSZeyadGEwJbq3wvb7AglP8UEU0JxwZRVKWx0zX9Vd4I3EiSdAUP7w96T75UBwreFKwxvq16-od59YpbneYRYUYkgKEZSLTgrmCkm_nN4FWxOCSOhFHqHmjCenSREMJMdSHbhcqgvU5pdIxSm0ITMAxY4jX6cUTFKsqYGeKwCMHjy0gptCuPGVvEJCffxq00YNmF194USBRWumBZCp0TuRtI4LzjyPB1LARLdzJ56bCibI6lRE4hDn53zAV5ZUcWlkUIuUJ52D4vH3fRl85AQHV8UiWl8MEfyjJ4B8XxThp7lZ8nhAX42pUJ_8YgaK6BO51syG2Rkm9icm8ddRoM8pDl2Pkp8FgFncdIIAEqCXVzLWVhc3QtMjC4DA.ts?dna=CnWfUp8FT0O95nMtHpmzX-0LudnQmJLc-YARNX594okBXpxNtNQOAoOFUhTgI3_AReiOPiW_1e2e3oeoXJfoJbH4KZniEQhFhSWU7wMaSzM8CkZomzvn1Gig5l71lY9wSw8DV-QRh6LK7zfRqp5yy547EAFTbcwaDDnujf_TZXo1TVET8CABKgl1cy1lYXN0LTIwuAw&#x27; for reading&#xA;[https @ 000001edad4be180] Opening &#x27;https://c513a515af41.chantenay.akamai.hls.ttvnw.net/v1/segment/CvUCvDoClU0qVRu8zB4Vm0gdhBMUSkOd9X-6zOlmLSLjAZDs-Oxj_mW5vBJWinuwpM4xU4bDToC8hfj7Xv80h6Rc93voJNaNiUxYWszEFu1AJh-_LsqxEJA-3nW8MBNo9YeaecC_EX8TF0VTaVBGiLI1SQNREb-1B5pAkYXfVcO_OSI2QqrssKXbBzkNwsx6dW38ir7CNT9qTZACJGzDZkxXYrSlArubviw_wXxSKXQKn0YcF3yXeKO4iXHRjkyrX0rnaSM3PRDJhr1xGT47u9J5jymTL55O9QRLS-9Z8ZN1LhqpXLxBFJbFi-4v_yJZWponNmS3F6b3rMhW3WCv5qw96B4UHF7NjFJWk0LmyLTkNcBAPC2yyARDZ02MoIXPzMSEq9Z1O4jrASPj34HXA_8BdxqZdVtyzjEekR2ThJkueLyFshQ3HIGkeFH49xpQmDNgE93VovfMACG9RTUCIPP9cZuOhTkoFBpT7JSrOx_p2oS3q4QiYxoMQNuunEN7QhQW4OPMIAEqCXVzLWVhc3QtMjC4DA.ts?dna=CnWfUp8FT0O95nMtHpmzX-0LudnQmJLc-YARNX594okBXpxNtNQOAoOFUhTgI3_AReiOPiW_1e2e3oeoXJfoJbH4KZniEQhFhSWU7wMaSzM8CkZomzvn1Gig5l71lY9wSw8DV-QRh6LK7zfRqp5yy547EAFTbcwaDDnujf_TZXo1TVET8CABKgl1cy1lYXN0LTIwuAw&#x27; for reading&#xA;[in#0/hls @ 000001edab89e3c0] Error during demuxing: Server returned 5XX Server Error reply 1x elapsed=0:17:33.34&#xA;[out#0/mpegts @ 000001edab92e880] video:547017KiB audio:12398KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 3.451806%&#xA;frame=26450 fps= 25 q=-1.0 Lsize=  578726KiB time=00:17:37.96 bitrate=4481.2kbits/s speed=   1x elapsed=0:17:33.35&#xA;&#xA;yt-dlp>&#xA;

    &#xA;

    Is there any way to prevent this error ? Or can I do something so that the download does not stop because of this error ?

    &#xA;

    And excuse me but I forgot to take a screenshot of the cmd screen, so I don't remember the colors of the letters (it certainly changed the colors of the letters when the error appeared). So I proceed to indicate that the error starts when it says : “ [hls @ 000001edab89e500] keepalive request failed for ”.

    &#xA;

  • Opencv VideoCapture not streaming RTSP link and returns "no frame !"

    6 septembre 2023, par Asadullah Naeem

    I am trying to stream my HikVision IP camera throough python. I am using cv2.VideoCapture("rtsp_link") which works fine on my Laptop but when I try to run the same python script with same Opencv and FFmpeg version it gives me following error :

    &#xA;

    Error :

    &#xA;

    [h264 @ 000002124c7f9a40] missing picture in access unit with size 47&#xA;[h264 @ 000002124c7f9a40]&#xA0;no&#xA0;frame!&#xA;

    &#xA;

    I have so far tried to run this script on 5 computer devices but it gives the same error. I am using the following python script and my Opencv version is 4.6.0.66 and ffmpeg version 2022-06-20-git-56419428a8-essentials_build-www.gyan.dev :

    &#xA;

    Python Script :

    &#xA;

    import cv2&#xA;&#xA;# RTSP stream URL&#xA;rtsp_url = "rtsp://username:password@ip_address:port/Streaming/Channels/501"&#xA;&#xA;# Open the RTSP stream&#xA;cap = cv2.VideoCapture(rtsp_url)&#xA;&#xA;# Check if the stream was successfully opened&#xA;if not cap.isOpened():&#xA;    print("Failed to open RTSP stream.")&#xA;    exit()&#xA;&#xA;# Read and display frames from the stream&#xA;while True:&#xA;    # Read a frame from the stream&#xA;    ret, frame = cap.read()&#xA;&#xA;    # Check if the frame was successfully read&#xA;    if not ret:&#xA;        print("Failed to read frame from RTSP stream.")&#xA;        break&#xA;&#xA;    # Display the frame&#xA;    cv2.imshow("RTSP Stream", frame)&#xA;&#xA;    # Exit if &#x27;q&#x27; is pressed&#xA;    if cv2.waitKey(1) &amp; 0xFF == ord(&#x27;q&#x27;):&#xA;        break&#xA;&#xA;# Release the resources&#xA;cap.release()&#xA;cv2.destroyAllWindows()&#xA;&#xA;

    &#xA;

    Update :

    &#xA;

    Code runs on a laptop on both wifi and mobile internet (4G) but on other devices rtsp link is accessible only with mobile internet (4G).

    &#xA;