Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (63)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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" ;

Sur d’autres sites (8806)

  • ffmpeg get orientation inverted

    16 novembre 2018, par Faabass

    I getting the resolution for a video, but ffmpeg/ffprobe is getting inverted.. Always the biggest number is the width.

    I mean, it doesn’t matter if I’m getting the resolution of a vertical or horizontal video, I’m always getting for example 640x480 when it should be 480x640. Also I tried with the aspect ratio as 4:3 instead of 3:4

    ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 original.mp4

    So my question is how I can get the right resolution or at least the orientation I need to know if the video is horizontal or vertical.

    See full response :

    ffprobe -select_streams v:0 -show_entries stream=width,height -of csv=p=0 original.mp4
    ffprobe version N-86781-gd8f1982639-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2017 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 67.100 / 55. 67.100
     libavcodec     57.100.104 / 57.100.104
     libavformat    57. 75.100 / 57. 75.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 95.100 /  6. 95.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x4ff7e60] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-11-12T22:15:04.000000Z
       com.android.version: 7.0
     Duration: 00:01:10.30, start: 0.000000, bitrate: 9497 kb/s
       Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 1280x720, 9365 kb/s, SAR 1:1 DAR 16:9, 23.97 fps, 24 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 270
         creation_time   : 2018-11-12T22:15:04.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of 90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2018-11-12T22:15:04.000000Z
         handler_name    : SoundHandle
    1280,720

    but this is the appearance of the video
    enter image description here

  • 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%