
Recherche avancée
Autres articles (35)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4415)
-
CLI Extract date/time stamp (timestamp) from quicktime or mpeg files
25 mai 2020, par vy32Is there a way to extract a date/time or a timestamp from various multi-media container files with Quicktime or MPEG2/MPEG4 ? I'm looking ideally for a command line tool. I have been able to get timestamps using
ffprobe
, part of theffmpeg
suite, but I haven't gotten the year, month and date. The camera had a clock so I'm pretty sure that this information was available.


The history of this data file is that it was first shot on miniDV and transferred to a Mac over Firewire 800 using QuicktimePlayer to record the video. I'm told that the miniDV format is motion jpeg. The
file
command reports that the file isISO Media, Apple QuickTime movie, Apple QuickTime (.MOV/QT)
.


% ffprobe -f lavfi -i "movie=filename.mov,fps=fps=25[out0]" -show_frames -show_streams -show_entries frame=pkt_pts_time -of csv=p=0 2>&1 | head -30
ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
 built with Apple clang version 11.0.0 (clang-1100.0.33.17)
 configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, lavfi, from 'movie=/Volumes/SanDiskSSD/Movies/Italy22.mov,fps=fps=25[out0]':
 Duration: N/A, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
0.000000
0.040000
0.080000
0.120000
0.160000
0.200000
0.240000
0.280000
0.320000
0.360000
0.400000
0.440000
0.480000
0.520000
0.560000
%




I want output showing the year, month and date that this was shot.


-
OpenCV : FFMPEG : tag 0x00000021/' !???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
10 juin 2020, par Hepo8421I got error when trying to run a python script. Iam trying to make a project based on pyimagesearch tutorial.



Code :
In first script :



filename = tempVideo.path[tempVideo.path.rfind("/") + 1:]
 s3.upload_file(tempVideo.path, self.conf["s3_bucket"],
 filename, ExtraArgs={"ACL": "public-read",
 "ContentType": "video/mp4"})




In main script :



tempVideo = TempFile(ext=".mp4")
 writer = cv2.VideoWriter(tempVideo.path, 0x21, 30, (W, H),
 True)




Error I recieved :



OpenCV: FFMPEG: tag 0x00000021/'!???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
Exception in thread Thread-4:
Traceback (most recent call last):
 File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
 File "/usr/lib/python3.7/threading.py", line 865, in run
 self._target(*self._args, **self._kwargs)
 File "/home/pi/Desktop/pi-security-camera/pyimagesearch/notifications/twilionotifier.py", line 27, in _send
 "ContentType": "video/mp4"})
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/boto3/s3/inject.py", line 131, in upload_file
 extra_args=ExtraArgs, callback=Callback)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/boto3/s3/transfer.py", line 279, in upload_file
 future.result()
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/futures.py", line 106, in result
 return self._coordinator.result()
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/futures.py", line 265, in result
 raise self._exception
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/tasks.py", line 255, in _main
 self._submit(transfer_future=transfer_future, **kwargs)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/upload.py", line 549, in _submit
 upload_input_manager.provide_transfer_size(transfer_future)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/upload.py", line 237, in provide_transfer_size
 transfer_future.meta.call_args.fileobj))
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/utils.py", line 245, in get_file_size
 return os.path.getsize(filename)
 File "/usr/lib/python3.7/genericpath.py", line 50, in getsize
 return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: './/13675f07-ecec-48ae-97bf-32109eb3ed7d.mp4'




Thanks for advices :)


-
Evolution #3603 : Ergonomie des onglets de sélection des plugins
21 avril 2020, par RastaPopoulos ♥Si on parle du lambda, c’est bien une personne qui n’installe pas ses plugins par Git, et donc il faut bien qu’elle ajoute un ou plusieurs dépôts pour pouvoir chercher dedans et installer. (Par contre j’ai jamais pigé ou me rappelle plus pourquoi dès qu’il y a un auto/ détecté la première fois, pourquoi ya pas au moins le dépôt communautaire par défaut ajouté direct ?)
Mmh en quoi ça ne signifie rien les plugins verrouillés ? Le mot sort pas de nulle part, il a été choisi après débat sur comment traduire en mot humain le concept des "plugins dist" de la distribution en cours. Qui n’est pas forcément celle par défaut puisque le but c’est d’aller vers de multiples distributions. Et donc pas forcément toujours les mêmes plugins, et c’est important de savoir lesquels sont-ils. Par exemple si j’installe Géodiversité, c’est important de pouvoir savoir lesquels sont dans la distribution. Et ils peuvent tous être configurables.
Sinon j’utilise fort peu souvent SVP, et je n’avais même jamais remarqué qu’on pouvait mettre à jour les plugins inactifs, je le découvre là ! Dit comme ça, je n’arrive même pas à voir ce que ça voudrait dire. En effet, dans les plugins téléchargés mais inactifs, on peut très bien avoir plusieurs version d’un même plugin. Je peux avoir 2 ou 3 versions de Saisies à la fois par exemple. Qu’est-ce ça veut dire d’en mettre l’une seulement à jour ? Je ne vois vraiment même pas ce que c’est censé faire… Alors que dans les plugins actifs, c’est forcément un seul paquet, une seule version unique d’un même plugin qu’on voit, et donc là c’est logique de pouvoir dire qu’on peut activer une version supérieure (qu’elle soit déjà téléchargée ou pas). M’est-avis que là ça veut rien dire, et qu’on devrait pas avoir ça pour les inactifs…