
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (37)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
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 (...) -
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 (...)
Sur d’autres sites (5698)
-
ffmpeg not working if run from py2app
28 juin 2018, par dprogramzI’m trying to build a simple app that concats 2 mp4 files. It works fine if I run it from the command line, but if I run it from py2app app it doesn’t work. If I run the app from within the py2app in the console (eg ’dist/addTag.app/Contents/MacOS/addTag’), it works fine. It only doesn’t work if i run the app by double clicking on it. Any ideas ? code below
#! /usr/bin/python
import argparse
import ffmpeg
import os
import shutil
import sys
from Tkinter import *
import time
fields = 'Input Video', 'Tag Video', 'Output Name'
def fetch(entries, bu, lb, rt):
bu['state'] = 'disabled'
lb['text'] = 'working'
rt.update()
ffmpeg.concat(ffmpeg.input(entries[0][1].get()), ffmpeg.input(entries[1][1].get())).output(os.path.expanduser("~/desktop/")+entries[2][1].get()).run()
bu['state'] = 'normal'
lb['text'] = 'Ready'
rt.update()
def makeform(root, fields):
entries = []
for field in fields:
row = Frame(root)
lab = Label(row, width=15, text=field, anchor='w')
ent = Entry(row)
row.pack(side=TOP, fill=X, padx=5, pady=5)
lab.pack(side=LEFT)
ent.pack(side=RIGHT, expand=YES, fill=X)
entries.append((field, ent))
return entries
if __name__ == '__main__':
root = Tk()
root.title("Video Maker")
ents = makeform(root, fields)
root.bind('<return>', (lambda event, e=ents: fetch(e)))
label = Label(root, text="Ready")
label.pack(side=LEFT)
b1 = Button(root, text='Make Video',
command=(lambda e=ents: fetch(e, b1, label, root)))
b1.pack(side=LEFT, padx=5, pady=5)
b2 = Button(root, text='Quit', command=root.quit)
b2.pack(side=LEFT, padx=5, pady=5)
root.mainloop()
</return> -
Install python's 'albumentations' in Kaggle's R kernel ?
22 avril 2022, par dfrankowI can start an R kernel on Kaggle, run


library(reticulate)
py_install('albumentations')



Works for awhile, then finishes.


However, importing it produces an error :


reticulate::import('albumentations')





Error in py_module_import(module, convert = convert) : ImportError : libopenh264.so.5 : cannot open shared object file : No such file or directory




This looks like this stackoverflow question.


The problem seems to be in
ffmpeg
, but I'm not sure what or how to install something to get that library.

Below is
ldd
output offfmpeg
, showing the library is not found.

conda_update
doesn't help.

system2("which",
 args=c('ffmpeg'),
 stdout=T, stderr=T)





'/root/.local/share/r-miniconda/envs/r-reticulate/bin/ffmpeg'




system2("ldd",
 args=c('/root/.local/share/r-miniconda/envs/r-reticulate/bin/ffmpeg'),
 stdout=T, stderr=T)





'\tlinux-vdso.so.1 (0x00007ffcba3f6000)''\tlibavdevice.so.58 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libavdevice.so.58 (0x00007f324e66f000)''\tlibavfilter.so.7 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libavfilter.so.7 (0x00007f324e33a000)''\tlibavformat.so.58 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libavformat.so.58 (0x00007f324e0d2000)''\tlibavcodec.so.58 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libavcodec.so.58 (0x00007f324cc01000)''\tlibavresample.so.4 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libavresample.so.4 (0x00007f324cbdf000)''\tlibpostproc.so.55 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libpostproc.so.55 (0x00007f324cbbd000)''\tlibswresample.so.3 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libswresample.so.3 (0x00007f324cb9e000)''\tlibswscale.so.5 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libswscale.so.5 (0x00007f324cb10000)''\tlibavutil.so.56 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/libavutil.so.56 (0x00007f324ca06000)''\tlibm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007f324c8b7000)''\tlibpthread.so.0 => /usr/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f324c894000)''\tlibc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f324c6a0000)''\tlibfreetype.so.6 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libfreetype.so.6 (0x00007f324c5eb000)''\tlibbz2.so.1.0 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libbz2.so.1.0 (0x00007f324c5d7000)''\tlibgmp.so.10 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libgmp.so.10 (0x00007f324c531000)''\tlibz.so.1 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libz.so.1 (0x00007f324c517000)''\tlibgnutls.so.30 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libgnutls.so.30 (0x00007f324c343000)''\tlibvpx.so.5 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libvpx.so.5 (0x00007f324bec2000)''\tlibmp3lame.so.0 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libmp3lame.so.0 (0x00007f324be49000)''\tlibopus.so.0 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libopus.so.0 (0x00007f324bde8000)''\tlibx264.so.157 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/./libx264.so.157 (0x00007f324bb1b000)''\tlibopenh264.so.5 => not found''\tlibrt.so.1 => /usr/lib/x86_64-linux-gnu/librt.so.1 (0x00007f324baf9000)''\t/lib64/ld-linux-x86-64.so.2 (0x00007f324e6c5000)''\tlibpng16.so.16 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/././libpng16.so.16 (0x00007f324bac0000)''\tlibnettle.so.8 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/././libnettle.so.8 (0x00007f324ba7f000)''\tlibhogweed.so.6 => /root/.local/share/r-miniconda/envs/r-reticulate/bin/../lib/././libhogweed.so.6 (0x00007f324ba29000)''\tlibdl.so.2 => /usr/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f324ba21000)'




-
FFmpeg.AutoGen example of how to split audio file
7 mars 2018, par SvenI want to use the FFmpeg.AutoGen project from here : https://github.com/Ruslan-B/FFmpeg.AutoGen
I’m not familiar with the ffmpeg API, so I wanted to get an example of how to split an audio file into little files, for example the audio file is about 2 hours long (can be mp3,ogg,wav,etc.) and I want to split it into several little files of x minutes. The splitting should be done on the main audio file with timestamps from and to, for example from = 00:25:00 (meaning 25 minutes), to = 00:31:12 (meaning 31 minutes, 12 seconds) and the output should be the section from the main audio file, the result is 00:06:12 (meaning 6 minutes, 12 seconds) long.
How can this task be achieved with the project ? Also a C example can help me, I would try to convert it into the framework.
Thanks for your responses.