
Recherche avancée
Autres articles (84)
-
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 (...) -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
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 (4392)
-
playing part of audio of video/audio file from a specific point(second) to another point
13 avril 2021, par Farhang AmajiI want to play audio from a specific point(second) to another point of a video or an audio file.


I know there are some libraries like Pymedia or audioclipextractor but I can't find the way of doing this because their documentations seem to be vague or incomplete. for instance from example of audioclipextractor I can't understand where is
'/path/to/ffmpeg'
.

or any other way of playing audio from a point to point is appreciated.


from audioclipextractor import AudioClipExtractor, SpecsParser

# Inicialize the extractor
ext = AudioClipExtractor('/path/to/audio/file.mp3', '/path/to/ffmpeg')

# Define the clips to extract
# It's possible to pass a file instead of a string
specs = '''
 3.5 17 Winter is coming.
 26 32.4 Summer child.
 40 58.9 Hodor. Hodor. Hodor.
'''

# Extract the clips according to the specs and save them as a zip archive
ext.extract_clips(specs, '/path/to/output/directory', zip_output=True)



also I would love to know straight way of playing audio from a video file in from point to point if its possible to do except converting it first.


-
FFMPEG install on server
23 juillet 2013, par s19k15I have an online server (shared hosting plan) in linux, i do not know a lot stuff about linux and i am trying to install ffmpeg.
I have tryied a lot of scripts but no luck.
Now i am trying to install the below script via putty.
<a href="https://github.com/heidisoft/FFMPEG-install-script-for-shared-host" rel="nofollow">https://github.com/heidisoft/FFMPEG-install-script-for-shared-host</a>
When the install was running i get this message and the installation stops...
Installation of MPlayer-1.0rc1.tar.bz2 ....... started
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1233 100 1233 0 0 7713 0 --:--:-- --:--:-- --:--:-- 7803
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mplayer.sh: line 32: cd: MPlayer-1.0rc1/: No such file or directory
mplayer.sh: line 33: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
cp: cannot stat `etc/codecs.conf': No such file or directory
Installation of MPlayer-1.0rc1.tar.bz2 ....... Completed
Mplayer installation Failed :( , please visit the forumWhat can i do to install ??? Thanks !
-
Way to bypass video upload when testing using Rspec
1er mars 2014, par JustinI'm testing a page on my app that shows videos. I'm trying to speed up the test by bypassing the video upload process or another way ??
Maybe I'm using FactoryGirl incorrectly for file uploads..
Using FactoryGirl, I'm creating the video with
FactoryGirl.define do
factory :video do
user_id 1
type "Live"
title "FooBar"
description "Foo bar is the description"
video { fixture_file_upload(Rails.root.join('spec', 'files', 'concert.mov'), 'video/mp4') }
end
endAnd in the request's spec I'm describing the videos as :
describe "videos page" do
let(:user) { FactoryGirl.create(:user) }
let!(:video1) { FactoryGirl.create(:video) }
before { visit user_video_path(user) }
it { should have_title(user.name) }
it { should have_content(user.name) }
describe "videos" do
it { should have_content(video1.description) }
end
endNow, everytime I run the test for this page it goes through the file upload process which takes more time. I'm also using FFmpeg
**video.rb (video model)**
validates :video, presence: true
has_attached_file :video, :styles => {
:medium => { :geometry => "640x480", :format => 'mp4' },
:thumb => { :geometry => "470x290#", :format => 'jpg', :time => 10 }
},
:processors => [:ffmpeg]What this does when I test the page is the CLI goes through the video upload process like it would if you were uploading the video and watching your local server.