Recherche avancée

Médias (91)

Autres articles (88)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • syncing a video file with audio using ffmpeg is returning a video without audio

    31 juillet 2019, par abbood

    When I attempt to sync a .mov video with an .m4a audio file using ffmpeg like so

    ffmpeg -ss 00:00:2 -i test.m4a  -i test.mov -c:v copy -c:a aac -strict experimental output.mp4

    it works like a charm. But right now I’ve recorded a usability test video using adobe XD, and it returned an .mp4 (MPEG-4) video and I manually recorded the audio using quicktimre returning a .m4a audio file.

    Trying to merge them using ffmpeg is returning a video without any audio :

    ffmpeg -i video.mp4  -i audio.m4a -c:v copy -c:a aac -strict experimental output.mp4
    ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-opencl --enable-videotoolbox
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2019-07-31T14:43:18.000000Z
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: MacBookPro15,1
       com.apple.quicktime.software: Mac OS X 10.14.5 (18F203)
       com.apple.quicktime.creationdate: 2019-07-31T17:43:17+0300
     Duration: 00:03:46.05, start: 0.000000, bitrate: 498 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 374x812 [SAR 1:1 DAR 187:406], 390 kb/s, 60 fps, 60 tbr, 6k tbn, 12k tbc (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Video
         encoder         : H.264
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, stereo, fltp, 0 kb/s (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Audio
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'audio.m4a':
     Metadata:
       major_brand     : M4A
       minor_version   : 0
       compatible_brands: M4A mp42isom
       creation_time   : 2019-07-31T14:47:26.000000Z
       iTunSMPB        :  00000000 00000840 00000000 00000000009DFBC0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     Duration: 00:03:54.78, start: 0.047891, bitrate: 225 kb/s
       Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 224 kb/s (default)
       Metadata:
         creation_time   : 2019-07-31T14:47:26.000000Z
         handler_name    : Core Media Audio
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [aac @ 0x7fb5a4806a00] Too many bits 16384.000000 > 12288 per frame requested, clamping to max
    Output #0, mp4, to 'output.mp4':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       com.apple.quicktime.creationdate: 2019-07-31T17:43:17+0300
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: MacBookPro15,1
       com.apple.quicktime.software: Mac OS X 10.14.5 (18F203)
       encoder         : Lavf58.20.100
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 374x812 [SAR 1:1 DAR 187:406], q=2-31, 390 kb/s, 60 fps, 60 tbr, 12k tbn, 6k tbc (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Video
         encoder         : H.264
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, stereo, fltp, 96 kb/s (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Audio
         encoder         : Lavc58.35.100 aac
    frame=13563 fps=0.0 q=-1.0 Lsize=   10903kB time=00:03:46.08 bitrate= 395.1kbits/s speed= 916x
    video:10699kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.805767%

    How can I get around this limitation ?

  • ffmpeg 4.1.4 wav to mp3 error who can help me

    23 août 2019, par yang jia

    [swscaler @ 0xc946d000] deprecated pixel format used, make sure you did set range correctly

    [mp3 @ 0xc9621600] Frame rate very high for a muxer not efficiently supporting it.

    Please consider specifying a lower framerate, a different muxer or -vsync 2

    [auto_resampler_0 @ 0xd8e73be0] [SWR @ 0xc8058000] Output channel layout ’6 channels (FLC+BC+SL+SR+TC+TFL)’ is not supported

    [auto_resampler_0 @ 0xd8e73be0] Failed to configure output pad on auto_resampler_0

    Error reinitializing filters !

    Failed to inject frame into filter network : Invalid argument
    Error while processing the decoded data for stream #0:0
    --------- beginning of crash
    2019-02-26 16:04:58.368 27737-27737/com.blplayer.jbl.blplayer A/libc : Fatal signal 7 (SIGBUS), code 1, fault addr 0xc5ca in tid 27737 (er.jbl.blplayer)

    cmd

    ffmpeg -i test.wav -acodec libmp3lame -ar 8000 -ac 2 -y wav2mp3.mp3

     ![enter image description here]this is the log(https://i.stack.imgur.com/Kjs1Q.png)

  • Failed Concatenate after segmentation with time_timestamps 1

    30 juillet 2019, par user2190197

    I’m trying strip video file to segments, and concatenate some parts :
    code for strip video :

    -y -i $dirs[input] -c copy -map 0 -segment_time 0.001 -f segment -reset_timestamps 1 $dirs[process_dir]%d.mp4

    Concat :

    -y -safe 0 -f concat -i $temp_file -c copy \"$dirs[output]\"

    Where $temp_file is correct .txt file ;

    Sometimes ffmpeg ruins final video length. There’s log :

    ffmpeg version 3.3.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-4) 20170820
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from '/var/www/vhost.d/ffmpeg/htdocs/output_videos/0/227/2019-07-30-09-29-36.txt':
     Duration: N/A, start: -0.046440, bitrate: 1822 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1370x720 [SAR 2056:2055 DAR 257:135], 1757 kb/s, 29.95 fps, 29.95 tbr, 19168 tbn, 59.90 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to '/var/www/vhost.d/ffmpeg/htdocs/output_videos/0/227/227_45.mp4':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p, 1370x720 [SAR 2056:2055 DAR 257:135], q=2-31, 1757 kb/s, 29.95 fps, 29.95 tbr, 19168 tbn, 19168 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 19 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fae700] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 2 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 15 times
    [mp4 @ 0x3fe61a0] Non-monotonous DTS in output stream 0:0; previous: 2156122, current: 2156089; changing to 2156123. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3fe61a0] Non-monotonous DTS in output stream 0:1; previous: 4961225, current: 4960677; changing to 4961226. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3fe61a0] Application provided duration: 189408058806 is invalid
    av_interleaved_write_frame(): Invalid argument
    frame= 3364 fps=0.0 q=-1.0 Lsize=   26195kB time=00:01:52.51 bitrate=1907.2kbits/s speed= 237x
    video:25192kB audio:884kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.457517%
    Conversion failed!

    If i remove reset_timestamps 1, video duration would be correct, but the video will have bugs, for example, some parts will slow down