Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (71)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (5297)

  • Xuggler encoding and muxing

    18 décembre 2012, par HeineyBehinds

    I'm trying to use Xuggler (which I believe uses ffmpeg under the hood) to do the following :

    • Accept a raw MPJPEG video bitstream (from a small TTL serial camera) and encode/transcode it to h.264 ; and
    • Accept a raw audio bitsream (from a microphone) and encode it to AAC ; then
    • Mux the two (audio and video) bitsreams together into a MPEG-TS container

    I've watched/read some of their excellent tutorials, and so far here's what I've got :

    // I'll worry about implementing this functionality later, but
    // involves querying native device drivers.
    byte[] nextMjpeg = getNextMjpegFromSerialPort();

    // I'll also worry about implementing this functionality as well;
    // I'm simply providing these for thoroughness.
    BufferedImage mjpeg = MjpegFactory.newMjpeg(nextMjpeg);

    // Specify a h.264 video stream (how?)
    String h264Stream = "???";

    IMediaWriter writer = ToolFactory.makeWriter(h264Stream);
    writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_H264);
    writer.encodeVideo(0, mjpeg);

    For one, I think I'm close here, but it's still not correct ; and I've only gotten this far by reading the video code examples (not the audio - I can't find any good audio examples).

    Literally, I'll be getting byte-level access to the raw video and audio feeds coming into my Xuggler implementation. But for the life of me I can't figure out how to get them into an h.264/AAC/MPEG-TS format. Thanks in advance for any help here.

  • Merge commit ’f726fc21ef76a8ba3445448066f7b2a687fbca16’

    1er février 2015, par Michael Niedermayer
    Merge commit ’f726fc21ef76a8ba3445448066f7b2a687fbca16’
    

    * commit ’f726fc21ef76a8ba3445448066f7b2a687fbca16’ :
    ogg : Provide an option to offset the serial number

    Conflicts :
    libavformat/oggenc.c

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] doc/muxers.texi
    • [DH] libavformat/oggenc.c
  • AWS lambda mp4 thumbnail generator using ffmpeg - incorrect format generated

    10 avril 2021, par sam bhandu

    I am trying to create a thumbnail generator for every mp4 file uploaded to the s3 bucket. I have been following this post published by AWS. The code works fine for the transcoding video file. I changed the code to generate a thumbnail. The code does generate a file but it is an invalid image type.

    &#xA;

    import json&#xA;import os&#xA;import subprocess&#xA;import shlex&#xA;import boto3&#xA;import uuid&#xA;&#xA;S3_DESTINATION_BUCKET = "example-bucket"&#xA;SIGNED_URL_TIMEOUT = 60&#xA;&#xA;def lambda_handler(event, context):&#xA;&#xA;    # s3_source_bucket = event[&#x27;Records&#x27;][0][&#x27;s3&#x27;][&#x27;bucket&#x27;][&#x27;name&#x27;]&#xA;    # s3_source_key = event[&#x27;Records&#x27;][0][&#x27;s3&#x27;][&#x27;object&#x27;][&#x27;key&#x27;]&#xA;    # s3_source_basename = os.path.splitext(os.path.basename(s3_source_key))[0]&#xA;    # s3_destination_filename = s3_source_basename &#x2B; "_cfr.ts"&#xA;    &#xA;    hex_c = uuid.uuid4()&#xA;    s3_destination_filename = &#x27;/{}/{}.{}&#x27;.format(&#x27;tmp&#x27;,hex_c, &#x27;jpg&#x27;)&#xA;    s3_client = boto3.client(&#x27;s3&#x27;)&#xA;    s3_media_url = &#x27;https://s3-us-west-2.amazonaws.com/example-bucket/videos/presentations/testing.mp4&#x27;&#xA;    ffmpeg_cmd = "/opt/bin/ffmpeg -i \"" &#x2B; s3_media_url &#x2B; "\" -ss 00:00:02 -vframes 1  \"" &#x2B; s3_destination_filename &#x2B; "\""&#xA;    # ffmpeg_cmd = "/opt/bin/ffmpeg -i \"" &#x2B; s3_source_signed_url &#x2B; "\" -f mpegts -c:v copy -af aresample=async=1:first_pts=0 -"&#xA;    &#xA;    command1 = shlex.split(ffmpeg_cmd)&#xA;    p1 = subprocess.run(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)&#xA;   &#xA;    resp = s3_client.put_object(Body=s3_destination_filename, Bucket=S3_DESTINATION_BUCKET, Key=&#x27;{}{}&#x27;.format(hex_c, &#x27;.jpg&#x27;))&#xA;    return {&#xA;        &#x27;statusCode&#x27;: 200,&#xA;        &#x27;body&#x27;: json.dumps(&#x27;Processing complete successfully&#x27;)&#xA;    }&#xA;

    &#xA;

    Output is as :

    &#xA;

    {&#xA;  "statusCode": 200,&#xA;  "body": "\"Processing complete successfully\""&#xA;}&#xA;&#xA;Function Logs&#xA;START RequestId: b73aaacc-5da5-417a-9f98-5def438dee96 Version: $LATEST&#xA;ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 6.3.0 (Debian 6.3.0-18&#x2B;deb9u1) 20170516&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;  libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;https://s3-us-west-2.amazonaws.com/example-bucket/videos/presentations/testing.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 1&#xA;    compatible_brands: isomavc1mp42&#xA;    creation_time   : 2020-04-17T18:31:33.000000Z&#xA;  Duration: 00:00:33.07, start: 0.000000, bitrate: 90 kb/s&#xA;    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 854x480 [SAR 1:1 DAR 427:240], 23 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-17T18:31:29.000000Z&#xA;    Stream #0:1(eng): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-17T18:31:29.000000Z&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x67ddc40] deprecated pixel format used, make sure you did set range correctly&#xA;Output #0, image2, to &#x27;/tmp/4633bb13-4a15-49b7-a445-d910bebaddf6.jpg&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 1&#xA;    compatible_brands: isomavc1mp42&#xA;    encoder         : Lavf58.20.100&#xA;    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-17T18:31:29.000000Z&#xA;      encoder         : Lavc58.35.100 mjpeg&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1&#xA;frame=    0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    &#xA;frame=    0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    &#xA;frame=    0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    &#xA;frame=    1 fps=0.4 q=6.3 Lsize=N/A time=00:00:00.03 bitrate=N/A speed=0.0149x    &#xA;video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;END RequestId: b73aaacc-5da5-417a-9f98-5def438dee96&#xA;REPORT RequestId: b73aaacc-5da5-417a-9f98-5def438dee96  Duration: 6349.25 ms    Billed Duration: 6350 ms    Memory Size: 155 MB Max Memory Used: 123 MB Init Duration: 368.12 ms&#xA;&#xA;Request ID&#xA;b73aaacc-5da5-417a-9f98-5def438dee96&#xA;

    &#xA;

    An image file is uploaded to the S3 folder, but when I try to open it flags an invalid file format. The file size is only 40.0 Bytes.&#xA;S3 bucket image folder&#xA;invalid file format

    &#xA;