
Recherche avancée
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)
Sur d’autres sites (14302)
-
Anomalie #4633 (Nouveau) : argument ’date’ du pipeline optimiser_base_disparus
18 janvier 2021, par Maïeul RouquetteHop,
dans mes logs j’ai ceci
2021-01-18 18:22:16 127.0.0.1 (pid 13677) :Pri:ERREUR : Erreur 1525 de mysql : Incorrect TIMESTAMP value : ’’2021-01-17 18:22:16’’ in /home/mrouquet/Sites/dev/localhost/plugins-dist/forum/forum_pipelines.php L308 [sql_delete(),forum_optimiser_base_disparus(),minipipe(),execute_pipeline_optimiser_base_disparus(),pipeline(),optimiser_base_disparus(),optimiser_base(),genie_optimiser_dist(),queue_start_job(),queue_schedule(),action_forcer_job_dist(),traiter_appels_actions()] DELETE FROM `spip_localhost`.spip_forum WHERE statut=’redac’ AND maj < ; ’\’2021-01-17 18:22:16\’’ 2021-01-18 18:22:16 127.0.0.1 (pid 13677) :Pri:ERREUR : Erreur 1525 de mysql : Incorrect TIMESTAMP value : ’’2021-01-17 18:22:16’’ in /home/mrouquet/Sites/dev/localhost/plugins-dist/mots/mots_pipelines.php L97 [sql_delete(),mots_optimiser_base_disparus(),minipipe(),execute_pipeline_optimiser_base_disparus(),pipeline(),optimiser_base_disparus(),optimiser_base(),genie_optimiser_dist(),queue_start_job(),queue_schedule(),action_forcer_job_dist(),traiter_appels_actions()] DELETE FROM `spip_localhost`.spip_mots WHERE length(titre)=0 AND maj < ; ’\’2021-01-17 18:22:16\’’ 2021-01-18 18:22:16 127.0.0.1 (pid 13677) :Pri:ERREUR : Erreur 1525 de mysql : Incorrect TIMESTAMP value : ’’2021-01-17 18:22:16’’ in /home/mrouquet/Sites/dev/localhost/plugins-dist/petitions/petitions_pipelines.php L58 [sql_delete(),petitions_optimiser_base_disparus(),minipipe(),execute_pipeline_optimiser_base_disparus(),pipeline(),optimiser_base_disparus(),optimiser_base(),genie_optimiser_dist(),queue_start_job(),queue_schedule(),action_forcer_job_dist(),traiter_appels_actions()] DELETE FROM `spip_localhost`.spip_petitions WHERE statut=’poubelle’ AND maj < ; ’\’2021-01-17 18:22:16\’’ 2021-01-18 18:22:16 127.0.0.1 (pid 13677) :Pri:ERREUR : Erreur 1525 de mysql : Incorrect TIMESTAMP value : ’’2021-01-17 18:22:16’’ in /home/mrouquet/Sites/dev/localhost/plugins-dist/sites/sites_pipelines.php L228 [sql_delete(),sites_optimiser_base_disparus(),minipipe(),execute_pipeline_optimiser_base_disparus(),pipeline(),optimiser_base_disparus(),optimiser_base(),genie_optimiser_dist(),queue_start_job(),queue_schedule(),action_forcer_job_dist(),traiter_appels_actions()] DELETE FROM `spip_localhost`.spip_syndic WHERE maj< ;’\’2021-01-17 18:22:16\’’ AND statut=’refuse’ 2021-01-18 18:22:16 127.0.0.1 (pid 13677) :Pri:ERREUR : Erreur 1525 de mysql : Incorrect TIMESTAMP value : ’’2021-01-17 18:22:16’’ in /home/mrouquet/Sites/dev/localhost/plugins-dist/breves/breves_pipelines.php L298 [sql_select(),breves_optimiser_base_disparus(),minipipe(),execute_pipeline_optimiser_base_disparus(),pipeline(),optimiser_base_disparus(),optimiser_base(),genie_optimiser_dist(),queue_start_job(),queue_schedule(),action_forcer_job_dist(),traiter_appels_actions()] SELECT B.id_breve AS id FROM `spip_localhost`.spip_breves AS B LEFT JOIN `spip_localhost`.spip_rubriques AS R ON B.id_rubrique=R.id_rubrique WHERE R.id_rubrique IS NULL AND B.maj < ; ’\’2021-01-17 18:22:16\’’
Cela vient du fait que $flux[’args’][’date’] du pipeline optimiser_base_disparus est valeur qui est déjà passé par sql_quote(). (cf. fonction `optimiser_base_disparus` du code, qui contient la ligne (`$mydate = sql_quote(date("Y-m-d H:i:s", time() - $attente)) ;`)
Or la plupart des plugin(-dist) qui utilise ce paramètre $flux[’args’][’date’] pour construire leur requete passe en sql_quote. Du couip double sql_quote.
La question que je me pose : faut-il corriger les plugins(-dist) ou le core ?
-
I am unable to decode the frames in python using ffmpeg [closed]
12 mai 2024, par Saail Chavanimport pylwdrone
import cv2
import numpy as np

# Initialize the LWDrone object
drone = pylwdrone.LWDrone()

# Start the video stream
for packet in drone.start_video_stream():
 try:
 # Print the size of the frame data
 print("Packet frame bytes size:", len(packet.frame_bytes))

 # Print a portion of the frame data (first 100 bytes)
 print("First 100 bytes of frame data:", packet.frame_bytes[:100])

 # Convert the frame data to numpy array
 frame = np.frombuffer(packet.frame_bytes, dtype=np.uint8)

 # Get the actual frame shape
 frame_shape = frame.shape
 print("Actual frame shape:", frame_shape)

 # Reshape the frame data
 frame = frame.reshape((frame_shape[0]//3, 3))

 # Display the frame
 cv2.imshow("Debug Frame", frame)

 # Check for 'q' key to exit
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break

 except ValueError as ve:
 print("ValueError:", ve)
 # Skip this frame and continue to the next one
 continue
 except Exception as e:
 print("An error occurred:", e)
 break

# Clean up
cv2.destroyAllWindows()
drone.stop_video_stream()



error: :




Actual frame shape : (31621,)
ValueError : cannot reshape array of size 31621 into shape (10540,3)
Packet frame bytes size : 45509
First 100 bytes of frame data :
bytearray(b"\x00\x00\x00\x01A\x9a\x00\x10\x00 #\xbf\xf4 \xb7\xe8\xe0\xd3\xb5\x87\xe3\xb8\x0c\xc8\xecN\xe1C\xb4p\x18\xb682 \xb4ef\x15\xc3B\t\xd3^z\x94iF\x05\x89\x1f\xd0\xd3\x1f\xa1\xe7\x12 \\\'\x8f2\t\x017[`l\x1c{[TA\x8eL\xb6\xf7\xd0/\xc9\xb1\xfa\xa2\xc1\xbdw\x98fd\x86\x84\xbcB$\x1d*q\xf7\x02\x1c")

Actual frame shape : (45509,)
ValueError : cannot reshape array of size 45509 into shape (15169,3)
Packet frame bytes size : 20981
First 100 bytes of frame data :bytearray(b"\x00\x00\x00\x01A\x9a\x00\x12\x00$!\x0f\xe2\xb8\xe0\xfd\x0c\xfbR\xd5.\x18\x94L>\xc6\xaf\xa6\xbaN\xf7\x83^M\xff`Q\xc1\xf7\x95u\xb2\xe00\x14\x92z\x94\xf2V\xafe~\xc4\xaa\xa0;,^\x8b*\x14\x00\xa9\xea\xb8=\xc0t\xd3a\xbe. \'\xbf\xac\xd7\xf7\x84\x83\x11\xe2\xc9\x80\x1a\xe1G\x89\xf9\xc4\xd1\xdfX\xfc\xcd\x98\xe3u\xed")

Actual frame shape : (20981,)
ValueError : cannot reshape array of size 20981 into shape (6993,3)
Packet frame bytes size : 23269



i am trying to stream the video from my drone using ffmpeg-python and opencv


-
Transport SEI With Ffmpeg
29 août 2016, par yuan tianI need to transport some data from drone through the help of Ffmpeg.The data includes frame data and some other parameters such as the timing roll/pitch/height/direction of the drone,and when I get the image of the frame,the corresponding parameters should be also pulled out,So I dicede to send these parameters as SEI.
Then the questions coming,after sending sps pps,I send my own SEI packet,eg :if(pkt->size>10&&pkt->data[0] ==0
&&pkt->data[1] ==0
&&pkt->data[2] ==0
&&pkt->data[3] ==1
&&(pkt->data[4] == 103 || pkt->data[4] == 104)){
i++;
}
AVPacket *newPacket = nullptr;
// 0 0 0 1 6 8*16
if(i == 2){
i = 0;
newPacket = (AVPacket *)av_malloc(sizeof(AVPacket));
av_init_packet(newPacket);
newPacket->data = new uint8_t[8];
newPacket->data[0] = 0;
newPacket->data[1] = 0;
newPacket->data[2] = 0;
newPacket->data[3] = 1;
newPacket->data[4] = 6;
newPacket->data[5] = 123;
newPacket->data[6] = 134;
newPacket->data[7] = 128;
newPacket->size = 8;
}
av_write_frame(*it , pkt);
av_free_packet(pkt);
if(newPacket){
av_write_frame(*it , newPacket);
av_free_packet(newPacket);
}But,At the receiving terminate,I only find the API:av_read_frame.The API just decode every complete frame from AVFormatContext.My SEI go nothing !
Besides,I also trying to put my parameters in side_data or metadate of AVFrame,but after rtp tansporting,received AVFrame’s side_data and metadata is 0x00 again.
Could someone give me some train of thought ?