Recherche avancée

Médias (91)

Autres articles (110)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

Sur d’autres sites (9991)

  • ffmpeg image sequence from text file not rendering correctly

    4 juillet 2018, par Rich

    I’ve been working with ffmpeg and I have got it to work perfectly quite a few times, but as of recent I am running into an issue where all the images from my text file arent used.

    My text file looks like -

    ffconcat version 1.0
    file 'gallery-house-77-west-55th-street-01.jpg'
    duration 4.44
    file 'img03.jpg'
    duration 4.44
    file 'inside.png'
    duration 4.44
    file 'placeholder.png'

    (amount of files, file names and extensions will always vary)

    And I’ve tried several combinations but as of now my ffmpeg function looks like —

    ffmpeg -i audio.mp3 -safe 0 -f concat -i paths.txt -c:a copy -c:v libx264 \
    -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,fps=25,format=yuv420p" -vsync vfr -movflags +faststart -y output.mp4 2>&1');

    When trying to run it, the video seems to convert but has various weird behaviors - sometimes only the middle file(image) in the list is shown or the first 2 only are shown/rendered.

    The audio is playing correctly though.

    I’ve tried setting the framerate for the input and I also tried setting it for the output but it leads to more strange behavior.

    This is what is echoed when running my above ffmpeg command -

    libavutil      56. 15.100 / 56. 15.100
     libavcodec     58. 19.100 / 58. 19.100
     libavformat    58. 13.100 / 58. 13.100
     libavdevice    58.  4.100 / 58.  4.100
     libavfilter     7. 18.100 /  7. 18.100
     libswscale      5.  2.100 /  5.  2.100
     libswresample   3.  2.100 /  3.  2.100
     libpostproc    55.  2.100 / 55.  2.100
    [mp3 @ 0xb46780] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from 'audio.mp3':
     Metadata:
       encoder         : Lavf57.71.100
     Duration: 00:00:19.98, start: 0.000000, bitrate: 48 kb/s
       Stream #0:0: Audio: mp3, 22050 Hz, mono, fltp, 48 kb/s
    Input #1, concat, from 'paths.txt':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #1:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 754x424 [SAR 72:72 DAR 377:212], 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #1:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #0:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [swscaler @ 0xba25c0] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 0xb710c0] using SAR=3393/3392
    [libx264 @ 0xb710c0] using cpu capabilities: none!
    [libx264 @ 0xb710c0] profile High, level 3.1
    [libx264 @ 0xb710c0] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=22 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output.mp4':
     Metadata:
       encoder         : Lavf58.13.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 3393:3392 DAR 377:212], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc58.19.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 48 kb/s
    [swscaler @ 0xb93140] deprecated pixel format used, make sure you did set range correctly
    [swscaler @ 0xb93140] Warning: data is not aligned! This can lead to a speed loss
    [mjpeg @ 0xb6e200] mjpeg: unsupported coding type (cd)
    [mjpeg @ 0xb6e200] mjpeg: unsupported coding type (c8)
    [mjpeg @ 0xb6e200] Found EOI before any SOF, ignoring
    [mjpeg @ 0xb6e200] mjpeg: unsupported coding type (c7)
    Error while decoding stream #1:0: Invalid data found when processing input
    [mjpeg @ 0xb6e200] invalid id 94
    Error while decoding stream #1:0: Invalid data found when processing input
    [mp4 @ 0xb6f8c0] Starting second pass: moving the moov atom to the beginning of the file
    frame=    1 fps=0.0 q=28.0 Lsize=     179kB time=00:00:19.95 bitrate=  73.6kbits/s speed=44.1x    
    video:58kB audio:117kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.446521%
    [libx264 @ 0xb710c0] frame I:1     Avg QP:28.86  size: 58683
    [libx264 @ 0xb710c0] mb I  I16..4: 21.2% 59.8% 19.0%
    [libx264 @ 0xb710c0] 8x8 transform intra:59.8%
    [libx264 @ 0xb710c0] coded y,uvDC,uvAC intra: 50.5% 65.2% 31.6%
    [libx264 @ 0xb710c0] i16 v,h,dc,p: 10% 60%  3% 28%
    [libx264 @ 0xb710c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 27% 26%  4%  4%  4%  6%  4%  7%
    [libx264 @ 0xb710c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 33% 10%  5%  6%  5%  8%  5%  7%
    [libx264 @ 0xb710c0] i8c dc,h,v,p: 47% 34% 11%  8%
    [libx264 @ 0xb710c0] kb/s:11736.60

    Any ideas whats causing the image sequence to fail ?

    EDIT

    After some more debugging I think it may be related to the fact that all the files dont have the same extension. How can I make it so that it doesn’t have to be that way or is that already a default setting and the issue is else where ?

  • Ffmpeg converted videos (longer than 30s) not playing in chrome

    3 février 2016, par Razvan Ilin

    As the title says, I’m having issues with converted videos that are over 30s. They are not playing in chrome but they do work in all other browsers. The thing is, if the video is less than 30s than it plays fine in chrome too.

    The input file is mpeg4 encoded and I’m trying to convert it using the h264 codec. The conversion is done on a linux server with the help of a drupal module which converts the video on upload automatically.

    This is the command and output :

    /opt/ffmpeg/ffmpeg -i '/var/www/html/website/videos/original/2016-02-02-16-52-44-758_1.mp4' -strict experimental -vcodec 'libx264' -pix_fmt 'yuv420p' -vprofile 'baseline' -an -pass '1' -passlogfile '/tmp/1454496233-56b1d9e99deb8-multipass'  -y /tmp/1454496233-56b1d9e99dd6f.mp4
    ffmpeg version N-61041-g52a2138 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  2 2014 05:45:04 with gcc 4.6 (Debian 4.6.3-1)
     configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/html/website/videos/original/2016-02-02-16-52-44-758_1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf56.40.101
     Duration: 00:00:54.42, start: 0.000000, bitrate: 840 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 839 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    [libx264 @ 0x38799c0] using SAR=1/1
    [libx264 @ 0x38799c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
    [libx264 @ 0x38799c0] profile Constrained Baseline, level 3.1
    [libx264 @ 0x38799c0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/tmp/1454496233-56b1d9e99dd6f.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf55.33.100
       Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, pass 1, 12288 tbn, 24 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 -> libx264)
    Press [q] to stop, [?] for help
    frame=  129 fps=0.0 q=28.0 size=     298kB time=00:00:03.41 bitrate= 715.2kbits/s    
    frame=  268 fps=267 q=28.0 size=     784kB time=00:00:09.20 bitrate= 697.3kbits/s    
    frame=  409 fps=271 q=28.0 size=    1313kB time=00:00:15.08 bitrate= 712.9kbits/s    
    frame=  547 fps=272 q=28.0 size=    1744kB time=00:00:20.83 bitrate= 685.8kbits/s    
    frame=  687 fps=274 q=28.0 size=    2275kB time=00:00:26.66 bitrate= 699.0kbits/s    
    frame=  827 fps=275 q=28.0 size=    2754kB time=00:00:32.50 bitrate= 694.1kbits/s    
    frame=  967 fps=275 q=28.0 size=    3273kB time=00:00:38.33 bitrate= 699.4kbits/s    
    frame= 1106 fps=275 q=28.0 size=    3826kB time=00:00:44.12 bitrate= 710.2kbits/s    
    frame= 1245 fps=276 q=28.0 size=    4366kB time=00:00:49.91 bitrate= 716.6kbits/s    
    frame= 1306 fps=268 q=-1.0 Lsize=    4762kB time=00:00:54.41 bitrate= 716.8kbits/s
    video:4756kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.125035%
    [libx264 @ 0x38799c0] frame I:6     Avg QP:17.10  size: 43459
    [libx264 @ 0x38799c0] frame P:1300  Avg QP:20.34  size:  3545
    [libx264 @ 0x38799c0] mb I  I16..4: 31.1%  0.0% 68.9%
    [libx264 @ 0x38799c0] mb P  I16..4:  3.7%  0.0%  0.0%  P16..4: 14.8%  0.0%  0.0%  0.0%  0.0%    skip:81.5%
    [libx264 @ 0x38799c0] coded y,uvDC,uvAC intra: 29.2% 62.3% 14.8% inter: 3.4% 5.8% 0.4%
    [libx264 @ 0x38799c0] i16 v,h,dc,p: 58% 22% 17%  2%
    [libx264 @ 0x38799c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 59% 24%  8%  1%  1%  1%  2%  1%  2%
    [libx264 @ 0x38799c0] i8c dc,h,v,p: 36% 14% 47%  3%
    [libx264 @ 0x38799c0] kb/s:715.83

    I also tried with the latest version of ffmpeg but I have the same problem.
    Does anyone have any ideas on why this is happening ?

    Note that this is a log from doing a two-pass encoding (it was the only way to get a log from drupal). The two-pass encoding works if I specify a bitrate in the ffmpeg command, but as I said, it doesn’t work on chrome but works on all other browsers.

  • Copy mp3 with ffmpeg not playable by QuickTime

    8 août 2016, par Joseph Johnston

    I am trying to create a video out of one image and copy audio on top. Following this (last section), I tried :

    $ ffmpeg -loop 1 -i img.jpg -i audio.mp3 -c:v libx264 -c:a copy -shortest h264.mp4
    ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
     built on Feb 23 2015 10:29:52 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' --enable-nonfree --enable-vda
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, image2, from 'img.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 123986 kb/s
       Stream #0:0: Video: mjpeg, yuvj440p(pc, bt470bg/unknown/unknown), 1440x900 [SAR 72:72 DAR 8:5], 25 fps, 25 tbr, 25 tbn, 25 tbc
    [mp3 @ 0x7f94d2034600] Estimating duration from bitrate, this may be inaccurate
    Input #1, mp3, from 'audio.mp3':
     Metadata:
       genre           : Other
     Duration: 00:00:03.25, start: 0.000000, bitrate: 130 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, mono, s16p, 128 kb/s
    [swscaler @ 0x7f94d2800000] deprecated pixel format used, make sure you did set range correctly
    No pixel format specified, yuvj444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x7f94d281b200] using SAR=1/1
    [libx264 @ 0x7f94d281b200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
    [libx264 @ 0x7f94d281b200] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
    [libx264 @ 0x7f94d281b200] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'h264.mp4':
     Metadata:
       encoder         : Lavf56.15.102
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj444p(pc), 1440x900 [SAR 1:1 DAR 8:5], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc56.13.100 libx264
       Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, mono, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=   64 fps= 30 q=28.0 size=     332kB time=00:00:00.48 bitrate=5670.9kbits/frame=   80 fps= 30 q=28.0 size=     344kB time=00:00:01.12 bitrate=2514.2kbits/frame=   96 fps= 30 q=28.0 size=     356kB time=00:00:01.76 bitrate=1655.1kbits/frame=  112 fps= 30 q=28.0 size=     367kB time=00:00:02.40 bitrate=1252.1kbits/frame=  129 fps= 31 q=28.0 size=     378kB time=00:00:03.08 bitrate=1006.5kbits/frame=  134 fps= 26 q=-1.0 Lsize=     386kB time=00:00:03.28 bitrate= 963.5kbits/s    
    video:331kB audio:51kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.120110%
    [libx264 @ 0x7f94d281b200] frame I:1     Avg QP:19.84  size:329471
    [libx264 @ 0x7f94d281b200] frame P:34    Avg QP:16.64  size:   189
    [libx264 @ 0x7f94d281b200] frame B:99    Avg QP:25.33  size:    48
    [libx264 @ 0x7f94d281b200] consecutive B-frames:  1.5%  0.0%  0.0% 98.5%
    [libx264 @ 0x7f94d281b200] mb I  I16..4:  2.8% 70.0% 27.3%
    [libx264 @ 0x7f94d281b200] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  1.2%  0.0%  0.0%  0.0%  0.0%    skip:98.8%
    [libx264 @ 0x7f94d281b200] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%  L0: 1.6% L1:98.4% BI: 0.0%
    [libx264 @ 0x7f94d281b200] 8x8 transform intra:70.0% inter:95.0%
    [libx264 @ 0x7f94d281b200] coded y,u,v intra: 96.4% 73.8% 72.9% inter: 0.0% 0.0% 0.0%
    [libx264 @ 0x7f94d281b200] i16 v,h,dc,p: 37%  4%  1% 58%
    [libx264 @ 0x7f94d281b200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 27%  8%  3%  5%  5%  8%  4%  9%
    [libx264 @ 0x7f94d281b200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 18%  5%  3%  7%  7% 10%  5%  7%
    [libx264 @ 0x7f94d281b200] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7f94d281b200] ref P L0: 20.0%  0.4% 42.4% 37.2%
    [libx264 @ 0x7f94d281b200] ref B L0:  0.0% 100.0%
    [libx264 @ 0x7f94d281b200] ref B L1: 90.9%  9.1%
    [libx264 @ 0x7f94d281b200] kb/s:508.50

    But I get a video with no audio in QuickTime. I think its a problem of the output container (mp4) not supporting mp3. What output container might be best ? Due to quality loss, I am reluctant to convert the mp3 to another format. If my audio is mp3, what might I change about this ffmpeg command ?

    The final destination is YouTube.