
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (88)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (8388)
-
Python ffmpeg does not save the mp4 clips to file
30 janvier 2021, par oo92I'm using the ffmpeg Python library to save 60 second mp4 clips to file from Twitch livestreams using its API. This is my code :


current_dir = os.getcwd()

client = TwitchClient(client_id='')
streams_now = client.streams.get_live_streams(limit=100, offset=900)
epoch = str(math.ceil(time.time()))

if not os.path.exists(current_dir + '/twitch_videos/'):
 os.mkdir(current_dir + '/twitch_videos/')

for i in range(0, 1):
 try:
 username = streams_now[i]['channel']['name']
 id = streams_now[i]['id']
 game = streams_now[i]['game']
 game = game.translate(str.maketrans({':': '-', ' ': '-', "'": '', '!': '', '&': '_', '.': '', '+': '_'}))
 streaming = streamlink.streams('http://twitch.tv/' + username)
 stream = streaming["best"].url

 twitch_stream = ffmpeg.input(stream)

 twitch_stream = ffmpeg.filter(twitch_stream,
 'fps',
 fps=1,
 round='up')

 twitch_stream = ffmpeg.output(twitch_stream,
 current_dir + '/twitch_videos/' + '%d_' + username + '_' + epoch + '.mp4',
 sc_threshold='0',
 g='60',
 f='segment',
 segment_time='600',
 segment_format_options='movflags=+faststart',
 reset_timestamps='1')frl3dqgn21bbpp6tajjvg5pdevczac
 ffmpeg.run(twitch_stream)


 except:
 pass



I am concatenating the path it should go to, to the name of the file. But the folder is empty after I take a look.


-
Best way to go about video playback for WebAssembly, Linux, Windows, and Android
13 janvier 2021, par Michael MachaI'm currently working on a game as a passtime during quarantine. It currently builds, via a Makefile, for WASM, Linux, and Windows ; and is eventually planned to be ported to Android through NDK. The API used is (primarily) SDL, with SDL Image and SDL Mixer, and all graphics go through OpenGL.


As of the moment, all graphics, sound, and control is running perfectly ; but I would like to add video cut scenes and I'm uncertain of how to do this with WASM. I recognize that maybe half of the system resources are available in a browser, and am willing to drop fidelity in the web version to compensate. Currently, all code is in C and GLSL ; but if I need to I can add C++, or a little extra JavaScript.


My compilers, for each platform, are gcc, emcc, and mingw32. They're all called through Maketools. As of the moment, it looks like I can just use FFMPEG for gcc & mingw ; but what's best for emcc, which does not have an FFMPEG port available ? Will I need to call something else, or use some specific browser function ? What is the simplest way to go about this, and does anyone have a basic tutorial for in-browser video with WebAssembly ?


