
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (51)
-
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 (...) -
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 (...) -
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 (8375)
-
Adding a watermark with FFMPEG via Rails
16 juin 2016, par Felixin my Rails app I want to use ffmpeg to add a watermark to a movie while uploading.
For that I’ve added the stremio-ffmpeg gem.
My code looks like this :
options = {watermark: Rails.root.join('public/images/logo_klein.png'), watermark_filter: {position: "RT", padding_x: 10, padding_y: 10}, custom: '-strict experimental'}
tmp_path = File.join File.dirname(current_path), "tmp_file.mp4"
file = FFMPEG::Movie.new(self.file.path)
file.transcode(tmp_path, options)
File.rename tmp_path, current_pathBut my Image is not added to the movie. wenn I call http://localhost/images/logo_klein.php it is shown in browser (image)
What could be the problem for not added into the movie ? When I follow the console out transcoding is started properly. But nothing mentioned of watermarking only transcoding is mentiond
console output :
INFO -- : Running transcoding...
ffmpeg -y -i /var/www/ji/public/uploads/tmp/1466030485-10470-0 013-4987/2016-06-08_09.50.55.mp4 -strict experimental /var/www/ji/public/uploads/tmp/1466030485-10470-0013-4987/tmp_file.mp4What could be the problem ?
-
rails / streamio-ffmpeg - How to execute 2-pass encoding ?
20 mars 2017, par R4ttlesnakeI’m using streamio-ffmpeg to encode videos uploaded to my Rails application via ffmpeg. I want to encode the videos to .webm-format using the VP9 coding format and the VP9 Encoding Guide of the WebM Project recommends using 2-pass encoding. I managed to get the videos encoding via streamio-ffmpeg using 1-pass encoding, but I can’t figure out how to handle the 2-pass encoding.
Here my setup so far :
# create two tempfiles for the video and a still
video = Tempfile.new(["video", ".webm"], binmode: true)
still = Tempfile.new(["still", ".jpg"], binmode: true)
# new FFMPEG
movie = FFMPEG::Movie.new(original.path)
# extract still from video
movie.screenshot(still.path)
# encode video
options = %w(-c:v libvpx-vp9 -b:v 1000K -threads 8 -speed 4 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libvorbis -b:a 64k -f webm)
movie.transcode(video.path, options)The command to do a 2-pass encoding with ffmpeg would be :
ffmpeg -i <source> -c:v libvpx-vp9 -pass 1 ... -f webm /dev/null
ffmpeg -i <source> -c:v libvpx-vp9 -pass 2 ... -f output.webm
</source></source>In particular, I don’t get how to pass the file of the first encoding step to the second step with streamio-ffmpeg. How would I apply these two steps to the syntax of
movie.transcode(output, options)
?Thanks !
-
Play same audio file to two different sound cards simultaneously using android media player [on hold]
15 décembre 2016, par HardikI have one custom board( media player) running android4.2 OS on it and I need to add a feature that will play same audio to two different sound cards simultaneously.
I have two output devices HDMI and TLV320aic3100 Codec.
And Want to play Video and audio through HDMI and same audio should play through TLV codec. Audio through TLV codec should be in sync with HDMI video/audio.Right now I’m able to play audio through TLV codec by hard-coding sound card number in tinyalsa PCM code "pcm.c" which is used by HAL code of Android Media Player (by default this code will give audio to HDMI),
but not able to provide audio to both sound cards simultaneously.I tried with creating thread in pcm code and writing incoming audio data to both sound card, By doing this HDMI going into under-run problem.
Is there any way to provide same audio to both sound cards simultaneously using Android Media Player or any other options to try ?