Recherche avancée

Médias (91)

Autres articles (103)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (8802)

  • Maintain aspect ratio with ffmpeg for television format

    9 avril 2020, par Elmo

    I'm trying to capture screen images into a pipe in ffmpeg and create a video.
This is how it works :

    



    -f lavfi -i anullsrc=r=48000:cl=stereo -f image2pipe -r 25 -i pipe: -target pal-dv25 -vcodec dvvideo -vf yadif=1:-1:0,interlace=bff,setdar=1.85:1 -flags +ildct+ilme -c:a pcm_s16le -maxrate 5000k -r 25 -f mov -shortest -map 0:a -map 1:v -y out.mov


    



    The problem is that the images have a 16:9 resolution and I get 16:9 in original_aspect_ratio line in Mediainfo with dar=1.85:1 but I need 4:3 also with dar=1.85:1.

    



    How can I achieve this ? I tried to change ratio of input images with -aspect 4:3 but this leads to the resolution of the video be only 4:3 without dar=1.85:1

    


  • Ffmpeg change aspect ratio do not succeeded

    23 mars 2020, par Ngoral

    I’m trying to change the aspect ratio of video, cause it’s being showed in a wrong way (it sould be 16:9 but shows 3:4).
    I’ve tried a lot of things, and none worked.
    E.g. I’ve tried to set SAR, but it changes DAR, so the aspect ratio stays the same. Here’s an example :

    ffmpeg -y -i rtmp://localhost/in/air-hdmi -vf "setsar=sar=16/9" -f flv rtmp://localhost/in/ngoraltestffmpeg


       ffmpeg version N-80388-gfd1d84b Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --prefix=/home/anastasia/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/anastasia/ffmpeg_build/include --extra-ldflags=-L/home/anastasia/ffmpeg_build/lib --bindir=/home/anastasia/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 46.100 / 57. 46.100
     libavformat    57. 38.101 / 57. 38.101
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 46.101 /  6. 46.101
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100

    [flv @ 0x38143c0] audio stream discovered after head already parsed
    [aac @ 0x3818f20] element type mismatch 1 != 0
    [flv @ 0x38143c0] video stream discovered after head already parsed
    Input #0, flv, from 'rtmp://localhost/in/air-hdmi':
     Metadata:
       Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
       displayWidth    : 720
       displayHeight   : 576
       fps             : 0
       profile         :
       level           :
     Duration: 00:00:00.00, start: 181748.084000, bitrate: N/A
       Stream #0:0: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp
       Stream #0:1: Video: h264 (High), yuv420p, 720x576, 25 fps, 25 tbr, 1k tbn, 50 tbc
    [flv @ 0x39bf5a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, flv, to 'rtmp://localhost/in/ngoraltest':
     Metadata:
       Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
       displayWidth    : 720
       displayHeight   : 576
       fps             : 0
       profile         :
       level           :
       encoder         : Lavf57.38.101
       Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 16:9 DAR 20:9], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.46.100 flv
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp
       Metadata:
         encoder         : Lavc57.46.100 libmp3lame
    Stream mapping:
     Stream #0:1 -> #0:0 (h264 (native) -> flv1 (flv))
     Stream #0:0 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [aac @ 0x3a37000] element type mismatch 1 != 0
       Last message repeated 7 times
    [flv @ 0x39bf5a0] Failed to update header with correct duration.ate= 942.7kbits/s speed=2.37x    
    [flv @ 0x39bf5a0] Failed to update header with correct filesize.
    frame=  112 fps= 48 q=31.0 Lsize=     633kB time=00:00:05.18 bitrate= 999.9kbits/s speed=2.23x    
    video:546kB audio:82kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.846813%
    Exiting normally, received signal 2.

    Using setdar=16/9 do not succeeds : it changes PAR, so the result is the same :

    Input #0, flv, from 'rtmp://localhost/in/air-hdmi':
     Metadata:
       Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
       displayWidth    : 720
       displayHeight   : 576
       fps             : 0
       profile         :
       level           :
     Duration: 00:00:00.00, start: 287464.746000, bitrate: N/A
       Stream #0:0: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp
       Stream #0:1: Video: h264 (High), yuv420p, 720x576, 25 fps, 25 tbr, 1k tbn, 50 tbc
    [flv @ 0x3a5ea20] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, flv, to 'rtmp://localhost/in/ngoraltest':
     Metadata:
       Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
       displayWidth    : 720
       displayHeight   : 576
       fps             : 0
       profile         :
       level           :
       encoder         : Lavf57.38.101
       Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.46.100 flv
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp
       Metadata:
         encoder         : Lavc57.46.100 libmp3lame
    Stream mapping:
     Stream #0:1 -> #0:0 (h264 (native) -> flv1 (flv))
     Stream #0:0 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help

    (When use setsar, the params are 720x576 [SAR 16:9 DAR 20:9], when setdar720x576 [SAR 64:45 DAR 16:9])

    I’ve also tried to apply scale=720:-1 and -aspect 16:9 and all left the same.

    BUT ! Wnen I write ffplay -vf setsar=16/9 rtmp://localhost/in/ngoraltest it shows perfectly what I need.
    What could be thae problem and hoe to solve it ?

    P.S. I’m little bit confused that there’s no onformation about SAR and DAR of input signal, but I can do totally nothing with it.

  • How can I remove “original display aspect ratio 16:9” from a mp4 file using ffmpeg ?

    21 juin 2020, par Михаил Бурд

    I wish to remove the Original display aspect ratio entry from the video section.

    


    Video
ID                                       : 2
Format                                   : DV
Format settings, wrapping mode           : Frame
Codec ID                                 : 0D01030102020201-0401020202010200
Duration                                 : 1 h 34 min
Bit rate mode                            : Constant
Bit rate                                 : 24.4 Mb/s
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 4:3
Original display aspect ratio            : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Bottom Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 2.357
Time code of first frame                 : 00:00:00:01
Time code source                         : Subcode time code
Stream size                              : 16.1 GiB (76%)
Title                                    : Picture
Color range                              : Limited
Transfer characteristics                 : BT.601


    


    If I want to remove the Original display aspect ratio entry completely, what ffmpeg command can I use to achieve that ?
Thank you.