Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (100)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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 (...)

  • 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 (11170)

  • FFMPEG install on server

    23 juillet 2013, par s19k15

    I 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&#39;.  Stop.
    cp: cannot stat `etc/codecs.conf&#39;: No such file or directory
    Installation of MPlayer-1.0rc1.tar.bz2 ....... Completed

           Mplayer installation Failed :( , please visit the forum

    What can i do to install ??? Thanks !

  • Way to bypass video upload when testing using Rspec

    1er mars 2014, par Justin

    I'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(&#39;spec&#39;, &#39;files&#39;, &#39;concert.mov&#39;), &#39;video/mp4&#39;) }
    end
    end

    And 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
    end

    Now, 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 => &#39;mp4&#39; },
                                         :thumb => { :geometry => "470x290#", :format => &#39;jpg&#39;, :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.

  • ffmpeg errors in the daemon

    3 octobre 2020, par smoto_shei

    I created a shell script to compress a video using ffmpeg(4.3.1).

    &#xA;

    ffmpeg -y -i \&#xA; &#x27;/var/www/System/Backend/Outputs/TempSaveMovie/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27; \&#xA; -vcodec h264 -an \&#xA; &#x27;/var/www/System/Backend/Outputs/MovieOutputs/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;&#xA;&#xA;

    &#xA;

    If you run this code from the console, it will run without problems.&#xA;In fact, we're using the python subscript.call() to execute it. It works fine too.

    &#xA;

    cmd = &#x27;sh /var/www/System/Backend/cv2toffmpeg.sh&#x27;&#xA;subprocess.call(cmd, shell=True)&#xA;

    &#xA;

    Secondly, if I run it from a daemonized python program, I'll get an error. I get the following error.&#xA;You'll get an error like this

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./Outputs/TempSaveMovie/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.35.100&#xA;  Duration: 00:00:06.15, start: 0.000000, bitrate: 10246 kb/s&#xA;    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 10244 kb/s, 13 fps, 13 tbr, 13312 tbn, 13 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (h264_nvenc))&#xA;Press [q] to stop, [?] for help&#xA;[mpeg4 @ 0x55cec17c5480] header damaged&#xA;[mpeg4 @ 0x55cec17c6840] header damaged&#xA;[mpeg4 @ 0x55cec1855f80] header damaged&#xA;[mpeg4 @ 0x55cec1866e00] header damaged&#xA;Output #0, mp4, to &#x27;./Outputs/MovieOutputs/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0(und): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 13 fps, 13312 tbn, 13 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      encoder         : Lavc58.91.100 h264_nvenc&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: N/A&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mpeg4 @ 0x55cec17c8780] header damaged&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mpeg4 @ 0x55cec17c5480] header damaged&#xA;

    &#xA;

    I think the problem is when you run it from a daemonized process. There seems to be a similar problem in the past.&#xA;Ffmpeg does not properly convert videos when run as daemon&#xA;I would like to ask for your help to solve this problem. Thank you for your help from Japan.

    &#xA;