Recherche avancée

Médias (91)

Autres articles (60)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3645)

  • executing batch file when called from java project

    28 décembre 2013, par Mostafa Wasat

    So I'm working on a java project, that at some point I have to execute a batch file (from within the code).

    The batch file runs fine if I run it by double clicking in windows explorer,
    and/or even if I write the command in the command prompt it runs ok.

    However, when i call the file from the java code, the command prompt launches and says that its not a recognized command, program, or batch file.

    the patch file looks something like this :

    ffmpeg -re -i C:/001.mp3 -c:a mp3 -ar 12000 -f mulaw -f rtp rtp://127.0.0.1:1234

    and here's how I call it within the java code :

    Runtime.getRuntime().exec("cmd /c start c:\\encode.bat");

    I might add that the command prompt when run by java it runs as administrator and I have included the ffmpeg path to be run by any user anyway.

    Excuse me if I have missed any important details and would be happy to provide them if anyone needs further details to answer my dilemma.

    why might this be ?

    Edit :
    i have tried the same code on another pc and it works fine, can someone please explain to me why the command doesnt get recognized when the command prompt gets run through java

  • How to fix "moov atom not found" error in ffmpeg ?

    21 mai, par user10664722

    Well, I'm using this project to create a Telegram bot which receives URL of .mp4 files, downloads them on server and uploads them to Telegram.

    


    Issue

    


    Everything works fine so far, except converting certain .mp4 files.

    


    For example if I use a sample .mp4 video from https://sample-videos.com/. Then it works fine and converts it successfully.

    


    But if I use a video from some random website which is also simple .mp4 file, it doesn't work and throws this error :

    


    


    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible !
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] moov atom not found
data/720P_1500K_210306701.mp4 : Invalid data found when processing input

    


    


  • Streaming with ffmpeg

    15 juillet 2014, par jakebird451

    I am using ffmpeg to encode a video from a non-mp4 format to an mp4 format. My goal is to provide the video while its encoding to the client (http link). The link is provided with cherrpypy using python. To perform the encoding, I use the subprocess.Popen command and redirect the output to a pipe. Providing the file live to a browser is fine, however finding how to encode the video though ffmpeg to get my desired result is not going so well.

    The only command I found so far that even works is : ffmpeg -i {inputfile} -nostats -frag_duration 3600 -f mp4 -. This command "works", the audio is flawless however the video is encoded to what looks like 4x (or 2x) the speed of the original video. So I have been experimenting with commands to see if I can fix the video defect but so far I have yet to fix the same problem. I have been attempting to inject the -vcodec libx264 command, still the same problem.

    To assist in troubleshooting my problem, I decided to also save the stream to a file. Playing the recorded file yields the same effect. However, interestingly enough, playing the video though VLC and Windows Media Player fixes the video problem and the video plays perfectly fine. Sound and all. It just seems as though the html5 player (with Google Chrome) does not like however I am packing the video. It seems as thought Google Chrome and my encoded file do not play well together.

    Continuing with the streaming issue, breaking the encoding process still shows the video encoding just fine in VLC and in Windows Media Player. Well, it plays the video just fine up to until I pressed ctrl-c of course. So it seems that maybe it is not the encoding that is the problem, but either :

    1. It is a problem with the header for the generated mp4 file
    2. Google Chome is disregarding the frame rate specified in the file and mandating, say, 60 fps or even 120 ? (which would cause the fast forwarding effect)

    The webpage that I am using to show the video is dynamically created and is formed using the template below :

       
           
       
       
           <video controls="controls">
               <source src="{link}"></source>
               Your browser sux. Fix it.
           </video>
       

    The {title} and {link} components are substituted with the corresponding components. If anyone has any suggestions on how to troubleshoot this problem I would be more than willing to listen. As of right now, I am stuck on how to progress with the current state of this issue.