Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (18)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les images

    15 mai 2013
  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (1691)

  • FFMpeg doesn't make a blued video on S3

    15 juin 2022, par uekyo

    I want to make a blued video but after running the below code, 48 bite file just appears. I tried mp3 file to transfer to wave then it worked well. Do you guys have any suggestions to make this solution ?

    


    import json
import os
import boto3

def lambda_handler(event, context):
    # boto3 client
    s3 = boto3.client("s3")

    # replace below configuration
    bucket_name = "testestest"
    key = "video1.mp4"

    # downloading file to /tmp directory within lambda
    lambda_file_path = f"/tmp/{key}"
    lambda_output_file_path = "/tmp/trancoded_english_audio.mp4"

    # downloading file
    s3.download_file(bucket_name, key, lambda_file_path)

    # transcoding
    os.system(f'/opt/ffmpeglib/ffmpeg -i {lambda_file_path} -vf "gblur=sigma=50" -c:a copy {lambda_output_file_path}')

    # uploading transcoded file
    s3.upload_file(
        Bucket=bucket_name,
        Key=lambda_output_file_path.split("/")[-1],
        Filename=lambda_output_file_path,
    )

    return {"statusCode": 200, "body": json.dumps("Hello from Srce Cde!")}


    


  • Video captured from x11grab is not playable in HLS format on Firefox/Safari

    27 juillet 2022, par spartanz51

    I'm trying to produce an HLS playlist from a video file.

    


    It's a file captured from a virtual screen with ffmpeg and x11grab module :

    


    ffmpeg -y -t 10 -copyts -draw_mouse 0 -framerate 24 -f x11grab -thread_queue_size 1024 -i :0 -f pulse -i default -acodec copy /tmp/test_preprocessed.mkv


    


    But when I'm trying to produce HLS from this file, the output seems not correct, as it doesn't play in Firefox/Safari, but does play in Chrome (using hls.js or https://www.hlsplayer.net/ for example)

    


    Original file : https://transfer.sh/y1a6Fv/735171b9-42a1-461a-a118-981119bdf74e_preprocessed.mkv

    


    HLS Playlist generated from this file : https://video-staging-bucket.ams3.digitaloceanspaces.com/c08584ca-4731-4820-b5c7-71f12955c0b2/stackoverflow/playlist.m3u8

    


    (Works in https://www.hlsplayer.net/ with chrome, doesn't works with Firefox/Safari)

    


    How I'm producing the HLS :

    


    ffmpeg -y \
  -t 10 \
  -i 735171b9-42a1-461a-a118-981119bdf74e_preprocessed.mkv \
  -r 24 \
  -filter_complex '[0:v]split=3[v1][v2][v3]; [v1]scale=w=1280:h=720[v1out]; [v2]scale=w=854:h=480[v2out]; [v3]scale=w=640:h=360[v3out]' \
  -map '[v1out]' -c:v:0 libx264 -x264-params "nal-hrd=cbr:force-cfr=1" -b:v:0 3200k -maxrate:v:0 3200k -minrate:v:0 2500k -bufsize:v:0 3200k -preset slow -g 48 -sc_threshold 0 -keyint_min 48 \
  -map '[v2out]' -c:v:1 libx264 -x264-params "nal-hrd=cbr:force-cfr=1" -b:v:1 1600k -maxrate:v:1 1600k -minrate:v:1 1250k -bufsize:v:1 1600k -preset slow -g 48 -sc_threshold 0 -keyint_min 48 \
  -map '[v3out]' -c:v:2 libx264 -x264-params "nal-hrd=cbr:force-cfr=1" -b:v:2 900k -maxrate:v:2 900k -minrate:v:2 700k -bufsize:v:2 900k -preset slow -g 48 -sc_threshold 0 -keyint_min 48 \
  -map a:0 -c:a:0 aac -b:a:0 96k \
  -map a:0 -c:a:1 aac -b:a:1 128k \
  -map a:0 -c:a:2 aac -b:a:2 128k \
  -f hls \
  -hls_time 4 \
  -hls_playlist_type vod \
  -hls_flags independent_segments \
  -hls_segment_type mpegts \
  -hls_segment_filename 'hls'/stream_%v_data%02d.ts \
  -master_pl_name playlist.m3u8 \
  -var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2" \
  -t 10 \
  'hls'/stream_%v.m3u8


    


    Is there something I missed ? Maybe a standard ? Or maybe problem is related to PTS/DTS of my file ?
Thanks !

    


  • why i dont able to store hls file to the path which is mounted to aws s3 while converting using ffmpeg ?

    16 juin 2024, par Arjit

    why i dont able to store hls file to the path which is mounted to aws s3 while converting a rtmp stream using ffmpeg ? It's work when the path is non mounted.

    


    Actually I m using nginx rtmp to run a rtmp server & I want it in the foem of hls thats why the rtmp block look like this :

    


    rtmp{
    server{
        listen 1935;
        chunk_size 4096;
        # allow publish 127.0.0.1;
        allow publish all;
        # deny publish all;

        application live{
            live on;
            record off;

            hls on;
            hls_path /tmp/hls;
            hls_fragment 10s;
            hls_playlist_length 5m;
        }
    }
}


    


    And I mounted that hls path (in this case /tmp/hls)to a aws s3 bucket using s3fs.and its not storing only when the path mounted.what can be a good solution of this ?

    


    Why this happen & what can be a good solution of this ?