
Recherche avancée
Autres articles (88)
-
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 (...) -
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. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (5534)
-
Python video player using ffpyplayer.player with audio repeated cracking at end of clip
18 janvier 2021, par sunyaerI am using the codes below to do a video player. For video clips cut using this command : "ffmpeg -i PrideAndPrejudice.mp4 -ss 00:50:31 -t 00:03:30 OutPutPP.mp4", there is audio crack that keeps repeating a couple of times when the picture stops at the end of the video. I suspect there may be some issues with the codes of QTimer, but as I am quite new to Python and ffmpeg, and can't figure out what exactly the problem is, not to mention how to fix it. Your help would be greatly appreciated.


self.timer = QTimer()
 self.timer.setInterval(50)
 self.timer.start()
 self.timer.timeout.connect(self.showFrame)



This is the whole codes :


from ffpyplayer.player import MediaPlayer
 import sys
 from PyQt5.QtWidgets import *
 from PyQt5.QtGui import QPixmap, QImage, QImageReader
 from PyQt5.QtCore import QTimer

class MyApp(QWidget):
 def __init__(self, name, parent=None):
 super(MyApp, self).__init__(parent)
 self.label = QLabel()
 self.qimg = QImage()
 self.val = ''

 self.player = MediaPlayer("PrideAndPrejudice005030.mp4")
 self.timer = QTimer()
 self.timer.setInterval(50)
 self.timer.start()
 self.timer.timeout.connect(self.showFrame)

 layout = QVBoxLayout()
 layout.addWidget(self.label)
 self.setLayout(layout)
 self.setWindowTitle(name)

 # self.showFullScreen()

 def showFrame(self):
 frame, self.val = self.player.get_frame()
 if frame is not None:
 img, t = frame
 self.qimg = QImage(bytes(img.to_bytearray()[0]), img.get_size()[0], img.get_size()[1],
 QImage.Format_RGB888)
 self.label.setPixmap(QPixmap.fromImage(self.qimg))


if __name__ == '__main__':
 app = QApplication(sys.argv)
 t = MyApp(sys.argv[0])
 t.show()
 sys.exit(app.exec_())



-
Python video player using ffpyplayer.player with audio repeated crack issue at end of clip
17 janvier 2021, par sunyaerI am using the codes below to do a video player. For video clips cut using this command : "ffmpeg -i PrideAndPrejudice.mp4 -ss 00:50:31 -t 00:03:30 OutPutPP.mp4", there is audio crack that keeps repeating a couple of times when the picture stops at the end of the video. I suspect there may be some issues with the codes of QTimer, but as I am quite new to Python and ffmpeg, and can't figure out what exactly the problem is, not to mention how to fix it. It would be greatly appreciated for your help.


self.timer = QTimer()
 self.timer.setInterval(50)
 self.timer.start()
 self.timer.timeout.connect(self.showFrame)



This is the whole codes :


from ffpyplayer.player import MediaPlayer
 import sys
 from PyQt5.QtWidgets import *
 from PyQt5.QtGui import QPixmap, QImage, QImageReader
 from PyQt5.QtCore import QTimer

class MyApp(QWidget):
 def __init__(self, name, parent=None):
 super(MyApp, self).__init__(parent)
 self.label = QLabel()
 self.qimg = QImage()
 self.val = ''

 self.player = MediaPlayer("PrideAndPrejudice005030.mp4")
 self.timer = QTimer()
 self.timer.setInterval(50)
 self.timer.start()
 self.timer.timeout.connect(self.showFrame)

 layout = QVBoxLayout()
 layout.addWidget(self.label)
 self.setLayout(layout)
 self.setWindowTitle(name)

 # self.showFullScreen()

 def showFrame(self):
 frame, self.val = self.player.get_frame()
 if frame is not None:
 img, t = frame
 self.qimg = QImage(bytes(img.to_bytearray()[0]), img.get_size()[0], img.get_size()[1],
 QImage.Format_RGB888)
 self.label.setPixmap(QPixmap.fromImage(self.qimg))


if __name__ == '__main__':
 app = QApplication(sys.argv)
 t = MyApp(sys.argv[0])
 t.show()
 sys.exit(app.exec_())



