Recherche avancée

Médias (91)

Autres articles (33)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (4998)

  • ffmpeg closes with operation not permitted in android

    27 avril 2022, par DevSharma

    I am running FFmpeg in my app and specifically in "Android 11" I am getting this error from several users

    


    I have researched a lot but no solution found.

    


    I thought there is something wrong with the codec parameter that is being passed since it is saying "incorrect codec parameters" but most of the parameters looks good.

    


    also verified if all the required file permission are granted and those are good too

    


    now I m unable to find the problem,

    


    please help, thanks

    


    Command:&#xA;/data/app/~~hyrHVcslcfdQcguX0rauRA==/<apppackage>-QbDCul7FXU4tVniSDeP1Sg==/lib/arm64/libffmpeg.so -i /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/VID-20220414-WA0010.mp4 -c:v libx264 -crf 23 -map 0:V -map 0:a? -map 0:s? -c:s mov_text -segment_time 26 -g 26 -sc_threshold 0 -force_key_frames expr:gte(t,n_forced*26) -reset_timestamps 1 -f segment -preset ultrafast /storage/emulated/0/Movies/splitVideoFolder/split_video%03d.mp4&#xA;&#xA;Error:&#xA;ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)&#xA;  configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/admin/AndroidStudioProjects/android-ndk-r21d/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/admin/AndroidStudioProjects/Tanner/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/local/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang&#x2B;&#x2B; --extra-libs=&#x27;-L/Users/admin/AndroidStudioProjects/Tanner/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-shared --disable-ffplay --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-static --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-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libass --enable-iconv --enable-libx264 --enable-gpl --disable-sdl2 --enable-zlib --enable-mediacodec&#xA;  libavutil      56. 55.100 / 56. 55.100&#xA;  libavcodec     58. 96.100 / 58. 96.100&#xA;  libavformat    58. 48.100 / 58. 48.100&#xA;  libavdevice    58. 11.101 / 58. 11.101&#xA;  libavfilter     7. 87.100 /  7. 87.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/VID-20220414-WA0010.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42isom&#xA;  Duration: 00:01:30.53, start: 0.000000, bitrate: 671 kb/s&#xA;    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 576x1024 [SAR 1:1 DAR 9:16], 539 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)&#xA;    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0xb400007727c64800] using SAR=1/1&#xA;[libx264 @ 0xb400007727c64800] using cpu capabilities: ARMv8 NEON&#xA;[libx264 @ 0xb400007727c64800] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 0xb400007727c64800] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=26 keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0&#xA;[segment @ 0xb400007727c28800] Opening &#x27;/storage/emulated/0/Movies/splitVideoFolder/split_video000.mp4&#x27; for writing&#xA;[segment @ 0xb400007727c28800] Failed to open segment &#x27;/storage/emulated/0/Movies/splitVideoFolder/split_video000.mp4&#x27;&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted&#xA;Error initializing output stream 0:0 --&#xA;[aac @ 0xb400007727c65700] Qavg: 18220.703&#xA;[aac @ 0xb400007727c65700] 2 frames left in the queue on closing&#xA;Conversion failed!&#xA;</apppackage>

    &#xA;

  • How to Extract Lyrics (USLT frame) from Mp3 using FFmpeg ?

    1er mai 2022, par Wonderer

    I'm using Mp3tag's "Tools" feature to batch run FFmpeg in Windows, in order to batch extract the embedded lyrics content (USLT frame of ID3v2 tag) from MP3 files, I know with FFmpeg I can do something like :

    &#xA;

    -i "%_path%" -f ffmetadata "%_folderpath%\%_filename%.txt"&#xA;

    &#xA;

    "%_path%" = full path of the MP3 file

    &#xA;

    "%_folderpath%%_filename%.txt" = path and filename of the exported txt file.

    &#xA;

    The command above extracts all the metadata from MP3 file and export them into a txt file with the following cotent for example :

    &#xA;

    ;FFMETADATA1&#xA;album=name of the album&#xA;artist=name of the artist&#xA;title=name of the title&#xA;lyrics-eng=[00:01.23]line1 of lyrics&#xA;\&#xA;[00:04.56]line2 of lyrics&#xA;\&#xA;[00:07.89]line3 of lyrics&#xA;\&#xA;[01:03.12]3rd last line of lyrics&#xA;\&#xA;[02:04.34]2nd last line of lyrics&#xA;\&#xA;[03:05.67]Last line of lyrics&#xA;\&#xA;&#xA;date=2020&#xA;encoder=Lavf59.23.100&#xA;

    &#xA;

    (the original lyrics uses Simple LRC format with timestamps in each line, certain lines contain only the timestamp with empty lyrics)

    &#xA;

    (There might (or might not) be additional metadata (e.g. date and encoder in the example above) following the lyrics part)

    &#xA;

    As seen above, the backslash "\" (which is not present in the original lyrics) is somehow added after each line of lyrics, between CR (CarriageReturn) and LF (LineFeed) as seen in Notepad++ (the original lyrics use CRLF as EOL characters).

    &#xA;

    So how do I modify the given command line to export only the lyrics part (exluding all other metadata and the extra backslash "\"), an example of the expected text file content is shown below :

    &#xA;

    [00:01.23]line1 of lyrics&#xA;[00:04.56]line2 of lyrics&#xA;[00:07.89]line3 of lyrics&#xA;[01:03.12]3rd last line of lyrics&#xA;[02:04.34]2nd last line of lyrics&#xA;[03:05.67]Last line of lyrics&#xA;

    &#xA;

    with the original EOL characters from lyrics such as CRLF

    &#xA;

  • How to allow other site via nginx to use my content ?

    3 septembre 2020, par GG GG

    i use nginx - rtmp technique to restream the m3u8 stream via ffmpeg and then play it on the website. I have following restream m3u8 from my server, which is playable perfetly in vlc player https://hls.tvoti.com/rtl2/playlist.m3u8&#xA;But i can not play it on the website see demo. I use following code to allow website use the stream, and is it not correct ? :

    &#xA;

    server {&#xA;    listen   80; &#xA;&#xA;    #root /var/www/html/; &#xA;    #index index.php index.html index.htm;&#xA;&#xA;    server_name tvoti.com; &#xA;&#xA;    location / {&#xA;    proxy_redirect off; &#xA;        proxy_set_header X-Real-IP  $remote_addr;&#xA;        proxy_set_header X-Forwarded-For $remote_addr;&#xA;    proxy_set_header X-Forwarded-Proto $scheme;&#xA;        proxy_set_header Host $host;&#xA;        proxy_pass http://127.0.0.1:8080;&#xA;    }&#xA;&#xA;    location ~ /\.ht {&#xA;        deny all;&#xA;    }&#xA;}&#xA;&#xA;server {&#xA;    listen       80;&#xA;    server_name  hls.tvoti.com;&#xA;&#xA;    location / {&#xA;        add_header Cache-Control no-cache;&#xA;&#xA;    set $cors_origin "https://rtllivestreamkostenlos.com";&#xA;&#xA;    if ($http_origin ~* (^https?://([^/]&#x2B;\.)*(tvoti|rtllivestreamkostenlos.com)\.com$)) {&#xA;            set $cors_origin "$http_origin";&#xA;        }&#xA;&#xA;    add_header "X-Dbg" "$cors_origin" always;&#xA;&#xA;        # Simple requests&#xA;        if ($request_method ~* "(GET|POST)") {&#xA;            add_header "Access-Control-Allow-Origin"  "$cors_origin";&#xA;        }&#xA;&#xA;        # Preflighted requests&#xA;        if ($request_method = OPTIONS ) {&#xA;            add_header "Access-Control-Allow-Origin"  "$cors_origin";&#xA;            add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";&#xA;            add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";&#xA;            return 200;&#xA;        }&#xA;        root   /etc/nginx/hls;&#xA;    }&#xA;&#xA;    location /supervisor {&#xA;        proxy_pass http://127.0.0.1:9999/;&#xA;    }&#xA;&#xA;    #error_page  404              /404.html;&#xA;&#xA;    # redirect server error pages to the static page /50x.html&#xA;    #&#xA;    error_page   500 502 503 504  /50x.html;&#xA;    location = /50x.html {&#xA;        root   html;&#xA;    }&#xA;&#xA;}&#xA;

    &#xA;