Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (63)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • ffmpeg file conversion AWS Lamda

    10 avril 2021, par eartoolbox

    I want a .webm file to be converted to a .wav file after it hits my S3 bucket. I followed this tutorial and tried to adapt it from my use case using the .webm -> .wav ffmpeg command described here.

    


    My AWS Lambda function generally works, in that when my .webm file hits the source bucket, it is converted to .wav and ends up in the destination bucket. However, the resulting file .wav is always 0 bytes (though the .webm not, including the appropriate audio). Did I adapt the code wrong ? I only changed the ffmpeg_cmd line from the first link.

    


    import json
import os
import subprocess
import shlex
import boto3

S3_DESTINATION_BUCKET = "hmtm-out"
SIGNED_URL_TIMEOUT = 60

def lambda_handler(event, context):

    s3_source_bucket = event['Records'][0]['s3']['bucket']['name']
    s3_source_key = event['Records'][0]['s3']['object']['key']

    s3_source_basename = os.path.splitext(os.path.basename(s3_source_key))[0]
    s3_destination_filename = s3_source_basename + ".wav"

    s3_client = boto3.client('s3')
    s3_source_signed_url = s3_client.generate_presigned_url('get_object',
        Params={'Bucket': s3_source_bucket, 'Key': s3_source_key},
        ExpiresIn=SIGNED_URL_TIMEOUT)
    
    ffmpeg_cmd = "/opt/bin/ffmpeg -i \"" + s3_source_signed_url + "\" -c:a pcm_f32le " + s3_destination_filename + " -"
    
    
    command1 = shlex.split(ffmpeg_cmd)
    p1 = subprocess.run(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

    resp = s3_client.put_object(Body=p1.stdout, Bucket=S3_DESTINATION_BUCKET, Key=s3_destination_filename)

    return {
        'statusCode': 200,
        'body': json.dumps('Processing complete successfully')
    }
 


    


  • How to compress the size of the video file using php, while uploading to the server which supports ffmpeg ?

    5 janvier 2019, par Umashankar B
    <?php
    error_reporting(1);
    $servername = "localhost";
    $username = "root";
    $password = "";
    $dbname = "demo";
    $conn = new mysqli($servername, $username, $password, $dbname);
    $target_dir = "test_upload/";
    $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
    if(isset($_POST["upd"]))
       {
           $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
           if($imageFileType != "mp4" && $imageFileType != "avi" && $imageFileType != "mov" && $imageFileType != "3gp" && $imageFileType != "mpeg")
           {
               echo "File Format Not Suppoted";
           }
           else
           {
               $video_path=$_FILES['fileToUpload']['name'];
               move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],$target_file);
               $sql = "INSERT INTO video (video_name) VALUES ('$video_path')";
               $result = $conn->query($sql);
               echo "uploaded ";
           }
       }
    if(isset($_POST["disp"]))
    {
       $sql = "select * from video";
       $result = $conn->query($sql);
       while($row=mysqli_fetch_array($result,MYSQLI_NUM))
       { ?>
           <video width="300" height="200" controls="controls">
           <source src="test_upload/&lt;?php echo $row[1]; ?>" type="video/mp4">
           </source></video>
           &lt;?php
       }
    } ?>




       <form method="post" enctype="multipart/form-data">
           <table border="1">
               <tr>
                   <td>
                       Upload  Video
                   </td>
               </tr>
               <tr>
                   <td>
                       <input type="file" />
                   </td>
               </tr>
               <tr>
                   <td>
                       <input type="submit" value="Uplaod Video" />
                       <input type="submit" value="Display Video" />
                   </td>
               </tr>
           </table>
       </form>

    I am trying to upload the video file to server which supports ffmpeg , for small size videos like 4 to 5 mb it works fine , but when i am trying to upload the video more than 15mb, it takes too much time for upload.How to compress the size of the video file with out losing the quality while uploading to server using php ?

  • How to add module nginx-rtmp-module to lemp For Streaming

    24 novembre 2018, par lamadya said

    I have Vps 16GB Ram Installed Ubuntu 16.04 And Nginx Lemp Php Mysql And PhpMyadmin
    Hosted 5 Web Site On virtual Host
    But I want To use Rtmp For streaming On my Vps Please How
    I dont finde any Tutorial How to use RTMP with Lemp just Only Nginx With Nginx-rtmp-module + HLS

    Thank you for any body help me