
Recherche avancée
Autres articles (80)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
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 ;
Sur d’autres sites (12641)
-
RoutingError No route matches GET videos/original/missing.png
4 novembre 2015, par D.GravesOkay so Im having an issue uploading videos using paperclip av transcoder. Im getting just a blank black image for my video and cant play anything. So no error pops up online but on my GitBash I see an ActionController Routing Error.
This is the Error I see in my Gitbash
My model that has the video :
class Pin < ActiveRecord::Base
belongs_to :user
has_attached_file :video, :styles => {
:medium => { :geometry => "640x480", :format => 'mp4' },
:thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
}, :processors => [:transcoder]
validates_attachment_content_type :video, :content_type => ["video/mp4", "video.mov", "video/mpeg","video/mpeg4", "image/jpg", "image/jpeg"]
endMy show view for the video :
<%= video_tag @pin.video.url %>
<p>
<strong>Description:</strong>
<%= @pin.description %>
</p>
<% if @pin.user == current_user %>
<%= link_to 'Edit', edit_pin_path(@pin) %>
<% end %>
<%= link_to 'Back', pins_path %>I believe I installed ffmpeg correct and here is what it shows on my Gitbash for my version of ffmpeg
I also have the newest version of paperclip and paperclip av transcoder installed. Am I just missing a route ? If you all need any other code to maybe help just let me know and ill post it
-
FFMPEG scene detection : overlay original frame number
21 décembre 2020, par FugiI'm able to extract all frames that are not similar to the previous frame from a video file using
ffmpeg -i video.mp4 -vf "select=gt(scene\,0.003),setpts=N/(30*TB)" frame%d.jpg
(source)

I would like to overlay the frame number onto each selected frame. I tried adding
drawtext=fontfile=/Windows/Fonts/Arial.ttf: text='frame\: %{frame_num}': x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1: fontsize=30
to the filter after select and setpts, however %frame_num returns1, 2, 3, ...
(source)

If I put drawtext before select and setpts, I get something like
16, 42, 181, ...
as frame numbers (which is exactly what I want), but since the scene detection runs after adding the text overlay, changes in the overlay may be detected as well.

Is it possible to do the scene detection and overlay independently from another ?
[in] split [out0][out1]
can be used to apply filters separately, but I don't know how to "combine" the results again.

-
Build Live Audio Stream Player
5 décembre 2011, par KurtFor an internship project i've been trying to develop a simple audio player for audio live stream.
Currently i'm using a homemade three buffering (of 1/3 s each) solution played by QAudioOutput, which recall himself after finished his reading.
void VideoServer::getBuf(QBuffer * p_buf)
{
audio_chunk* ac = NULL;
std::vector v;
v.clear();
for (int i = 0; i < 20;)
{
ac = _audioPreviewSharedData->deQueueAudio();
if (ac)
{
v.insert(v.end(), ac->v_buf.begin(), ac->v_buf.end());
i++;
delete ac;
}
else
usleep(50000);
}
p_buf->close();
p_buf->setData((const char *)(&v[0]), v.size()*2);
p_buf->open(QIODevice::ReadOnly);
}-
void VideoServer::slot_launchAudioPreviewBuffering()
{
getBuf(_buf1);
getBuf(_buf2);
_state = 2;
connect(_audioPreviewTimer, SIGNAL(timeout()), this, SLOT(slot_audioPreviewBuffering()));
_audioPreviewTimer->start(0);
connect(_audioOut, SIGNAL(stateChanged(QAudio::State)), this, SLOT(finishedPlaying(QAudio::State)));
}-
void VideoServer::finishedPlaying(QAudio::State state)
{
if(state == QAudio::IdleState) {
slot_audioPreviewBuffering();
}
}-
void VideoServer::slot_audioPreviewBuffering()
{
switch (_state) {
case 0:
{
_audioOut->start(_buf2);
getBuf(_buf1);
_state = 1;
break;
}
case 1:
{
_audioOut->start(_buf3);
getBuf(_buf2);
_state = 2;
break;
}
case 2:
{
_audioOut->start(_buf1);
getBuf(_buf3);
_state = 0;
break;
}
}
}But i'm suffering of choppy sound (little interruption between audio chunk).
How to play this flux without interruption () and with a reasonable delay between audio and video (less 1s) ? Is there a best way ? Am i doing wrong ?
Thank you !