Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (105)

Sur d’autres sites (10922)

  • How to make mp4 rendering visible on Mac ?

    24 octobre 2022, par János

    Generating mp4 from gif like this :

    


        await new Promise<void>((resolve, reject) => {&#xA;        ffmpeg&#xA;            .input(`/tmp/input_${name}.gif`)&#xA;            .outputOptions([&#xA;                &#x27;-c:v libx264&#x27;,&#xA;                &#x27;-movflags &#x2B;faststart&#x27;,&#xA;                &#x27;-movflags frag_keyframe&#x2B;empty_moov&#x27;,&#xA;            ])&#xA;            .noAudio()&#xA;            .output(`/tmp/output_${name}.mp4`)&#xA;            .on(&#x27;end&#x27;, () => {&#xA;                console.log(&#x27;MP4 video generated&#x27;)&#xA;                resolve()&#xA;            })&#xA;            .on(&#x27;error&#x27;, (e) => {&#xA;                console.log(e)&#xA;                reject()&#xA;            })&#xA;            .run()&#xA;    })&#xA;</void>

    &#xA;

    will generate mp4, but can be watch only in Chrome, not in Safari or Quicktime Player.

    &#xA;

    We tried many other option like this :

    &#xA;

    &#x27;-pix_fmt yuv420p&#x27;,&#xA;&#x27;-vf "scale=trunc(iw/2)*2:trunc(ih/2)*2"&#x27;,&#xA;

    &#xA;

    but it raise an error :

    &#xA;

    Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;

    &#xA;

    enter image description here

    &#xA;

    Using this framework in a React / Next.js project : https://github.com/eugeneware/ffmpeg-static

    &#xA;

  • ffmpeg Invalid data found when processing input

    20 mai 2019, par Sulli

    I’m trying to download a specific part of a youtube video with this code :

    step=`youtube-dl -g -f 'bestvideo[ext=mp4]' https://www.youtube.com/watch?v=pMntMsHTDZ0`
    ffmpeg -nostdin  -i "$step" -ss 00:00:10.00 -t 00:00:02.00 -c copy frames/out.mp4

    but I’m getting this error :

    https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/a4c9ed32c1d30d9d/itag/0/ei/fG7iXMihC8_oxwK0qJ-YAQ/playback_host/r6---sn-n4g-jqbd.googlevideo.com/mm/31%2C26/mn/sn-n4g-jqbd%2Csn-5hne6n7s/ms/au%2Conr/mv/m/pl/22/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/716250/mt/1558343198/fvip/4/ip/79.86.92.133/ipbits/0/expire/1558364892/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/D046699C35F9AFF84334BAB20E1D8D4CA5318794.6EF1739E2ED134D16EBBE9242BDDE31F59801AAB/key/yt8: Invalid data found when processing input

    I don’t understand this error, and this code has worked for tens of videos I’ve downloaded before.

    How to fix this or get more information on the error ?

  • Which command line and version do I need to reproduce those properties ?

    26 décembre 2015, par Zurechtweiser

    I have a file for which ffmpeg gave those properties :

    ...
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TEST.MOV':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2015-12-26 07:45:26
     Duration: 00:00:02.75, start: 0.000000, bitrate: 4935 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 4775 kb/s, 59.94 fps, 59.94 tbr, 180k tbn, 119.88 tbc (default)
       Metadata:
         creation_time   : 2015-12-26 07:45:26
         handler_name    : Ambarella AVC
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 64 kb/s (default)
       Metadata:
         creation_time   : 2015-12-26 07:45:26
         handler_name    : Ambarella AAC

    Which command line and version do I need to reproduce those properties ?

    I tried

    ffmpeg -i "test.mp4" -s 1280x720 -vcodec libx264 -c:a libvo_aacenc -q:a 3 -r 59.94 -b:v 4935k -b:a 64k -ac 1 -ar 48000 TEST2.MOV

    But it’s not the same.

    Goal is simple : my actioncam has a hdmi-output. I want to watch movies next to my own footage using my actioncam when I am abroad. Goal is to make the actioncam think, it was it’s own footage to play it back. Currently I only get ’invalid’.