Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (62)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (12156)

  • Cannot Play Video Output of Libavcodec (ffmpeg) Encoding Example

    29 octobre 2019, par user3707763

    From FFMPEG’s GitHub, I use the encode_video.c to generate a 1 second video. Here is the example in question : https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/encode_video.c

    I compile with : gcc -Wall -o ffencode encode_video.c -lavcodec -lavutil -lz -lm

    Clean compile, zero warnings.

    I test the program by running : ./ffencode video.mp4 libx264

    Lots of stats printed out (expected based on source code) as well as ffmpeg logs, but ultimately no errors or warnings.

    However, then the generated output video.mp4, can only be played by ffplay, and VLC Player (as well as Google Chrome) fail to play the video.

    Playing it via vlc command line actually prints :

    [00007ffd3550fec0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    TagLib: MP4: Invalid atom size
    TagLib: MP4: Invalid atom size
    TagLib: MP4: Invalid atom size

    Looking at ffprobe output, the bitrate and duration fields are empty :

    Input #0, h264, from 'video.mp4':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p(progressive), 352x288, 25 fps, 25 tbr, 1200k tbn, 50 tbc

    I am using ffmpeg 4.1 with the following configuration :

    ffprobe version 4.1 Copyright (c) 2007-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 --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

    Any ideas how to fix this ? It is pretty surprising to see an API’s official example to be lacking such basic information.

  • ffmbc : QuickTime to XDCAMHD422 MXF

    13 novembre 2018, par Ze'ev

    Trying to create an XDCAMHD422 MXF with video from a QuickTime and audio from a stereo WAV.

    Audio is pcm_s24le, 48000 Hz, 2 channels, s32

    But output is mixed :

    Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.2(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s

    And shows alert : Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 's16'

    (For XDCAM, it’s necessary to split stereo into dual mono.)

    Command :

    ffmbc -i "$v" -i "$a" -tff -timecode 07:00:00:00 \
    -map_audio_channel 1:0:0:0:1:0 \
    -map_audio_channel 1:0:1:0:2:0 \
    -acodec pcm_s24le -ar 48000 -ac 2 \
    -target xdcamhd422 -vtag xd5c -y  -t 1 "$o" \
    -acodec pcm_s24le -newaudio

    Output :

    FFmbc version 0.7.2
    Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mov':
     Metadata:
       major_brand: qt
       minor_version: 537199360
       compatible_brands: qt
       timecode: 00:00:00:00
     Duration: 00:00:30.00, bitrate: 188317 kb/s
       Stream #0.0(eng): Video: prores, yuv422p10le, 1920x1080p, 186502 kb/s, PAR 1:1 DAR 16:9, 25.00 fps
       Metadata:
         codec_name: Apple ProRes 422 (HQ)
       Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
       Stream #0.2(eng): Data: unknown (tmcd)
    Input #1, wav, from 'audio.wav':
     Metadata:
       encoded_by: Pro Tools
       originator_reference: aaOpK7OBThOk
       date: 2018-11-08
       creation_time: 14:10:50
       time_reference: 175680000
     Duration: 00:00:30.00, bitrate: 2316 kb/s
       Stream #1.0(und): Audio: pcm_s24le, 48000 Hz, 2 channels, s32, 2304 kb/s
    [scale @ 0x7ff9f48009a0] w:1920 h:1080 fmt:yuv422p10le -> w:1920 h:1080 fmt:yuv422p flags:0x4 il:0
    Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 's16'
    Output #0, mxf, to 'mxftest3.mxf':
     Metadata:
       encoder: FFmbc 0.7
       Stream #0.0(und): Video: mpeg2video, yuv422p, 1920x1080i tff [PAR 1:1 DAR 16:9], cbr, 50000 kb/s, 25.00 fps
       Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
       Stream #0.2(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #1.0 -> #0.1 [channel: 0 -> 0]
     Stream #1.0 -> #0.2 [channel: 1 -> 0]
    Press [q] to stop, [?] for help
    frame=   25 fps=  8 q=2.0 Lsize=    7586kB time=00:00:01.00 bitrate=62145.0kbits/s
    video:7309kB audio:236kB global headers:0kB muxing overhead 0.541060%
  • ffmpeg : "Referenced QT chapter track not found"

    29 avril 2019, par Ze'ev

    Using ffmpeg to replace audio in a QuickTime with audio from a WAV.

    Anyone know why I’m getting Referenced QT chapter track not found ?

    Command :

    $ ffmpeg \
    -i "$video" -t 25 \
    -i "$audio" -map 0:v -c:v copy -map 1:a -c:a pcm_s24le -ar 48000 \
    -hide_banner "$output"

    Output :

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7faf62010600] Referenced QT chapter track not found
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       creation_time   : 2018-11-06T09:27:43.000000Z
     Duration: 00:00:25.00, start: 0.000000, bitrate: 186987 kb/s
       Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709, progressive), 1920x1080, 185115 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 2018-11-06T09:27:43.000000Z
         handler_name    : Apple Alias Data Handler
         encoder         : Apple ProRes 422 (HQ)
         timecode        : 00:00:00:00
       Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
       Metadata:
         creation_time   : 2018-11-06T09:27:43.000000Z
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00:00
       Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
       Metadata:
         creation_time   : 2018-11-06T09:27:43.000000Z
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00:00
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, wav, from 'audio.wav':
     Metadata:
       encoded_by      : Pro Tools
       originator_reference: aaOpKJaTN7Nk
       date            : 2018-11-08
       creation_time   : 13:53:50
       time_reference  : 166698000
     Duration: 00:00:25.00, bitrate: 2128 kb/s
       Stream #1:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s32 (24 bit), 2116 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #1:0 -> #0:1 (pcm_s24le (native) -> pcm_s24le (native))
    Press [q] to stop, [?] for help
    Output #0, mov, to 'test19.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       encoder         : Lavf58.12.100
       Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 185115 kb/s, 0.04 fps, 25 tbr, 12800 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 2018-11-06T09:27:43.000000Z
         handler_name    : Apple Alias Data Handler
         encoder         : Apple ProRes 422 (HQ)
         timecode        : 00:00:00:00
       Stream #0:1: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
       Metadata:
         encoder         : Lavc58.18.100 pcm_s24le
    frame=  625 fps=277 q=-1.0 Lsize=  566343kB time=00:00:24.96 bitrate=185876.0kbits/s speed=11.1x
    video:564928kB audio:1406kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001496%

    Same error with -map 0:v:0