-
Anomalie #4067 : Include manquant
24 décembre 2017Call stack :
( ! ) Fatal error : Uncaught Error : Call to undefined function autoriser() in C :\wwwrootDev_mutualisation\spip31.pyrat.net\ecrire\public\quete.php on line 247
( ! ) Error : Call to undefined function autoriser() in C :\wwwrootDev_mutualisation\spip31.pyrat.net\ecrire\public\quete.php on line 247
Call Stack
# Time Memory Function Location
1 0.0003 369744 main( ) ...\spip.php:0
2 0.2321 8020856 include( ’C :\wwwrootDev_mutualisation\spip31.pyrat.net\ecrire\public.php’ ) ...\spip.php:26
3 0.3603 12323200 include( ’C :\wwwrootDev_mutualisation\spip31.pyrat.net\ecrire\public\evaluer_page.php’ ) ...\public.php:157
4 0.3603 12347808 eval( ’ ?> ’Sigles’, ’title’ => ’Définitions’, ’titretop’ => ’page_definitions’, ’type’ => ’sigles’, ’lang’ => ’fr’), array("compil"=>array(’plugins/soyezcreateurs/sigles.html’,’html_bc6f01a766b68726744d38216083725d’,’’,2,$GLOBALS[’spip_lang’])), _request("connect")) ; ?>
Sigles
GEDEK
Gigabit Ethernet Data Exchange Kit. “Hardware Stack” Concept invented by ALSE, GEDEK ? is a processor-less autonomous block which implements the Ethnet protocols required to establish, maintain, and perform high performance data exchange over standard Ethernet.RGAA
Référentiel Général pour l’Accessibilité des AdministrationsSPIP
Système de Publication pour un Internet Participatif’Sigles’, ’titretop’ => ’page_definitions’, ’lang’ => ’fr’), array("compil"=>array(’plugins/soyezcreateurs/sigles.html’,’html_bc6f01a766b68726744d38216083725d’,’’,21,$GLOBALS[’spip_lang’])), _request("connect")) ; ?> ’ ) ...\evaluer_page.php:51
5 0.3604 12349144 recuperer_fond( ) ...\evaluer_page.php(51) : eval()’d code:6
6 0.3604 12349640 evaluer_fond( ) ...\utils.php:3224
7 0.3604 12349640 inclure_page( ) ...\assembler.php:602
8 0.3608 12351408 public_produire_page_dist( ) ...\assembler.php:278
9 0.3608 12351408 public_parametrer_dist( ) ...\assembler.php:314
10 0.3633 12843144 html_50335ec5b4f7cf3b74936762b816286c( ) ...\parametrer.php:128
11 0.3638 12843832 BOUCLE_LogoArticlehtml_50335ec5b4f7cf3b74936762b816286c( ) ...\html_50335ec5b4f7cf3b74936762b816286c.php:812
12 0.3638 12845856 quete_condition_statut( ) ...\html_50335ec5b4f7cf3b74936762b816286c.php:151Squelette concerné : https://zone.spip.org/trac/spip-zone/browser/_squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs/noisettes/header/header.html
Boucle : BOUCLE_LogoArticleCode fautif : la ligne quete_condition_statut(’articles.statut’,’publie,prop,prepa/auteur’,’publie’,’’), dans :
function BOUCLE_LogoArticlehtml_50335ec5b4f7cf3b74936762b816286c(&$Cache, &$Pile, &$doublons, &$Numrows, $SP)
static $command = array() ;
static $connect ;
$command[’connect’] = $connect = ’’ ;if (!defined(’_DIR_PLUGIN_ACCESRESTREINT’))
$link_empty = generer_url_ecrire(’admin_vider’) ; $link_plugin = generer_url_ecrire(’admin_plugin’) ;
$message_fr = ’La restriction d\’accè ;s a ete desactivé ;e. Corriger le problè ;me ou vider le cache pour supprimer les restrictions.’ ;
$message_en = ’Acces Restriction is now unusable. Correct this trouble or empty the cache to finish restriction removal.’ ;
die($message_fr.’
’.$message_en) ;
if (!isset($command[’table’]))
$command[’table’] = ’articles’ ;
$command[’id’] = ’_LogoArticle’ ;
$command[’from’] = array(’articles’ => ’spip_articles’) ;
$command[’type’] = array() ;
$command[’groupby’] = array() ;
$command[’select’] = array("articles.id_article",
"articles.id_rubrique",
"articles.id_article",
"articles.lang",
"articles.titre") ;
$command[’orderby’] = array() ;
$command[’join’] = array() ;
$command[’limit’] = ’’ ;
$command[’having’] =
array() ;
$command[’where’] =
array(
quete_condition_statut(’articles.statut’,’publie,prop,prepa/auteur’,’publie’,’’),
quete_condition_postdates(’articles.date’,’’),
array(’=’, ’articles.id_article’, sql_quote(@$Pile[0][’id_article’], ’’,’bigint(21) NOT NULL AUTO_INCREMENT’)), sql_in(’articles.id_article’, lister_objets_avec_logos(’id_article’), ’’), sql_in(’articles.id_article’, accesrestreint_liste_objets_exclus(’articles’, !test_espace_prive()), ’NOT’), sql_in(’articles.id_rubrique’, accesrestreint_liste_rubriques_exclues(!test_espace_prive()), ’NOT’)) ;
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime() ;
$t0 = "" ;
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array(’plugins/soyezcreateurs/noisettes/header/header.html’,’html_50335ec5b4f7cf3b74936762b816286c’,’_LogoArticle’,9,$GLOBALS[’spip_lang’])
) ;
if (!$iter->err())
lang_select($GLOBALS[’spip_lang’]) ;
$SP++ ;
// RESULTATS
while ($Pile[$SP]=$iter->fetch())lang_select_public($Pile[$SP][’lang’], ’’, $Pile[$SP][’titre’]) ;
$t0 .= (($t1 = strval(url_absolue(extraire_attribut(
((!is_array($l = quete_logo(’id_article’, ’on’, $Pile[$SP][’id_article’],’’, 0))) ? ’’ :
("<img class=\"spip_logo spip_logos\" alt=\"\" src=\"$l[0]\"" . $l[2] . ($l[1] ? " onmouseover=\"this.src='$l[1]'\" onmouseout=\"this.src='$l[0]'\"" : "") . ' />
’)),’src’)))) !==’’ ?
(’’) :
’’) ;
lang_select() ;
lang_select() ;
$iter->free() ;
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_LogoArticle @ plugins/soyezcreateurs/noisettes/header/header.html","profiler"._LOG_AVERTISSEMENT) ;
return $t0 ;