
Recherche avancée
Autres articles (71)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (15332)
-
FFmpeg is dropping a frame when converting MP4 to image sequence
24 juillet 2019, par Phillip DodsonI have an MP4 file that’s encoded at 12fps that I’m trying to convert to an image sequence using FFmpeg. The issue is that there is one frame missing. I’ve used the solutions here to confirm that the number of frames are 195 but when I run the following
ffmpeg -i video.mp4 frames_%04d.png
, I only get 194 PNGs. I’ve tried using the-r 12
and-framerate 12
flags but they do not change the output.I’ve also run the MP4 through Adobe Media Encoder to create an image sequence and that produces 195 frames. Any thoughts on to why I’m losing a frame ?
Edit - Logs added below
Log from the command
ffmpeg -i video.mp4 frames_%04d.png
:ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.4_1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
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
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fead5800000] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fead5800000] st: 0 edit list 1 Cannot find an index entry before timestamp: 0.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2019-07-23T18:30:01.000000Z
Duration: 00:00:16.25, start: 0.000000, bitrate: 957 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 728x90, 953 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
Metadata:
creation_time : 2019-07-23T18:30:01.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, image2, to 'frames_%04d.png':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf58.20.100
Stream #0:0(eng): Video: png, rgb24, 728x90, q=2-31, 200 kb/s, 12 fps, 12 tbn, 12 tbc (default)
Metadata:
creation_time : 2019-07-23T18:30:01.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : Lavc58.35.100 png
frame= 194 fps=0.0 q=-0.0 Lsize=N/A time=00:00:16.16 bitrate=N/A speed=52.1x
video:17552kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknownLog from the command that I use that shows 195 frames
ffmpeg -i video.mp4 -map 0:v:0 -c copy -f null -
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.4_1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
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
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f700b000] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88f700b000] st: 0 edit list 1 Cannot find an index entry before timestamp: 0.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2019-07-23T18:30:01.000000Z
Duration: 00:00:16.25, start: 0.000000, bitrate: 957 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 728x90, 953 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
Metadata:
creation_time : 2019-07-23T18:30:01.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
Output #0, null, to 'pipe:':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf58.20.100
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 728x90, q=2-31, 953 kb/s, 12 fps, 12 tbr, 24k tbn, 24k tbc (default)
Metadata:
creation_time : 2019-07-23T18:30:01.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 195 fps=0.0 q=-1.0 Lsize=N/A time=00:00:16.08 bitrate=N/A speed=1.13e+04x
video:1891kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown -
Anomalie #4368 (Nouveau) : Filtres image_* et espaces dans les noms de fichiers
7 août 2019, par nicod _Suite à un passage de 3.0 à 3.2, plein d’images cassées sur le site, qui affichait le nom du fichier au lieu de la vignette.
Après investigation, c’est dû à des espaces dans les noms de fichiers.
Exemple : [(#CHEMINIMG/festivals/affiche 2019.jpg|image_reduire200,200)] ne marche pas (affiche le nom du fichier)
Le fichier existe bien, c’est un jpeg valide.
Ce n’est pas dû à #CHEMIN, dans mon squelette les chemins remontent avec des balises de champs sql (genre #AFFICHE)
Avec un |balise_img ça fonctionne : [(#CHEMINIMG/festivals/affiche 2019.jpg|balise_img|image_reduire200,200)]
PS : discuté sur IRC et confirmé par cy_altern, qui précise : "si j’appelle le filtre sur un #FICHIER avec espace ça plante aussi"
-
"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error
1er août 2019, par petaireI’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 guessI 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 : NoAny idea ?