
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (80)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6046)
-
OpenCV : issues with playing videos created using ffmpeg and concat
25 mars 2022, par tobiasBoraI concatenated a few videos using :


$ ffmpeg -f concat -safe 0 -i list_files.txt -c copy total.mp4



where
list_files.txt
is like :

file 'file1.mp4'
file 'file2.mp4'



Unfortunately, if I play it with opencv :


import cv2
import numpy as np

# Create a VideoCapture object and read from input file
# If the input is the camera, pass 0 instead of the video file name
cap = cv2.VideoCapture('../Video_outputs/010_introduction.mp4')

# Check if camera opened successfully
if (cap.isOpened()== False): 
 print("Error opening video stream or file")

# Read until video is completed
while(cap.isOpened()):
 # Capture frame-by-frame
 ret, frame = cap.read()
 if ret == True:

 # Display the resulting frame
 cv2.imshow('Frame',frame)

 # Press Q on keyboard to exit
 if cv2.waitKey(24) & 0xFF == ord('q'):
 break

 # Break the loop
 else: 
 break

# When everything done, release the video capture object
cap.release()

# Closes all the frames
cv2.destroyAllWindows()



the first video plays fine, but the next concatenated videos are ugly looking :




Am I missing something, or is it a bug to report upstream ?


PS : I'm using this code :


import cv2
import numpy as np

# Create a VideoCapture object and read from input file
# If the input is the camera, pass 0 instead of the video file name
cap = cv2.VideoCapture('../Video_outputs/010_introduction.mp4')

# Check if camera opened successfully
if (cap.isOpened()== False): 
 print("Error opening video stream or file")

# Read until video is completed
while(cap.isOpened()):
 # Capture frame-by-frame
 ret, frame = cap.read()
 if ret == True:

 # Display the resulting frame
 cv2.imshow('Frame',frame)

 # Press Q on keyboard to exit
 if cv2.waitKey(24) & 0xFF == ord('q'):
 break

 # Break the loop
 else: 
 break

# When everything done, release the video capture object
cap.release()

# Closes all the frames
cv2.destroyAllWindows()



-
permission denied. ffmpeg tries to process a file located in /data/data/
30 octobre 2015, par user2326258I have such an APP that the users sends a video from the multimedia message(add a video in the message and then the video is copied to /data/data/somewhere). If the user press the video in the file, the message activity passes the video’s uri to another activity which processes the video with ffmpeg.
I got the video’s file descriptor(fd) by :
ContentResolver resolver = context.getContentResolver();
fd = resolver.openAssetFileDescriptor(uri, "r");and pass fd.getFileDescriptor()to ffmpeg.
However I got permission denied such that ffmpeg cannot open the file.Is there anyway to fix that ?
Thanks a lot.
-
error in ".setDataSource(MainActivity.this, uri) ;" in Android 5.0
17 septembre 2016, par maxShmaxWhen I pick the video file and press button for convert it to GIF - I get "App has been stopped".
The error is specify to ".setDataSource(MainActivity.this, uri) ;" in this part of code :
fFmpegMediaMetadataRetriever = new FFmpegMediaMetadataRetriever();
fFmpegMediaMetadataRetriever.setDataSource(MainActivity.this, uri);In Andoid 4 and 6 it’s working well.
First photo is a log, second - crashlytics.
As I understand, error in JNI library, right ? How to fix this error ?