Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (76)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8949)

  • Compiling FFmpeg staticly using NDK

    27 février 2017, par David Barishev

    I have been trying to compile ffmpeg into a static library in order to use it in my android application, but i couldn’t get it to work.

    Im working with FFmpeg 3.2.4, and ndk r13b, using bash on windows 10(Ubuntu 14.04).

    Here is what i did :

    • I made a stand alone toolchain for x86_64 and api 21 using :
      python make_standalone_toolchain.py --api 21 --arch x86_64 --install-dir {}

    • Made a configuration script :

      ./configure                                                           \
      --target-os=linux                                                    \
      --arch=x86                                             \
      --prefix=<output path="path">                                                  \
      --cross-prefix=<stand alone="alone" toolchain="toolchain" path="path">/bin/x86_64-linux-android-           \
      --sysroot=<stand alone="alone" toolchain="toolchain" path="path">/sysroot                                  \
      --enable-cross-compile                                               \
      --pkg-config-flags="--static"                                        \
      --enable-yasm       \
      --enable-ffmpeg     \
      --disable-ffplay    \
      --disable-ffprobe   \
      --disable-ffserver  \
      --disable-doc                                                          \
      --disable-htmlpages                                                    \
      --disable-manpages                                                     \
      --disable-podpages                                                     \
      --disable-txtpages                                                     \

      make install
      </stand></stand></output>

    It produced an FFmpeg executable, however when i ran it on my API 23 emulator, i got an error message :error: only position independent executables (PIE) are supported.

    How can i fix it ? Also i’m not sure about my configuration, there wasn’t up to date sources on how to compile it correctly for every ABI (arm,arm64,x86,x86_64,mips,mips64) that i need for my application.
    I have seen many script, and im not too familiar with compiling native code, so i wasn’t sure what settings i need, for example like C flags and etc.

    To be precise on how i tried to configure FFmpeg :

    • I need a static library
    • I Only need the ffmpeg command line utility
    • I want to compile the library for every ABI i listed above.This configuration tried to compile for x86_64.
    • Running on android of course

    I would greatly appreciate some help on how to configure and compile this correctly.

    EDIT

    I tried compiling for x86, on an Ubuntu 16.04 (x86_64) VM, using roughly the same config , and i got a different error.

    I made a standalone toolchain for x86 :
    python make_standalone_toolchain.py --arch x86 --api 19 --install-dir ~/x86_toolchain

    And made this configuration file :

    ./configure \
    --target-os=linux                                       \
    --arch=x86                                              \
    --prefix=~/ffmpeg_x86_build                             \
    --cross-prefix=~/x86_toolchain/bin/i686-linux-android-  \
    --sysroot=~/x86_toolchain/sysroot                       \
    --enable-cross-compile                                  \
    --pkg-config-flags="--static"                           \
    --enable-yasm                                           \
    --enable-ffmpeg                                         \
    --disable-ffplay                                        \
    --disable-ffprobe                                       \
    --disable-ffserver                                      \
    --disable-doc                                           \
    --disable-htmlpages                                     \
    --disable-manpages                                      \
    --disable-podpages                                      \
    --disable-txtpages                                      \

    make clean
    make install

    The error im getting now is :

    ~/x86_toolchain/bin/i686-linux-android-gcc is unable to create an executable file.
    C compiler test failed.

    In the log file, it seems like it cant access the compiler, even though he is OK (i tested it with a simple hello world).Also its not a permission problem(Everybody has read write access)

    ~/x86_toolchain/bin/i686-linux-android-gcc -fPIC -c -o /tmp/ffconf.yYKPHtht.o /tmp/ffconf.Nxskyxyb.c
    ./configure: 874: ./configure: ~/x86_toolchain/bin/i686-linux-android-gcc: not found
    C compiler test failed.

    So i’m clearly doing something wrong.Does anyone know why ? And how should i do it instead ?

  • How do I configure codec parameters for a RTSP stream ?

    16 mai 2024, par Kermit

    I am trying to stream a network camera source into /dev/video0. However, all attempts keep telling me I have set incorrect codec parameters. Any suggestions ?

    &#xA;

    # works&#xA;ffplay rtsp://admin:password@172.16.0.184:554/live&#xA;

    &#xA;

    Then trying any of these to feed into /dev/video0 (valid from list of ls /dev/video*) :

    &#xA;

    ffmpeg -rtsp_transport tcp -i "rtsp://admin:password@172.16.0.184:554/live" -c:v rawvideo -pix_fmt yuv420p -f v4l2 /dev/video0&#xA;

    &#xA;

    Results in

    &#xA;

    ffmpeg version 5.1.4-0&#x2B;rpt3&#x2B;deb12u1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 12 (Debian 12.2.0-14)&#xA;  configuration: --prefix=/usr --extra-version=0&#x2B;rpt3&#x2B;deb12u1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared&#xA;  libavutil      57. 28.100 / 57. 28.100&#xA;  libavcodec     59. 37.100 / 59. 37.100&#xA;  libavformat    59. 27.100 / 59. 27.100&#xA;  libavdevice    59.  7.100 / 59.  7.100&#xA;  libavfilter     8. 44.100 /  8. 44.100&#xA;  libswscale      6.  7.100 /  6.  7.100&#xA;  libswresample   4.  7.100 /  4.  7.100&#xA;  libpostproc    56.  6.100 / 56.  6.100&#xA;Input #0, rtsp, from &#x27;rtsp://admin:password@172.16.0.184:554/live&#x27;:&#xA;  Metadata:&#xA;    title           : Media Server&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, 30 fps, 100 tbr, 90k tbn&#xA;  Stream #0:1: Audio: aac (LC), 32000 Hz, mono, fltp&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (hevc (native) -> rawvideo (native))&#xA;Press [q] to stop, [?] for help&#xA;[video4linux2,v4l2 @ 0x55562d9faa70] ioctl(VIDIOC_G_FMT): Invalid argument&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Error initializing output stream 0:0 -- &#xA;Conversion failed!&#xA;

    &#xA;

  • Layout Video Recording Like Instgram/ Ticktok Feature

    21 mars 2023, par Amarchand K

    I'm try to do record video inn different layouts like Instagram in Flutter. For this feature I used ffmpeg_kit_flutter package. I refers this solution to do this. but output video is blank, any one helps me to solve this.&#xA;the video input and output path is valid, also show the bellow error while printing,

    &#xA;

    `ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers&#xA;    built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)&#xA;    configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang&#x2B;&#x2B; --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs=&#x27;-L/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --enable-iconv --disable-sdl2 --disable-openssl --enable-zlib --enable-mediacodec&#xA;    libavutil      57. 28.100 / 57. 28.100&#xA;    libavcodec     59. 37.100 / 59. 37.100&#xA;    libavformat    59. 27.100 / 59. 27.100&#xA;    libavdevice    59.  7.100 / 59.  7.100&#xA;    libavfilter     8. 44.100 /  8. 44.100&#xA;    libswscale      6.  7.100 /  6.  7.100&#xA;    libswresample   4.  7.100 /  4.  7.100&#xA;  -vsync is deprecated. Use -fps_mode&#xA;  Passing a number to -vsync is deprecated, use a string argument as described in the manual.&#xA;  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.example.tuki_taki/cache/REC1453994379216336834.mp4&#x27;:&#xA;    Metadata:&#xA;      major_brand     : mp42&#xA;      minor_version   : 0&#xA;      compatible_brands: isommp42&#xA;      creation_time   : 2023-03-21T07:15:58.000000Z&#xA;      com.android.version: 12&#xA;    Duration: 00:00:03.77, start: 0.000000, bitrate: 2204 kb/s&#xA;    Stream #0:0[0x1](eng): Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt470bg/smpte170m/bt709, progressive, left), 640x480, 2199 kb/s, 29.61 fps, 29.58 tbr, 90k tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-03-21T07:15:58.000000Z&#xA;        handler_name    : VideoHandle&#xA;        vendor_id       : [0][0][0][0]&#xA;      Side data:&#xA;        displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-03-21T07:15:58.000000Z&#xA;        handler_name    : SoundHandle&#xA;        vendor_id       : [0][0][0][0]&#xA;  Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.example.tuki_taki/cache/REC5972384708251368209.mp4&#x27;:&#xA;    Metadata:&#xA;      major_brand     : mp42&#xA;      minor_version   : 0&#xA;      compatible_brands: isommp42&#xA;      creation_time   : 2023-03-21T07:16:05.000000Z&#xA;      com.android.version: 12&#xA;    Duration: 00:00:02.84, start: 0.000000, bitrate: 2703 kb/s&#xA;    Stream #1:0[0x1](eng): Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt470bg/smpte170m/bt709, progressive, left), 640x480, 2801 kb/s, 29.61 fps, 29.58 tbr, 90k tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-03-21T07:16:05.000000Z&#xA;        handler_name    : VideoHandle&#xA;        vendor_id       : [0][0][0][0]&#xA;      Side data:&#xA;        displaymatrix: rotation of -90.00 degrees&#xA;    Stream #1:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-03-21T07:16:05.000000Z&#xA;        handler_name    : SoundHandle&#xA;        vendor_id       : [0][0][0][0]&#xA;  Stream mapping:&#xA;    Stream #0:0 (h264) -> scale:default&#xA;    Stream #0:1 (aac) -> amix&#xA;    Stream #1:0 (h264) -> scale:default&#xA;    Stream #1:1 (aac) -> amix&#xA;    hstack:default -> Stream #0:0 (mpeg4)&#xA;    amix:default -> Stream #0:1 (aac)&#xA;  Press [q] to stop, [?] for help&#xA;  Output #0, mp4, to &#x27;/data/user/0/com.example.tuki_taki/cache/output.mp4&#x27;:&#xA;    Metadata:&#xA;      major_brand     : mp42&#xA;      minor_version   : 0&#xA;      compatible_brands: isommp42&#xA;      com.android.version: 12&#xA;      encoder         : Lavf59.27.100&#xA;    Stream #0:0: Video: mpeg4, 1 reference frame (mp4v / 0x7634706D), yuv420p(progressive), 960x640 (0x0) [SAR 1:1 DAR 3:2], q=2-31, 200 kb/s, 29.58 fps, 11360 tbn&#xA;      Metadata:&#xA;        encoder         : Lavc59.37.100 mpeg4&#xA;      Side data:&#xA;        cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, delay 1024, 69 kb/s&#xA;      Metadata:&#xA;        encoder         : Lavc59.37.100 aac&#xA;  frame=    1 fps=0.0 q=4.3 size=       0kB time=00:00:00.23 bitrate=   1.5kbits/s speed=3.49x    &#xA;

    &#xA;

    [mpeg4 @ 0xb400007122ebac50] Invalid pts (8) <= last (8)&#xA;Error submitting video frame to the encoder&#xA;[aac @ 0xb4000071232208c0] Qavg : 9911.349&#xA;[aac @ 0xb4000071232208c0] 2 frames left in the queue on closing&#xA;Conversion failed`

    &#xA;

    I'm tried

    &#xA;

      `Future<void> onLayoutDone() async {&#xA;try {&#xA;  final String outputPath = await _getTempPath();   &#xA;  const String filter =&#xA;      "[0:v]scale=480:640,setsar=1[l];[1:v]scale=480:640,setsar=1[r];[l][r]hstack;[0][1]amix -vsync 0 ";    &#xA;  log("left path: ${layoutVideoPathList[0]} right : ${layoutVideoPathList[1]} $outputPath");     &#xA;  final String command =" -y -i ${layoutVideoPathList[0]} -i ${layoutVideoPathList[1]} -filter_complex$filter$outputPath -loglevel verbose"; `these paths are valid`    &#xA;     &#xA;  await FFmpegKit.execute(command).then((value) async {      &#xA;    String? error = await value.getAllLogsAsString();    &#xA;    log(error!);    &#xA;    final ReturnCode? returnCode = await value.getReturnCode();    &#xA;    if (returnCode != null) {&#xA;      setVideo(videoPath: outputPath);    &#xA;      layoutVideoPathList.clear();    &#xA;    }&#xA;  });&#xA;} catch (e) {&#xA;  log("error while  combine -========-=-=-=-=-=-=-=-=- $e");    &#xA;}`&#xA;</void>

    &#xA;