
Recherche avancée
Autres articles (82)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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" (...) -
Mise à disposition des fichiers
14 avril 2011, parPar 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 (...)
Sur d’autres sites (8667)
-
"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 ?
-
How to Write to AVI with OpenCV Python on Windows 10
29 juillet 2019, par NovakI want to write properly formed frames of video data to an AVI.
All attempts fail.
What I end up with, after long efforts of debugging, are *.avi files of non-zero length in the desired directory, which will not play with any of multiple video players already installed on my system.
Please note : High quality answers will be COMPLETE and DETAIL oriented. In particular, questions about writing video with OpenCV tend to generate drive-by responses including little more than another four-letter code to stick in
fourcc
. Answers which do so without also telling me at a minimum what file extension to use, what file type it will generate, and why it is expected to work over what I give above are unhelpful.Here are the salient details of the system :
Operating System : Windows 10
Language : Python 3.7, with Anaconda 3
OpenCV : 4.1.0Here Is What I Have Done/Tried :
Installed FFMPEG as per this link, restarted Anaconda, and verified ffmpeg (
ffmpeg -version
) from within Anaconda, with the following result :ffmpeg version N-94396-g47b6ca0b02 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190716
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 32.100 / 56. 32.100
libavcodec 58. 55.100 / 58. 55.100
libavformat 58. 30.100 / 58. 30.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 58.100 / 7. 58.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100Multiple variations on the theme of :
import cv2
fourcc = cv2.VideoWriter_fourcc(*"DIVX")
vidout = cv2.VideoWriter(baseDir + "videos\\foo.avi", fourcc, 30, (530, 476))
for frame in frames:
<do stuff="stuff" to="to" generate="generate" foo="foo">
cv2.imshow("foo", foo)
vidout.write(foo)
vidout.release()
</do>Verified shape, dtype, and general viability of output data with
cv2.imshow("foo", foo)
Results : Unplayable AVI files
-
How to convert video to .ico files sequence using ffmpeg ?
3 août 2019, par marto55555I cannot successfully convert an .mp4 video to a sequence of .ico files.
I tried using the same command as for converting to a sequence of .jpg/.png/.bmp files :
ffmpeg -i video.mp4 %05d.png
Unfortunately, when I try with :
ffmpeg -i video.mp4 %05d.ico
I get only a single .ico file and the following output error :
Output #0, ico, to '%05d.ico':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Stream #0:0(und): Video: bmp, bgr24, 256x144 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 05/05/2019.
encoder : Lavc56.60.100 bmp
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> bmp (native))
Press [q] to stop, [?] for help
[ico @ 0x155a720] ICO already contains 1 images
av_interleaved_write_frame(): Input/output error
frame= 2 fps=0.0 q=-0.0 Lsize= 113kB time=00:00:05.16 bitrate= 178.9kbits/s
video:216kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!I have also tried using the
image2
muxer through-f image2
. This time, the sequence will be generated. However, the images will not be actual ICO files, but JPEGs ending in .ico instead.