Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

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

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • HTML5 audio and video support

    13 avril 2011, par

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

Sur d’autres sites (11360)

  • alsdec : check sample pointer range in revert_channel_correlation

    21 avril 2015, par Andreas Cadhalpun
    alsdec : check sample pointer range in revert_channel_correlation
    

    Also change the type of begin, end and smp to ptrdiff_t to make the
    comparison well-defined.

    Signed-off-by : Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
    Reviewed-by : Thilo Borgmann <thilo.borgmann@mail.de>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/alsdec.c
  • 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;

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