Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (102)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 (15458)

  • PHP with FFMPEG

    29 août 2015, par SJ04

    I am trying to run ffmpeg code on the server via PHP and here is my code :

    <?php
    $command ='find /mnt/'.$year.' /mnt/2015/ -name '.$_POST['MXF'].'.mxf';
    if (!($stream = ssh2_exec($con, $command))) {
               echo "fail: unable to execute command\n";
           } else {

               stream_set_blocking($stream, true);
               $stream_out = ssh2_fetch_stream($stream,SSH2_STREAM_STDIO);
               $file = stream_get_contents($stream_out);
               echo $file;
               $t==$file;
               echo $t;
               $ff='/usr/bin/ffmpeg -i '.$t.' -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -s '.$RESOLUTION.' -vb '.$VB.'k -ac 2 -acodec aac -b:a 128k -ar 44100 -strict -2  -vf "movie=/datastore/logo/hello_logo.png [watermark]; [in][watermark] overlay=60:main_h-overlay_h-60 [out]"  '.$NDRIVE.''.$MXF.'.mp4 -y';
               if(!($tra= ssh2_exec($con, $ff))) {
               echo "failed to execute the Command";
           }
    ?>

    and when I copy the file path from the $file command, I get the file path but when I use PHP variable $file within the FFMPEG code, I get error of -vodec not found

    I want to pass the $file variable which contain the file path on the server into the FFMPEG code.

  • Stopping Referrer Spam

    13 mai 2015, par Piwik Core Team — Community

    In this blog post we explain what is Referrer spam, this new kind of spam that has recently appeared on the Internet. We also provide solutions to stop it and preserve the quality of your analytics data.

    What is Referrer Spam ?

    Referrer spam (also known as log spam or referrer bombing) is a kind of spamming aimed at web analytics tools. A spammer bot makes repeated web site requests using a fake referrer URL to the site the spammer wishes to advertise.

    Here is an example of referrer spam in action :

    An example of referrer spam

    Half of those referrers are spams, here are some well know spammers that you may have seen in your logs : buttons-for-you-website.com, best-seo-offer.com, semalt.com

    The benefit for spammers is that their website will appear in analytics tools like Piwik or Google Analytics :

    • public analytics reports (or logs) will be indexed by search engines : links to the spammer’s website will improve its ranking
    • curious webmasters are likely to visit their referrers, thus bringing traffic to the spammer’s website

    How to deal with Referrer Spam ?

    Referrer spam is still new and analytics tools are all handling it differently.

    Referrer Spam in Piwik

    At Piwik we started working on mitigating Referrer spam more than a year ago. If you use Piwik and keep it up to date, you do not need to do anything.

    Referrer spammers are automatically excluded from your reports to keep your data clean and useful.

    New spammers are continuously detected and added to Piwik’s blacklist on each update. If you find a new spammer in your analytics data, you can even report it so that it is added to the Piwik’s open referrer blacklist and blocked for everyone.

    Referrer Spam in Google Analytics

    Google Analytics doesn’t offer any spam protection by default. It can however be configured manually using a custom Filter.

    To create a filter in Google Analytics go to the Admin section and click on All Filters. Create a new custom filter that excludes based on the Campaign Source field. In the Filter pattern enter the spammers domains you want to exclude (this is a regular expression) :

    Configuring a referrer spam filter in Google Analytics

    If new spammers arise you will need to update this list. You can also use Piwik’s referrer blacklist to exclude all the spammers currently detected.

    Other Analytics Tools

    Many web analytics tools do not yet handle Referrer spam and when using these tools, you will often find a lot of spam data in your Referrer Websites analytics reports.

    If you use an analytics tool that does not exclude Referrer spam, we recommend to contact the vendor and ask them to implement a mechanism to remove these referrer spammers. As of today many analytics vendors still have not mitigated this issue.

    Public List of Referrer Spammers

    At Piwik with the help of our large community we have decided to tackle this growing spam issue. We have created a list of up to date referrer spammers that anyone can edit.

    The list is available in a simple text file on Github : github.com/piwik/referrer-spam-blacklist.

    The list is released under the Public Domain and anyone can use it within their applications to exclude referrer spammers.

    Many people have already contributed new spammers to the list. We invite you to use the list in your apps and websites and help us keep the list up to date !

    Let’s unite and fight the spammers together.

    Happy Analytics !

  • How to make QProcess stop by button or keyboard in GUI ?

    31 août 2015, par xiaowei

    Here I want to make a recorder by ffmpeg.exe.

    And, I found the commend line, succeed running and generate the video file. And I know press "Esc" or "q" on keyboard can terminal

    Now, I want to use GUI to control the recoder(ffmpeg.exe). I select Qt here, and my work environment is windows 7 sp1.

    I use QProcess to execute it, you will see following.

    But I have no idea for terminal the process.

    The code list :
    main.cpp is simple.

    #include "mainwindow.h"
    #include <qapplication>

    int main(int argc, char *argv[])
    {
       QApplication a(argc, argv);
       MainWindow w;
       w.show();

       return a.exec();
    }
    </qapplication>

    mainwindow.h

    #ifndef MAINWINDOW_H
    #define MAINWINDOW_H

    #include <qmainwindow>
    #include <qprocess>

    namespace Ui {
    class MainWindow;
    }

    class MainWindow : public QMainWindow
    {
       Q_OBJECT

    public:
       explicit MainWindow(QWidget *parent = 0);
       ~MainWindow();

    private:
       QProcess *pro;
       QString recorder;
       QString outputName;
       QString options;

    private slots:
       void startRecode();
       void stopRecode();
    };

    #endif // MAINWINDOW_H
    </qprocess></qmainwindow>

    mainwindow.cpp

    #include "mainwindow.h"

    #include <qprocess>
    #include <qtest>
    #include <qpushbutton>
    #include <qvboxlayout>

    MainWindow::MainWindow(QWidget *parent) :
       QMainWindow(parent),
       pro(new QProcess)
    {
       QDateTime current_date_time = QDateTime::currentDateTime();
       QString current_date = current_date_time.toString("yyyy-MM-dd-hh_mm_ss");

       recorder = "E:\\bin\\ffmpeg.exe";
       outputName = current_date + ".mp4";
       options = "-f gdigrab -framerate 6 -i desktop -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -hide_banner -report";
       //-t 00:00:05"; this option can limit the process running time, and work well no GUI, but I don't want to use given time to stop recording.

       QWidget *centerWindow = new QWidget;
       setCentralWidget(centerWindow);

       QVBoxLayout *mainLayout = new QVBoxLayout;
       QPushButton *startButton = new QPushButton("start recording");
       QPushButton *stopButton = new QPushButton("stop recording");
       mainLayout->addWidget(startButton);
       mainLayout->addWidget(stopButton);

       centerWindow->setLayout(mainLayout);

       connect(startButton, SIGNAL(clicked()), this, SLOT(startRecode()));
       connect(stopButton, SIGNAL(clicked()), this, SLOT(stopRecode()));
    }

    MainWindow::~MainWindow()
    {
       delete pro;
    }

    void MainWindow::startRecode()
    {
       pro->execute(QString(recorder + " " +options +" " + outputName));
    }

    void MainWindow::stopRecode(){
       pro->terminate(); // not work
       //pro->close(); // not work, too
       //pro->kill(); // not work, T_T

       //how to terminate the process by pushbutton??
    }
    </qvboxlayout></qpushbutton></qtest></qprocess>

    There have some ideas for me ?

    or, have other solutions for my recorder ?