Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (71)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

Sur d’autres sites (12794)

  • "Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error

    1er août 2019, par petaire

    I’m trying to go from .mkv to .mp4 through ffmpeg. Normally I would use

    ffmpeg -i $1 -codec copy -strict -2 $2

    But on this particular file, I get this error, like, A LOT :

    Non-monotonous DTS in output stream 0:0; previous: 49189232, current: 49189232; changing to 49189233. This may result in incorrect timestamps in the output file.

    I guess it has something to do with the DTS :

    [mp4 @ 0x7f8b14001200] Invalid DTS: 14832 PTS: 13552 in output stream 0:0, replacing by guess
    [mp4 @ 0x7f8b14001200] Invalid DTS: 15472 PTS: 12272 in output stream 0:0, replacing by guess

    I would not care if the result was ok, but the sound is out of sync, and the video is "stuttering". Feels like everything is out of sync.

    I’ve tried a lot of things, including -async 1 -vsync 1 , but nothing seems to work.

    Here’s some mediainfo :

    Complete name                            : /Users/petaire/Desktop/CNEWS-2019-07-23_16-00-00h.mkv
    Format                                   : Matroska
    Format version                           : Version 2
    File size                                : 1.19 GiB
    Movie name                               : Time-2019-07-23_16:00
    Writing application                      : Tvheadend 4.3-1801~g7f952c2ed
    Writing library                          : Tvheadend Matroska muxer
    Original source form                     : TV
    Comment                                  : Time recording
    IsTruncated                              : Yes
    DATE_BROADCASTED                         : 2019-07-23 16:00:00

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 fps
    Standard                                 : Component
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : MBAFF
    Scan type, store method                  : Interleaved fields
    Scan order                               : Top Field First
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    Color range                              : Limited
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709

    Audio
    ID                                       : 2
    Format                                   : E-AC-3
    Format/Info                              : Enhanced AC-3
    Commercial name                          : Dolby Digital Plus
    Codec ID                                 : A_EAC3
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 KHz
    Frame rate                               : 31.250 fps (1536 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : -757ms
    Language                                 : French
    Service kind                             : Complete Main
    Default                                  : Yes
    Forced                                   : No

    Text
    ID                                       : 3
    Format                                   : DVB Subtitle
    Codec ID                                 : S_DVBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVBs
    Language                                 : French
    Default                                  : Yes
    Forced                                   : No

    Any idea ?

  • ffmpeg : Error while saving or converting video to .mp4 format

    16 juillet 2018, par user4215048

    sorry for my english...

    On my hosting - ffmpeg is installed as a php module. I’m having errors when converting video to mp4 format

    Error :

    Error while opening the encoder for output stream # 0 : 0 - maybe incorrect parameters such as bit_rate, rate, width or height

    Example of the ffmpeg command :

    /usr/bin/ffmpeg -y -i /home/afk/public_html/webroot/files/video.flv -vcodec libx264 -acodec libvo_aacenc /home/afk/public_html/webroot/files/video_text.mp4 2 <& 1

    I run this command through the php exec() function in the script :

    exec ($command, $res) ;

    And here is the result that I get ($res array) :

    Array ( [0] => ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2] => configuration : —prefix=/usr —bindir=/usr/bin —datadir=/usr/share/ffmpeg —incdir=/usr/include/ffmpeg —libdir=/usr/lib64 —mandir=/usr/share/man —arch=x86_64 —optflags=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic’ —enable-bzlib —disable-crystalhd —enable-gnutls —enable-ladspa —enable-libass —enable-libdc1394 —enable-libfaac —enable-nonfree —disable-indev=jack —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-openal —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvorbis —enable-libv4l2 —enable-libx264 —enable-libx265 —enable-libxvid —enable-x11grab —enable-avfilter —enable-avresample —enable-postproc —enable-pthreads —disable-static —enable-shared —enable-gpl —disable-debug —disable-stripping —shlibdir=/usr/lib64 —enable-runtime-cpudetect [3] => libavutil 54. 20.100 / 54. 20.100 [4] => libavcodec 56. 26.100 / 56. 26.100 [5] => libavformat 56. 25.101 / 56. 25.101 [6] => libavdevice 56. 4.100 / 56. 4.100 [7] => libavfilter 5. 11.102 / 5. 11.102 [8] => libavresample 2. 1. 0 / 2. 1. 0 [9] => libswscale 3. 1.101 / 3. 1.101 [10] => libswresample 1. 1.100 / 1. 1.100 [11] => libpostproc 53. 3.100 / 53. 3.100 [12] => Input #0, flv, from ’/home/afk/public_html/webroot/files/video.flv’ : [13] => Metadata : [14] => title : Title of the video [15] => encoder : Lavf56.25.101 [16] => Duration : 00:00:24.00, start : 0.000000, bitrate : 1364 kb/s [17] => Stream #0:0 : Video : flv1, yuv420p, 500x500, 200 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc [18] => [libx264 @ 0x1ec6720] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX [19] => Output #0, mp4, to ’/home/afk/public_html/webroot/files/video_text.mp4’ : [20] => Metadata : [21] => title : Title of the video [22] => encoder : Lavf56.25.101 [23] => Stream #0:0 : Video : h264, none, q=2-31, 128 kb/s, 25 fps [24] => Metadata : [25] => encoder : Lavc56.26.100 libx264 [26] => Stream mapping : [27] => Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264)) [28] => Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height )

    The same error occurs when converting any video into this format. I’ve already used the examples from the ffmpeg documentation, but the error remains. Help to understand and solve this problem.

    At the same time, the conversion from flv to ogg format works normally, or the creation of video from images into flv and ogg formats

  • Is there a way to find out whether ffmpeg is performing optimally in my system using a ffmpeg command of sorts ?

    17 octobre 2020, par Aspiring Dev

    I'm encoding a file (mediainfo below) using the following command :

    &#xA;

    ffmpeg -i AHomeMovie.mkv -map 0 -c copy -c:v libx264 -preset veryslow -crf 17 -c:a aac -b:a 256k -threads 8 resultdir/AHomeMovie.mkv&#xA;

    &#xA;

    And getting more or less the following performance after a couple of minutes :

    &#xA;

    frame= 2036 fps=2.5 q=22.0 size=   87535kB time=00:01:25.25 bitrate=8411.2kbits/s speed=0.104x    &#xA;

    &#xA;

    Is this normal performance for a laptop with a i7-8550U, 16gb of RAM, UHD graphics 620 running Linux ? Is there a way to find out whether ffmpeg is performing optimally using a ffmpeg command of sorts ? I know it's commodity hardware by now but I just want to get some perspective on how the system is performing. I'm aware that I can use a different -preset speed btw.

    &#xA;

    Mediainfo :

    &#xA;

    General&#xA;Unique ID                                : 25145236523685421256398752247554522365 (0x14258745965823652446224452555874)&#xA;Complete name                            : AHomeMovie.mkv&#xA;Format                                   : Matroska&#xA;Format version                           : Version 4&#xA;File size                                : 6.35 GiB&#xA;Duration                                 : 22 min 47 s&#xA;Overall bit rate mode                    : Variable&#xA;Overall bit rate                         : 39.9 Mb/s&#xA;Movie name                               : A Home Movie&#xA;Encoded date                             : UTC 2020-09-10 22:10:12&#xA;Writing application                      : mkvmerge v42.0.0 (&#x27;Overtime&#x27;) 64-bit&#xA;Writing library                          : libebml v1.3.10 &#x2B; libmatroska v1.5.2&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L4.1&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 4 frames&#xA;Codec ID                                 : V_MPEG4/ISO/AVC&#xA;Duration                                 : 22 min 45 s&#xA;Bit rate mode                            : Variable&#xA;Bit rate                                 : 38.0 Mb/s&#xA;Maximum bit rate                         : 40.0 Mb/s&#xA;Width                                    : 1 920 pixels&#xA;Height                                   : 1 080 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.764&#xA;Stream size                              : 6.04 GiB (95%)&#xA;Default                                  : Yes&#xA;Forced                                   : No&#xA;&#xA;Audio #1&#xA;ID                                       : 2&#xA;Format                                   : FLAC&#xA;Format/Info                              : Free Lossless Audio Codec&#xA;Codec ID                                 : A_FLAC&#xA;Duration                                 : 22 min 45 s&#xA;Bit rate mode                            : Variable&#xA;Bit rate                                 : 614 kb/s&#xA;Channel(s)                               : 2 channels&#xA;Channel layout                           : L R&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 11.719 FPS (4096 SPF)&#xA;Bit depth                                : 16 bits&#xA;Compression mode                         : Lossless&#xA;Stream size                              : 100 MiB (2%)&#xA;Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)&#xA;Language                                 : Japanese&#xA;Default                                  : Yes&#xA;Forced                                   : No&#xA;&#xA;Audio #2&#xA;ID                                       : 3&#xA;Format                                   : FLAC&#xA;Format/Info                              : Free Lossless Audio Codec&#xA;Codec ID                                 : A_FLAC&#xA;Duration                                 : 22 min 46 s&#xA;Bit rate mode                            : Variable&#xA;Bit rate                                 : 1 317 kb/s&#xA;Channel(s)                               : 2 channels&#xA;Channel layout                           : L R&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 11.719 FPS (4096 SPF)&#xA;Bit depth                                : 24 bits&#xA;Compression mode                         : Lossless&#xA;Delay relative to video                  : 24 ms&#xA;Stream size                              : 215 MiB (3%)&#xA;Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)&#xA;Language                                 : English&#xA;Default                                  : No&#xA;Forced                                   : No&#xA;

    &#xA;