
Recherche avancée
Autres articles (68)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (7805)
-
Could not open file v_YoYo_g07_c04.jpeg av_interleaved_write_frame() : Input/output error
26 octobre 2017, par Josephthe purpose of the following code is to extract frames from a list of videos.
To do so l defined in python 3.5 extract_frames function which calls extract_frame function. In this latter a ffmpeg instruction is given to extract the framesdef extract_frames(vidlist,vidDir,outputDir):
f = open(vidlist, 'r')
vids = f.readlines()
f.close()
vids = [video.rstrip() for video in vids]
for vid in vids:
videoName = os.path.join(vidDir,vid.split('.')[0]+".avi")
frameName = os.path.join(outputDir, vid.split('.')[0]+".jpeg")
extract_frame(videoName,frameName)
extract_frames(trainlist01, ucf101_path,training_output)such that :
ucf101_path = "/local/common-data/UCF/UCF-101" # Path to the root dataset
trainlist01="/local/common-data/UCF/ucfTrainTestlist/trainlist01.txt"
training_output = '/local/common-data/UCF/tmp_frames/train/'where trainlist01.txt contains a set of lines as follow (first column the path to the video and the second is the class of the video) :
ApplyEyeMakeup/v_ApplyEyeMakeup_g08_c01.avi 1 .....
And videoname and framename correspond for instance to :
videoname="/local/common-data/UCF/UCF-101/YoYo/v_YoYo_g07_c04.avi"
framename="/local/common-data/UCF/tmp_frames/test/YoYo/v_YoYo_g07_c04.jpeg"The error is returned by the following function
import subprocess
def extract_frame(videoName,frameName):
if not os.path.exists(videoName):
print('%s does not exist!' % videoName)
return False
# call ffmpeg and grab its stderr output
p = subprocess.call('ffmpeg -i %s -r 1 -s qvga -t 1 -f image2 %s' % (videoName,frameName), shell=True)
return pThe error is :
[image2 @ 0x422ff80] Could not open file : /local/common-data/UCF/tmp_frames/train/YoYo/v_YoYo_g25_c05.jpeg
av_interleaved_write_frame() : Input/output errorand the output files training_output where l supposed to get my frames is empty.
files and folders ad subfolders have all right .
What’s wrong with my code ?
EDIT 1
After creating a subfolder YoYo/ in /local/common-data/UCF/tmp_frames/train/ and run again the code l got this new error :
Could not get frame filename number 2 from pattern '/local/common-data/UCF/tmp_frames/train/YoYo/v_YoYo_g25_c05.jpeg' (either set updatefirst or use a pattern like %03d within the filename pattern) av_interleaved_write_frame(): Invalid argument
-
Revision 86428 : Un autre type de jointure qui devrait fonctionner : cas simple : ...
3 décembre 2014, par kent1@… — LogUn autre type de jointure qui devrait fonctionner :
cas simple : $cle_depart dans la table_liee
Ce cas pourrait exister par exemple si on activait une jointure de recherche sur les articles avec la table spip_evenements du plugin agenda.
Il suffirait d’ajouter la ligne suivante dans le pipeline "declarer_tables_objets_sql" dans le fichier base/agenda_evenements :
$tablesspip_articles ?rechercher_jointures ?evenement ? = array(’titre’ => 8, ’descriptif’ => 5, ’lieu’ => 5, ’adresse’ => 3) ; -
Revision 86428 : Un autre type de jointure qui devrait fonctionner : cas simple : ...
3 décembre 2014, par kent1@… — LogUn autre type de jointure qui devrait fonctionner :
cas simple : $cle_depart dans la table_liee
Ce cas pourrait exister par exemple si on activait une jointure de recherche sur les articles avec la table spip_evenements du plugin agenda.
Il suffirait d’ajouter la ligne suivante dans le pipeline "declarer_tables_objets_sql" dans le fichier base/agenda_evenements :
$tablesspip_articles ?rechercher_jointures ?evenement ? = array(’titre’ => 8, ’descriptif’ => 5, ’lieu’ => 5, ’adresse’ => 3) ;