
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (42)
-
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
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 (6351)
-
Révision 73219 : Reparer l’affichage du detail d’un plugin : il faut faire un ajaxReload sur tout...
3 juin 2013, par cedric@yterium.comOn utilise jQuery.on() pour faire de la delegation d’event au passage
-
FFmpeg add #EXT-X-START to HLS m3u8 file
25 octobre 2017, par bosboyI am creating a HLS live streaming event playlist (m3u8 file and the ts segments) via FFmpeg. The segments at the beginning must not be removed from the playlist (it should contain all the segments). The HTML5 video element should start playing the video at the very beginning (by default it starts somewhere in the middle if the playlist contains several segments and the end tag is not contained at the end of the playlist file). To achieve that the video starts playing at the very beginning I need to add
#EXT-X-START:TIME-OFFSET=0
to the playlist file.Currently my FFmpeg command is the following :
ffmpeg -i videoSrc -map 0 -f hls -hls_time 10 -hls_list_size 0 -hls_playlist_type event -hls_allow_cache 0 -hls_segment_filename testSegmented%03d.ts testSegmentedHls.m3u8
.So my question is : How do I add
#EXT-X-START:TIME-OFFSET=0
to my HLS m3u8 playlist file using FFmpeg ? -
AWS Lambda - FFmpeg to extract frames doesn't write anything
7 avril 2024, par StormssonI have a lambda with a ffmpeg layer on it.


The command i want to use is basically


ffmpeg -i video.mp4 -qscale:v 2 -vf fps=8 '%04d.jpg'



so it has an input file, and creates 8 frames per second in the same folder


This code seems to do everything except writing the files, what am I missing ?


import ...
SIGNED_URL_TIMEOUT = 60
FPS_SAMPLES = 8

def lambda_handler(event, context):
 # Set up logging.
 logger = logging.getLogger(__name__)

 s3_client = boto3.client('s3')

 s3_source_bucket = event['Records'][0]['s3']['bucket']['name']
 s3_source_key = event['Records'][0]['s3']['object']['key']

 s3_source_basename = os.path.splitext(os.path.basename(s3_source_key))[0]

 logger.info( "bucket: %s, key: %s, basename: %s",s3_source_bucket, s3_source_key, s3_source_basename)

 s3_source_signed_url = s3_client.generate_presigned_url('get_object',
 Params={'Bucket': s3_source_bucket, 'Key': s3_source_key},
 ExpiresIn=SIGNED_URL_TIMEOUT)

 with tempfile.TemporaryDirectory() as tmpdir:
 os.chdir(tmpdir) # change the current folder to that one (current one is in os.getcwd())
 cwd = os.getcwd()
 ffmpeg_cmd = "/opt/bin/ffmpeg -i \"" + s3_source_signed_url + "\" -qscale:v 2 -vf fps="+str(FPS_SAMPLES)+" "+ cwd + "/'%04d.jpg'"
 print("COMMAND: "+ffmpeg_cmd)
 
 command1 = shlex.split(ffmpeg_cmd)
 p1 = subprocess.run(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

 # List all files and directories in the current directory
 contents = os.listdir(cwd)
 
 # Print the contents
 print(f"Contents of {cwd}:")
 for item in contents:
 print(item) # <--- NOthing here...

 
return {
 'statusCode': 200,
 'body': json.dumps("bucket: %s, key: %s, basename: %s" % (s3_source_bucket, s3_source_key, s3_source_basename))
}