For a little further data, I'm debuting my project on Itch.io. For a launched-in-browser game, they require a zip file with an HTML file called index.html, and any support files, within it. (Total file size is effectively limited to 1 GB.) I'm expecting a minimum of 640x480 resolution, but would prefer higher. I'm currently digging through online examples but haven't yet found anything sufficiently basic. (This might change as I keep digging, and I'll update the question if I find anything.)


-
FFmpeg ignores the -r parameter in IDE
19 décembre 2020, par oo92I am using FFmpeg to take screenshots of live streams from Twitch API. It is supposed to take 1 screenshot every 10 seconds. When I run this command in terminal :


ffmpeg 
-ss 30 
-i https://video-weaver.yto01.hls.ttvnw.net/v1/playlist/CvIDlyFiINn0ouutK9xwQnslAsRDXyOUi8M54HZKwgbqbk3vZZuf9Yv-1Cb1Bgr8qMn6B4cN5SEtBdzNU612PMA1Il0VeTQHON-OOnQhMfL3LxsOiNv4W7qo6jk9-hOGxS6txUdj44rr_nbAzD13wiz_2Bo2vUh7-PH8_uqpcNa4AGLiocZ4fAR_VXnSLowpgIIDJqjbd95BdtOEB7T7Oug3mWSVsv2EL_wF1sH-FxPxvyDV46I69_tf_B29gTSnl7G3dWk-hX-TVUeSsqfv6GKlO1SOieVy1eEY8T5DVCf_hK8aycsD7UWClhzm_CMOd_390qIg4fk2dvxi_rIQWiPLwmc5odvfNINskYDF5zBCauGBFAszqm1D0WMLrK_QWkbn5zV_-6r8P4uOlnxbSrQh8BlniXy4T-agiLW3soDLNPFjEM-qtFPUIlLQtrxkf-jCJKNmig53TdEIf35FKqccoFqDnP_8d3ToiSao9afZAIHdu4xjKo7nySVr3aqOiXHXacvp6T8cQJ5rRpFFHhCLPdCGeC2uqQ9__p86ABe8BuWAXKN8Mhv63Io5m6b-WqeDPBKf6TeDMsQuwKVvaiQgLgSi2W1mnYI2Ec1gSbizqYDQbmlGH5qnFs-ta0hSs7zDqFhodborBd80-uVrsYj6NPZGEhBH_B6BYCtXMZVWHXCP-wn8GgxFv8q_Ow4-zRiu6ak.m3u8 
-frames:v 100 
-r 0.1 
-f 
image2 
/home/me/Desktop/datasets/image-dataset/test/40409534908_%03d.jpg> /dev/null 2>&1 < /dev/null



It works well. I have 100 screenshots that are taken 10 seconds apart. Exactly what I want but this is only for one stream. When I run this in a for loop :


user = techzz
id = 39918008013
game = Teamfight-Tactics
stream = https://video-weaver.yto01.hls.ttvnw.net/v1/playlist/Cu4DiJ7T6qlPgUNWaoBhjTtJBwsLjuYEsIKkKCfHptotlZse2SMXQQOkTtkXu9-v4e8_wWQkv-oVxixhL5e6X55OdtIBUiC-9sDgTN8fzz5_Uo8xUi7Yx_3lc2soWBy3xRQkqLIyFkPc02j2AG46OwrLF7oxjD4wxRUiTACoNVQPSLemMtZMGhVI8Yo4N6TacyF-8QQfVlyMFW6M1baPu7tSU_xTRL-4bNQMmnXYYtiEKdH1takb22ouZpiUXrHBcCxBugc5-UEJZfnTurCdVHtOkS49PYoml_HdLBSPFuiWlsTaODV_f3po35MvAIF1kYv7j3LMAfsS6QGrwoMO1Jkr5RtVOE_vUgNVCzhZuqWL5p0CHXL2kEK7o5reUEQ1wkPqpt2sqGx6p57ZltrpCpwf1kq4gUpc1CP-vJiby3cz5QxIn41Whc14DFOF-lzi72BIWH-dMUQ6AChE68jAA8TkS5JYu35H6jTaqLINqHgN11E1VGfxUSyEK9tM3KAm4NmoF1tGfATj0SqAKALX_Fj1bTJU71s9_rc1EZ76b8lIS5WjPqgEcy2GhUzbpqRwom8KlnC7Bcg7tk9Oq4YuujNcZFW2XvcvitbckpJ4bUjRD4HdVOOsfjSlUpIy33N8ioqYytHeHQsmupo904eRtVISEGzDzAPuzNdP6A282flEjIQaDKCInhO3tyoNLs0XtA.m3u8
dir_path = /home/me/Desktop/datasets/image-dataset/test/

subprocess.call('ffmpeg -ss 30 -i ' + stream + f' -frames:v 100 -r 0.1 -f image2 {dir_path}/' + str(id) + '_' + '_%03d.jpg> /dev/null 2>&1 < /dev/null &', shell=True)




I get 100 screenshots that are all taken at the same time. So, for some reason, FFmpeg behaves differently on PyCharm..