Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (50)

Sur d’autres sites (9065)

  • Why Can't i view a few of my mp4 files in my .erb but can in html file ?

    27 avril 2016, par Joseph McKenzie

    I have a site that I’m working on for a customer and the strangest thing is happening to me. I pull in a list of videos from a database table and it plays the video that I want it to, this all works fine.

    For some reason some of the video files will not play in either chrome nor Firefox when viewing my page from an .erb file,but they will work in Microsoft edge. They will all work in an .html file though in all my browsers they are raw .264 files converted to mp4 via ffmpeg .

    I would think if it was a file corruption it wouldn’t play fine in a .html file or Edge.

    <% links[0,1].each do |links|%>-->

    <% if  links[1] == "Not_Watched"%>

    <video width="320" height="240" controls="controls">
    <source src="../videos/&lt;%=links[0]%>" type="video/mp4">

    </source></video>
    &lt;%end%>
    &lt;%end%>

    get '/page1' do


    thing1= database.execute("select * from thing1");
    thing2= database.execute("select * from thing2")                
    links = database.execute("select * from links")                



      erb :page1, :locals => {:thing1=> thing1, :thing2=> thing2, :links => links}



    end

    I had to change some of the code names up because i cant put up to much of this code online...... and there is a lot more I didn’t include because didn’t have anything to do with anything as far as I could imagine. If anyone thinks it could have a bearing ill post some of it but changed up so that I can

  • Révision 103728 : refs #3692 : Intégration de la library MediaElement en 4.0.2

    2 avril 2017, par real3t@gmail.com

    Testé sous Windows 10 avec Edge, FireFox et Chrome en utilisant les .mp4, .ogg et .mp3 utilisés par http://www.mediaelementjs.com/

    Pas testé les skins.

  • Using ffmpeg to split videos into frames doesn't work

    28 décembre 2018, par אבנר יעקב

    In my code i’m trying to split video to frames using ffmpeg.

    for this I’m using this code

    experiments = ['iguazu.mp4', 'boat.mp4']

    for experiment in experiments:
       exp_no_ext = experiment.split('.')[0]
       os.system('mkdir dump')
       os.system('mkdir dump\%s' % exp_no_ext)
       os.system("ffmpeg -i videos\%s dump\%s\%s%%03d.jpg" % (experiment,
    exp_no_ext, exp_no_ext))

    So in visual studio code it’s working perfect but in visual studio community the line "os.system("ffmpeg -i videos\%s dump\%s\%s%%03d.jpg" % (experiment,
    exp_no_ext, exp_no_ext))" showing error "ffmpeg is not recognized as an internal or external command".