Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (93)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • 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"

Sur d’autres sites (10962)

  • Can build & make video call with pjsip and ffmpeg

    10 mai 2023, par QViet

    I try to build PJSIP with ffmpeg with this config :

    &#xA;

    i Follow those step :

    &#xA;

      &#xA;
    • build need lib and place in thirdparty folder name ffmpeg
    • &#xA;

    • setup link lib & header already.
    • &#xA;

    • run build with "$configure —with-ffmpeg="
    • &#xA;

    • config_site.h add :
    • &#xA;

    &#xA;

    &#xA;
    #define PJMEDIA_HAS_OPENH264_CODEC 1 &#xA;#define PJMEDIA_HAS_VIDEO 1 &#xA;#define PJMEDIA_VIDEO_DEV_HAS_FFMPEG 1 &#xA;#define PJMEDIA_HAS_FFMPEG_VID_CODEC 1 &#xA;#define PJMEDIA_HAS_FFMPEG 1 &#xA;#define PJMEDIA_HAS_FFMPEG_CODEC_H264 1 &#xA;#define PJMEDIA_HAS_LIBAVDEVICE 1 &#xA;#define PJMEDIA_HAS_OPENH264_CODEC 1&#xA;

    &#xA;

    &#xA;

    I see have to enable PJMEDIA_HAS_OPENH264_CODEC , if not, can build success but when import will receive this error :

    &#xA;

    Undefined symbol: _WelsCreateDecoder&#xA;

    &#xA;

    cause miss wels package exits in openh264 lib.

    &#xA;

    The build with success after all with above config but in this :

    &#xA;

       pj_status_t status = pjsua_vid_enum_codecs(videoCodecInfo, &amp;videoCodecCount);&#xA;

    &#xA;

    the codec info just show 1 codec is "H264/97" -> is OpenH264 codec, i can't see ffmpeg here.&#xA;When im start call like normal, see log openh264 init call/ open camera .

    &#xA;

    What i need step to using ffmpeg, i can see any docs about it

    &#xA;

    can you help me ?

    &#xA;

    ** this i log call stack :**

    &#xA;

    2023-04-24 10:17:21.522976&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.523 [SIPSample -[SIPSample startEndpointWithEndpointConfiguration:error:]:272] Creating new PSUASIP Endpoint instance.&#xA;10:17:21.525         os_core_unix.c !pjlib 2.13-dev for POSIX initialized&#xA;10:17:21.526         sip_endpoint.c  .Creating endpoint instance...&#xA;10:17:21.527                  pjlib  .select() I/O Queue created (0x1050a32c8)&#xA;10:17:21.527         sip_endpoint.c  .Module "mod-msg-print" registered&#xA;10:17:21.527        sip_transport.c  .Transport manager created.&#xA;10:17:21.527           pjsua_core.c  .PJSUA state changed: NULL --> CREATED&#xA;2023-04-24 10:17:21.528077&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.528         sip_endpoint.c  .Module "mod-pjsua-log" registered&#xA;&#xA;2023-04-24 10:17:21.528204&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.528 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-PSUA-log" registered&#xA;2023-04-24 10:17:21.529375&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.529         sip_endpoint.c  .Module "mod-tsx-layer" registered&#xA;&#xA;2023-04-24 10:17:21.529477&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.529 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-tsx-layer" registered&#xA;2023-04-24 10:17:21.529491&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.529         sip_endpoint.c  .Module "mod-stateful-util" registered&#xA;&#xA;2023-04-24 10:17:21.529592&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-stateful-util" registered&#xA;2023-04-24 10:17:21.529895&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.529         sip_endpoint.c  .Module "mod-ua" registered&#xA;&#xA;2023-04-24 10:17:21.530024&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-ua" registered&#xA;2023-04-24 10:17:21.530068&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.530         sip_endpoint.c  .Module "mod-100rel" registered&#xA;&#xA;2023-04-24 10:17:21.530181&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.530         sip_endpoint.c  .Module "mod-pjsua" registered&#xA;&#xA;2023-04-24 10:17:21.530217&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-100rel" registered&#xA;2023-04-24 10:17:21.530283&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-PSUA" registered&#xA;2023-04-24 10:17:21.530865&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.530         sip_endpoint.c  .Module "mod-invite" registered&#xA;&#xA;2023-04-24 10:17:21.530970&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.531 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-invite" registered&#xA;2023-04-24 10:17:21.677206&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.677        coreaudio_dev.c  .. dev_id 0: iPhone IO device  (in=1, out=1) 8000Hz&#xA;&#xA;2023-04-24 10:17:21.677497&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.677 [SIPSample void logCallBack(int, const char *, int):1034]        coreaudio_dev.c  .. dev_id 0: iPhone IO device  (in=1, out=1) 8000Hz&#xA;2023-04-24 10:17:21.677588&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.677        coreaudio_dev.c  ..core audio initialized&#xA;&#xA;2023-04-24 10:17:21.677804&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.678 [SIPSample void logCallBack(int, const char *, int):1034]        coreaudio_dev.c  ..core audio initialized&#xA;2023-04-24 10:17:21.678538&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.678                  pjlib  ..select() I/O Queue created (0x1060684a8)&#xA;&#xA;2023-04-24 10:17:21.678743&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.679 [SIPSample void logCallBack(int, const char *, int):1034]                  pjlib  ..select() I/O Queue created (0x1060684a8)&#xA;2023-04-24 10:17:21.683380&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.683            pjsua_vid.c  ..Initializing video subsystem..&#xA;&#xA;2023-04-24 10:17:21.683585&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.683 [SIPSample void logCallBack(int, const char *, int):1034]            PSUA_vid.c  ..Initializing video subsystem..&#xA;2023-04-24 10:17:21.684058&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.684             vid_conf.c  ...Created video conference bridge with 32 ports&#xA;&#xA;2023-04-24 10:17:21.684260&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.684 [SIPSample void logCallBack(int, const char *, int):1034]             vid_conf.c  ...Created video conference bridge with 32 ports&#xA;2023-04-24 10:17:21.684983&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.684           openh264.cpp  ...OpenH264 codec initialized&#xA;&#xA;2023-04-24 10:17:21.685168&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.685 [SIPSample void logCallBack(int, const char *, int):1034]           openh264.cpp  ...OpenH264 codec initialized&#xA;2023-04-24 10:17:21.685237&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.685           opengl_dev.c  ...OpenGL device initialized&#xA;&#xA;2023-04-24 10:17:21.685370&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.685 [SIPSample void logCallBack(int, const char *, int):1034]           opengl_dev.c  ...OpenGL device initialized&#xA;2023-04-24 10:17:21.715616&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.715           darwin_dev.m  ...Darwin video initialized with 5 devices:&#xA;&#xA;2023-04-24 10:17:21.715796&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034]           darwin_dev.m  ...Darwin video initialized with 5 devices:&#xA;2023-04-24 10:17:21.715812&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.715           darwin_dev.m  ... 0: [Renderer] iOS - UIView&#xA;&#xA;2023-04-24 10:17:21.715917&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034]           darwin_dev.m  ... 0: [Renderer] iOS - UIView&#xA;2023-04-24 10:17:21.715921&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.715           darwin_dev.m  ... 1: [Capturer] AVF - Front Camera&#xA;&#xA;2023-04-24 10:17:21.716006&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034]           darwin_dev.m  ... 1: [Capturer] AVF - Front Camera&#xA;2023-04-24 10:17:21.716033&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.716           darwin_dev.m  ... 2: [Capturer] AVF - Back Camera&#xA;&#xA;2023-04-24 10:17:21.716137&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.716           darwin_dev.m  ... 3: [Capturer] AVF - Back Dual Camera&#xA;&#xA;2023-04-24 10:17:21.716152&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034]           darwin_dev.m  ... 2: [Capturer] AVF - Back Camera&#xA;2023-04-24 10:17:21.716218&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034]           darwin_dev.m  ... 3: [Capturer] AVF - Back Dual Camera&#xA;2023-04-24 10:17:21.716247&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.716           darwin_dev.m  ... 4: [Capturer] AVF - Back Telephoto Camera&#xA;&#xA;2023-04-24 10:17:21.716375&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034]           darwin_dev.m  ... 4: [Capturer] AVF - Back Telephoto Camera&#xA;2023-04-24 10:17:21.716409&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.716         colorbar_dev.c  ...Colorbar video src initialized with 2 device(s):&#xA;&#xA;2023-04-24 10:17:21.716673&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.716         colorbar_dev.c  ... 0: Colorbar generator&#xA;&#xA;2023-04-24 10:17:21.716764&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.717 [SIPSample void logCallBack(int, const char *, int):1034]         colorbar_dev.c  ...Colorbar video src initialized with 2 device(s):&#xA;2023-04-24 10:17:21.716918&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.716         colorbar_dev.c  ... 1: Colorbar-active&#xA;&#xA;2023-04-24 10:17:21.716938&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.717 [SIPSample void logCallBack(int, const char *, int):1034]         colorbar_dev.c  ... 0: Colorbar generator&#xA;2023-04-24 10:17:21.717192&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.717 [SIPSample void logCallBack(int, const char *, int):1034]         colorbar_dev.c  ... 1: Colorbar-active&#xA;2023-04-24 10:17:21.717528&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.717         sip_endpoint.c  .Module "mod-evsub" registered&#xA;&#xA;2023-04-24 10:17:21.717645&#x2B;0700 PSUAKitSample[83000:15642975] &#128154; DEBUG   10:17:21.718 [SIPSample void logCallBack(int, const char *, int):1034]         sip_endpoint.c  .Module "mod-evsub" registered&#xA;2023-04-24 10:17:21.717710&#x2B;0700 PSUAKitSample[83000:15642817] 10:17:21.717         sip_endpoint.c  .Module "mod-presence" registered&#xA;

    &#xA;

  • nodejs aws lambda ffmpeg command failure

    14 juin 2022, par mozenge

    Im running an ffmpeg command to generate a thumbnail from a video that exists on aws s3 bucket but accessed from cloud front. So i try to stream the video in the command. This is implemented in nodejs and the ffmpeg dependency is a lambda layer. The code looks like so

    &#xA;

    const gifName = `${baseFilename}.gif`;&#xA;await execPromise(`ffmpeg -t 10 -ss 00:00:01 -i "${_url}" ${&#x27;/tmp/&#x27; &#x2B; gifName}`);&#xA;

    &#xA;

    _url is a clound front url. This works when i test locally even via aws SAM cli.&#xA;But this fails when testing the deployed fuction. The error output I get is as follows

    &#xA;

    2022-06-13T14:07:41.079Z    35af32d2-c63f-4942-abce-3ae7dad2a6c3    INFO    stderr:  ffmpeg version 5.0.1-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;  libavutil      57. 17.100 / 57. 17.100&#xA;  libavcodec     59. 18.100 / 59. 18.100&#xA;  libavformat    59. 16.100 / 59. 16.100&#xA;  libavdevice    59.  4.100 / 59.  4.100&#xA;  libavfilter     8. 24.100 /  8. 24.100&#xA;  libswscale      6.  4.100 /  6.  4.100&#xA;  libswresample   4.  3.100 /  4.  3.100&#xA;  libpostproc    56.  3.100 / 56.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;https://d17yrtgi5800rj.cloudfront.net/staging/videos/a66a92eb-bc31-4440-958c-07ee23e55bcb&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2022-05-03T19:50:01.000000Z&#xA;    com.apple.quicktime.location.accuracy.horizontal: 4.732124&#xA;    com.apple.quicktime.location.ISO6709: &#x2B;52.3832&#x2B;004.9205&#x2B;018.038/&#xA;    com.apple.quicktime.make: Apple&#xA;    com.apple.quicktime.model: iPhone 13 Pro Max&#xA;    com.apple.quicktime.software: 15.4.1&#xA;    com.apple.quicktime.creationdate: 2022-05-03T21:50:01&#x2B;0200&#xA;  Duration: 00:00:42.67, start: 0.000000, bitrate: 8434 kb/s&#xA;  Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/arib-std-b67), 1920x1080, 8214 kb/s, 30 fps, 30 tbr, 600 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-05-03T19:50:01.000000Z&#xA;      handler_name    : Core Media Video&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : HEVC&#xA;    Side data:&#xA;      DOVI configuration record: version: 1.0, profile: 8, level: 4, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 4&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 162 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-05-03T19:50:01.000000Z&#xA;      handler_name    : Core Media Audio&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:2[0x3](und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-05-03T19:50:01.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;  Stream #0:3[0x4](und): Data: none (mebx / 0x7862656D), 5 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-05-03T19:50:01.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;  Stream #0:4[0x5](und): Data: none (mebx / 0x7862656D), 36 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-05-03T19:50:01.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (hevc (native) -> gif (native))&#xA;Press [q] to stop, [?] for help&#xA;[hevc @ 0x63641c0] Multiple Dolby Vision RPUs found in one AU. Skipping previous.&#xA;[hevc @ 0x6375900] Multiple Dolby Vision RPUs found in one AU. Skipping previous.&#xA;[hevc @ 0x6333600] Multiple Dolby Vision RPUs found in one AU. Skipping previous.&#xA;Output #0, gif, to &#x27;/tmp/a66a92eb-bc31-4440-958c-07ee23e55bcb.gif&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    com.apple.quicktime.creationdate: 2022-05-03T21:50:01&#x2B;0200&#xA;    com.apple.quicktime.location.accuracy.horizontal: 4.732124&#xA;    com.apple.quicktime.location.ISO6709: &#x2B;52.3832&#x2B;004.9205&#x2B;018.038/&#xA;    com.apple.quicktime.make: Apple&#xA;    com.apple.quicktime.model: iPhone 13 Pro Max&#xA;    com.apple.quicktime.software: 15.4.1&#xA;    encoder         : Lavf59.16.100&#xA;  Stream #0:0(und): Video: gif, bgr8(pc, gbr/bt2020/arib-std-b67, progressive), 1080x1920, q=2-31, 200 kb/s, 30 fps, 100 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-05-03T19:50:01.000000Z&#xA;      handler_name    : Core Media Video&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.18.100 gif&#xA;    Side data:&#xA;      DOVI configuration record: version: 1.0, profile: 8, level: 4, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 4&#xA;      displaymatrix: rotation of -0.00 degrees&#xA;frame=    1 fps=0.0 q=-0.0 size=       0kB time=00:00:00.08 bitrate=   0.0kbits/s speed=0.325x    &#xA;frame=    4 fps=0.0 q=-0.0 size=     768kB time=00:00:00.18 bitrate=34952.5kbits/s speed=0.239x    &#xA;frame=    9 fps=6.6 q=-0.0 size=    2304kB time=00:00:00.34 bitrate=55512.8kbits/s speed=0.248x    &#xA;frame=   14 fps=7.0 q=-0.0 size=    3584kB time=00:00:00.51 bitrate=57568.9kbits/s speed=0.255x    &#xA;frame=   19 fps=7.2 q=-0.0 size=    5120kB time=00:00:00.68 bitrate=61680.9kbits/s speed=0.259x    &#xA;frame=   24 fps=7.4 q=-0.0 size=    6656kB time=00:00:00.84 bitrate=64911.8kbits/s speed=0.258x    &#xA;frame=   29 fps=7.5 q=-0.0 size=    7936kB time=00:00:01.01 bitrate=64368.0kbits/s speed=0.26x    &#xA;frame=   33 fps=7.5 q=-0.0 size=    9472kB time=00:00:01.14 bitrate=68065.5kbits/s speed=0.259x    &#xA;frame=   37 fps=7.5 q=-0.0 size=   10752kB time=00:00:01.28 bitrate=68812.8kbits/s speed=0.261x    &#xA;frame=   42 fps=7.6 q=-0.0 size=   12032kB time=00:00:01.44 bitrate=68448.7kbits/s speed=0.26x    &#xA;frame=   46 fps=7.6 q=-0.0 size=   13312kB time=00:00:01.58 bitrate=69020.2kbits/s speed=0.261x    &#xA;frame=   50 fps=7.6 q=-0.0 size=   14336kB time=00:00:01.71 bitrate=68678.7kbits/s speed=0.261x    &#xA;frame=   54 fps=7.6 q=-0.0 size=   15360kB time=00:00:01.84 bitrate=68385.4kbits/s speed=0.259x    &#xA;frame=   58 fps=7.6 q=-0.0 size=   16640kB time=00:00:01.98 bitrate=68845.9kbits/s speed=0.26x    &#xA;frame=   62 fps=7.6 q=-0.0 size=   17664kB time=00:00:02.11 bitrate=68579.9kbits/s speed=0.26x    &#xA;frame=   66 fps=7.6 q=-0.0 size=   18944kB time=00:00:02.24 bitrate=69280.9kbits/s speed=0.259x    &#xA;frame=   70 fps=7.6 q=-0.0 size=   20224kB time=00:00:02.38 bitrate=69611.3kbits/s speed=0.26x    &#xA;frame=   74 fps=7.7 q=-0.0 size=   21504kB time=00:00:02.51 bitrate=70183.6kbits/s speed=0.26x    &#xA;frame=   78 fps=7.7 q=-0.0 size=   22784kB time=00:00:02.64 bitrate=70699.4kbits/s speed=0.259x    &#xA;frame=   82 fps=7.7 q=-0.0 size=   24064kB time=00:00:02.78 bitrate=70910.9kbits/s speed=0.26x    &#xA;frame=   86 fps=7.7 q=-0.0 size=   25600kB time=00:00:02.91 bitrate=72067.1kbits/s speed=0.259x    &#xA;frame=   91 fps=7.7 q=-0.0 size=   27136kB time=00:00:03.08 bitrate=72174.7kbits/s speed=0.26x    &#xA;frame=   95 fps=7.7 q=-0.0 size=   28416kB time=00:00:03.21 bitrate=72518.3kbits/s speed=0.26x    &#xA;frame=   99 fps=7.7 q=-0.0 size=   29696kB time=00:00:03.34 bitrate=72835.2kbits/s speed=0.26x    &#xA;frame=  103 fps=7.7 q=-0.0 size=   30976kB time=00:00:03.48 bitrate=72918.2kbits/s speed=0.26x    &#xA;frame=  108 fps=7.7 q=-0.0 size=   32768kB time=00:00:03.64 bitrate=73746.0kbits/s speed=0.26x    &#xA;frame=  112 fps=7.7 q=-0.0 size=   34048kB time=00:00:03.78 bitrate=73788.7kbits/s speed=0.26x    &#xA;frame=  116 fps=7.7 q=-0.0 size=   35072kB time=00:00:03.91 bitrate=73480.8kbits/s speed=0.26x    &#xA;frame=  120 fps=7.7 q=-0.0 size=   36352kB time=00:00:04.04 bitrate=73711.8kbits/s speed=0.26x    &#xA;frame=  124 fps=7.7 q=-0.0 size=   37376kB time=00:00:04.18 bitrate=73249.8kbits/s speed=0.26x    &#xA;frame=  128 fps=7.7 q=-0.0 size=   38656kB time=00:00:04.31 bitrate=73473.3kbits/s speed=0.26x    &#xA;frame=  132 fps=7.7 q=-0.0 size=   39936kB time=00:00:04.44 bitrate=73683.7kbits/s speed=0.26x    &#xA;frame=  136 fps=7.7 q=-0.0 size=   41216kB time=00:00:04.58 bitrate=73720.8kbits/s speed=0.26x    &#xA;frame=  141 fps=7.7 q=-0.0 size=   42496kB time=00:00:04.74 bitrate=73444.6kbits/s speed=0.26x    &#xA;frame=  145 fps=7.8 q=-0.0 size=   43776kB time=00:00:04.88 bitrate=73486.3kbits/s speed=0.261x    &#xA;frame=  150 fps=7.8 q=-0.0 size=   45312kB time=00:00:05.04 bitrate=73650.0kbits/s speed=0.261x    &#xA;frame=  154 fps=7.8 q=-0.0 size=   46336kB time=00:00:05.18 bitrate=73278.9kbits/s speed=0.261x    &#xA;frame=  159 fps=7.8 q=-0.0 size=   47616kB time=00:00:05.34 bitrate=73046.9kbits/s speed=0.261x    &#xA;frame=  164 fps=7.8 q=-0.0 size=   49152kB time=00:00:05.51 bitrate=73076.8kbits/s speed=0.262x    &#xA;frame=  168 fps=7.8 q=-0.0 size=   50176kB time=00:00:05.64 bitrate=72879.8kbits/s speed=0.262x    &#xA;frame=  173 fps=7.8 q=-0.0 size=   51456kB time=00:00:05.81 bitrate=72552.1kbits/s speed=0.262x    &#xA;frame=  178 fps=7.8 q=-0.0 size=   52736kB time=00:00:05.98 bitrate=72243.0kbits/s speed=0.262x    &#xA;frame=  183 fps=7.8 q=-0.0 size=   54272kB time=00:00:06.14 bitrate=72409.8kbits/s speed=0.262x    &#xA;frame=  187 fps=7.8 q=-0.0 size=   55552kB time=00:00:06.28 bitrate=72465.3kbits/s speed=0.263x    &#xA;frame=  191 fps=7.8 q=-0.0 size=   56832kB time=00:00:06.41 bitrate=72631.5kbits/s speed=0.262x    &#xA;frame=  196 fps=7.8 q=-0.0 size=   58368kB time=00:00:06.58 bitrate=72667.3kbits/s speed=0.263x    &#xA;frame=  200 fps=7.8 q=-0.0 size=   59648kB time=00:00:06.71 bitrate=72822.1kbits/s speed=0.262x    &#xA;frame=  204 fps=7.8 q=-0.0 size=   60928kB time=00:00:06.84 bitrate=72971.1kbits/s speed=0.262x    &#xA;frame=  208 fps=7.8 q=-0.0 size=   62208kB time=00:00:06.98 bitrate=73009.7kbits/s speed=0.262x    &#xA;frame=  212 fps=7.8 q=-0.0 size=   63488kB time=00:00:07.11 bitrate=73149.6kbits/s speed=0.262x    &#xA;frame=  216 fps=7.8 q=-0.0 size=   64768kB time=00:00:07.24 bitrate=73284.5kbits/s speed=0.262x    &#xA;frame=  220 fps=7.8 q=-0.0 size=   66048kB time=00:00:07.38 bitrate=73315.1kbits/s speed=0.262x    &#xA;frame=  224 fps=7.8 q=-0.0 size=   67072kB time=00:00:07.51 bitrate=73163.0kbits/s speed=0.262x    &#xA;frame=  228 fps=7.8 q=-0.0 size=   68352kB time=00:00:07.64 bitrate=73290.5kbits/s speed=0.262x    &#xA;frame=  232 fps=7.8 q=-0.0 size=   69632kB time=00:00:07.78 bitrate=73319.5kbits/s speed=0.262x    &#xA;frame=  236 fps=7.8 q=-0.0 size=   70912kB time=00:00:07.91 bitrate=73440.1kbits/s speed=0.262x    &#xA;frame=  240 fps=7.8 q=-0.0 size=   72192kB time=00:00:08.04 bitrate=73556.8kbits/s speed=0.262x    &#xA;frame=  245 fps=7.8 q=-0.0 size=   73728kB time=00:00:08.21 bitrate=73566.4kbits/s speed=0.262x    &#xA;frame=  249 fps=7.8 q=-0.0 size=   75008kB time=00:00:08.34 bitrate=73676.9kbits/s speed=0.262x    &#xA;frame=  253 fps=7.8 q=-0.0 size=   76288kB time=00:00:08.48 bitrate=73697.1kbits/s speed=0.262x    &#xA;frame=  257 fps=7.8 q=-0.0 size=   77568kB time=00:00:08.61 bitrate=73802.2kbits/s speed=0.262x    &#xA;frame=  261 fps=7.8 q=-0.0 size=   78848kB time=00:00:08.74 bitrate=73904.2kbits/s speed=0.262x    &#xA;frame=  265 fps=7.8 q=-0.0 size=   80128kB time=00:00:08.88 bitrate=73919.9kbits/s speed=0.262x    &#xA;frame=  269 fps=7.8 q=-0.0 size=   81152kB time=00:00:09.01 bitrate=73784.4kbits/s speed=0.262x    &#xA;frame=  273 fps=7.8 q=-0.0 size=   82432kB time=00:00:09.14 bitrate=73882.2kbits/s speed=0.262x    &#xA;frame=  278 fps=7.8 q=-0.0 size=   83712kB time=00:00:09.31 bitrate=73659.4kbits/s speed=0.262x    &#xA;frame=  282 fps=7.8 q=-0.0 size=   84992kB time=00:00:09.44 bitrate=73755.8kbits/s speed=0.262x    &#xA;frame=  287 fps=7.8 q=-0.0 size=   86784kB time=00:00:09.61 bitrate=73978.6kbits/s speed=0.262x    &#xA;frame=  291 fps=7.8 q=-0.0 size=   88064kB time=00:00:09.74 bitrate=74067.8kbits/s speed=0.262x    &#xA;frame=  295 fps=7.8 q=-0.0 size=   89344kB time=00:00:09.88 bitrate=74079.6kbits/s speed=0.262x    &#xA;frame=  299 fps=7.8 q=-0.0 size=   90624kB time=00:00:10.01 bitrate=74165.0kbits/s speed=0.262x    &#xA;frame=  300 fps=7.8 q=-0.0 Lsize=   91358kB time=00:00:10.04 bitrate=74542.5kbits/s speed=0.261x    &#xA;video:91358kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000021%&#xA;

    &#xA;

    Any ideas what might be wrong ?

    &#xA;

  • FFMPEG fails in node exec but succeeds on OSX

    10 avril 2015, par rrrkren

    So I’m trying to get a thumbnail of a mov video using ffmpeg.
    Here is the command :

    ffmpeg -i video.mov -vf scale=-1:100 -r 1 -an -vframes 1 -f mjpeg thumb.jpg

    it works fine when I type it in terminal. But once I do it in javascript (node) :
    (thumbPath, destPath, and thumbname are all defined earlier, and I doubt they are the problem)

    var command = "ffmpeg -i "+ destPath +" -vf scale=-1:100 -ss 00:01 -r 1 -an -vframes 1  -f mjpeg "+thumbPath+thumbname;
    exec(command,function(err){
       if(err){
           console.log(err);
       };
    });

    The console logs :

    { [Error: Command failed: ffmpeg version 2.4.1-tessus Copyright (c) 2000-2014 the FFmpeg developers
     built on Sep 22 2014 23:16:01 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
     configuration: --cc=/usr/bin/clang --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-libsoxr --enable-libwavpack --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --enable-runtime-cpudetect
     libavutil      54.  7.100 / 54.  7.100
     libavcodec     56.  1.100 / 56.  1.100
     libavformat    56.  4.101 / 56.  4.101
     libavdevice    56.  0.100 / 56.  0.100
     libavfilter     5.  1.100 /  5.  1.100
     libswscale      3.  0.100 /  3.  0.100
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  0.100 / 53.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe29c817000] moov atom not found
    video.mov: Invalid data found when processing input
    ] killed: false, code: 1, signal: null }

    I’ve looked up online and apparently the "moov atom not found error" is caused by the video being corrupted. But the command works fine when I type it in terminal. What’s wrong with my code ?

    Edit : This code works for mp4 videos, and the mov video was from an iPhone. I tried using a .mov file downloaded elsewhere and it works. Seems to be an issue with mov file shot with iPhone ?