Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (58)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (5321)

  • ffmpeg : concat videos with different number of streams

    3 juillet 2021, par qurban

    I'm having trouble with concatenating two videos with different number of streams. Please see the number of streams in both the videos below :

    


    video 1 :

    


      Metadata:
    creation_time   : 2021-07-02T10:23:13.000000Z
  Duration: 00:00:08.38, start: 0.000000, bitrate: 24739 kb/s
    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 24736 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:30:15
    Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Time Code Media Handler
      reel_name       : Untitled
      timecode        : 00:00:30:15


    


    Video 2 :

    


    Metadata:
    creation_time   : 2021-07-02T10:23:28.000000Z
  Duration: 00:00:08.33, start: 0.000000, bitrate: 26411 kb/s
    Stream #0:0(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:28.000000Z
      handler_name    : Libquicktime Sound Media Handler
    Stream #0:1(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 24872 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:28.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:39:00
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:28.000000Z
      handler_name    : Libquicktime Time Code Media Handler
      reel_name       : Untitled
      timecode        : 00:00:39:00


    


    So, clearly the video 1 has two streams and video 2 has three streams. Could someone please let me know how can I concatenate them ?

    


    I have tried :
ffmpeg -y -f concat -safe 0 -i /path/to/files.txt -codec copy /path/to/output.mov

    


    But it gives the following error :

    


    [concat @ 0x12dfd00] Could not find codec parameters for stream 1 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, concat, from '/path/to/files.txt':
  Duration: N/A, start: 0.000000, bitrate: 24736 kb/s
    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 24736 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:30:15
    Stream #0:1: Unknown: none
Output #0, mov, to '/path/to/output.mov':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 24736 kb/s, 0.04 fps, 24 tbr, 19200 tbn, 2400 tbc
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:30:15
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[concat @ 0x12dfd00] New (null) stream 0:2 at pos:27508735 and DTS:0.223333s
frame=  601 fps=0.0 q=-1.0 Lsize=   26856kB time=00:05:33.90 bitrate= 658.9kbits/s speed=1.07e+04x    
video:26852kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015271%


    


    In my situation, sometimes the videos have same number of streams and sometimes different number of streams (with only video stream or with both video and audio streams). Ideally, I'm looking for an ffmpeg command which works in both situations. Is it possible ?

    


  • ffmpeg - spark - azure databricks - error writing trailer of "filename.mp3" : Operation not supported

    4 juillet 2021, par CRAFTY DBA

    I have been trying to figure out this tough problem.

    


    I am trying to convert *.mp4 files to *.mp3 files.

    


    I tried using MoviePy but I found out that is uses ffmpeg and was having the same issue.

    


    I used these two articles to get the latest version of ffmpeg installed on the Azure Databricks Cluster during startup. I am using a single node cluster for this POC code.

    


    Pyspark : Use ffmpeg on the driver and workers
    
https://ubuntuhandbook.org/index.php/2020/06/install-ffmpeg-4-3-via-ppa-ubuntu-18-04-16-04

    


    The issue is that even the simplest command results in errors.

    


    %%bash ffmpeg -i /dbfs/Craftydba/recording.mp4 /dbfs/Craftydba/recording.mp3

    


    I even tried .wav as an output format and still the same issue.

    


    I retested this command on a Data Science VM in Azure with Python and FFMPEG. It works fine on that OS/Build.

    


    It has something to do with the version of the code on the spark cluster.

    


    Any help is appreciated.

    


    Sincerely

    


    John Miner

    


    PS : I am add a dump of the OS version as well as a ffmpeg error.

    


    Os Version Dump

    


    NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

    


    FFMPEG Dump

    


    ffmpeg version 4.3.2-0york0~18.04 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/dbfs/Craftydba/recording.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2
    creation_time   : 2021-06-18T19:07:17.000000Z
  Duration: 00:04:48.64, start: 0.000000, bitrate: 1065 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 1000 kb/s, 7.96 fps, 8 tbr, 10k tbn, 20k tbc (default)
    Metadata:
      creation_time   : 2021-06-18T19:07:17.000000Z
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 63 kb/s (default)
    Metadata:
      creation_time   : 2021-06-18T19:07:17.000000Z
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '/dbfs/Craftydba/recording.mp3':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2
    TSSE            : Lavf58.45.100
    Stream #0:0(eng): Audio: mp3 (libmp3lame), 16000 Hz, mono, fltp (default)
    Metadata:
      creation_time   : 2021-06-18T19:07:17.000000Z
      encoder         : Lavc58.91.100 libmp3lame
Error writing trailer of /dbfs/Craftydba/recording.mp3: Operation not supported
size=     846kB time=00:04:48.65 bitrate=  24.0kbits/s speed=86.9x    
video:0kB audio:846kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.036945%


    


  • FFMPEG muxing overhead unknown creating HLS Live stream from mp4 files

    9 juillet 2021, par user72261

    I am using FFMPEG Concatenate to combine a number of mp4 files into a live HLS stream after around 40 seconds FFMPEG stops with error.

    


    I am working in PHP launching the FFMPEG command from there using exec as this project relies on users input from there own control panels.

    


    This is the error i am getting.

    


    ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  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
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  0.100 / 59.  0.100
  libavformat    59.  0.100 / 59.  0.100
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x72fdcc0] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from '/storage/($username)/hls/playlist.txt':
  Duration: N/A, start: 0.000000, bitrate: 1404 kb/s
  Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 1183 kb/s, 25 fps, 25 tbr, 180k tbn
    Metadata:
      handler_name    : Edgeware Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
    Metadata:
      handler_name    : Edgeware Audio Media Handler
      vendor_id       : [0][0][0][0]
Output #0, hls, to '/storage/($username)/hls/playlist.m3u8':
  Metadata:
    encoder         : Lavf59.0.100
  Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1183 kb/s, 25 fps, 25 tbr, 90k tbn
    Metadata:
      handler_name    : Edgeware Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
    Metadata:
      handler_name    : Edgeware Audio Media Handler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7314640] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_0.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7300740] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_1.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_2.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_3.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_4.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_5.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_6.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_7.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_8.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_9.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
frame=  900 fps=0.0 q=-1.0 Lsize=N/A time=00:00:36.03 bitrate=N/A speed= 268x    
video:7232kB audio:973kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown


    


    This is the FFMPEG command i am running

    


    exec('ffmpeg -y -nostdin -hide_banner -re -f concat -safe 0 -i "' . $CONCAT_FILE . '" -c copy -f hls -start_number 0 -hls_init_time 4 -hls_time 4 -hls_list_size 8 -hls_segment_type mpegts -hls_allow_cache 0 -hls_flags delete_segments+discont_start -hls_segment_filename "' . $SEGMENT_FORMAT . '" "' . $PLAYLIST_NAME . '" );


    


    All mp4 files are encoded to h264 with the same specifications and if the video has audio it is encoded to aac.

    


    I am also using the latest version of the FFMPEG binary for linux.

    


    Has anyone else faced this issue ?