Recherche avancée

Médias (91)

Autres articles (67)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • 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

Sur d’autres sites (4694)

  • Revision d115cd8b12 : Merge changes I082959ab,Ib6932640 * changes : vp9/decoder : threaded row-based

    6 août 2013, par James Zern

    Changed Paths :
     Modify /vp9/common/vp9_loopfilter.c


     Modify /vp9/common/vp9_loopfilter.h


     Modify /vp9/decoder/vp9_decodframe.c



    Merge changes I082959ab,Ib6932640

    * changes :
    vp9/decoder : threaded row-based loop filter
    vp9/decoder : add thread worker

  • Can't connect to ffserver when running on android device

    11 décembre 2016, par Antonio C G

    I am working on an android app. This will run a ffserver (on the device, not another computer). The server is running and I can access the status page, everything seems ok. But when I try to send the video using ffmpeg I always get connection refused.

    This is my ffserver.conf file :

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 1000
    CustomLog /data/user/0/com.antonio.droidcast/files/log.txt
    NoDefaults

    <feed>
       File /data/user/0/com.antonio.droidcast/cache/feed1.ffm
       FileMaxSize 200M
       ACL allow 127.0.0.1
    </feed>

    <stream>
       Format mp4
       Feed feed1.ffm

       VideoCodec libx264
       VideoFrameRate 30
       VideoBitRate 512
       VideoSize 320x240
       AVOptionVideo crf 23
       AVOptionVideo preset medium
       AVOptionVideo flags +global_header

       AudioCodec aac
       Strict -2
       AudioBitRate 128
       AudioChannels 2
       AudioSampleRate 44100
       AVOptionAudio flags +global_header
    </stream>

    I connect to server using this command :

    ffmpeg -i VIDEO_PATH2 http://localhost:8090/feed1.ffm

    And this is the ouput I get :

    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument '/storage/emulated/0/Download/video1.mp4'.
    Reading option 'http://localhost:8090/feed1.ffm' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file /storage/emulated/0/Download/video1.mp4.
    Successfully parsed a group of options.
    Opening an input file: /storage/emulated/0/Download/video1.mp4.
    [file @ 0xf5f5e060] Setting default whitelist 'file,crypto'
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] ISO: File Type Major Brand: isom
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] Unknown dref type 0x08206c7275 size 12
       Last message repeated 1 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] Before avformat_find_stream_info() pos: 5446 bytes read:32768 seeks:0
    [h264 @ 0xf5f49000] user data:"x264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
    [h264 @ 0xf5f49000] no picture
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] All info found
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] After avformat_find_stream_info() pos: 6081 bytes read:98304 seeks:2 frames:3
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/video1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.25.100
     Duration: 00:02:45.59, start: 0.128000, bitrate: 24 kb/s
       Stream #0:0(eng), 2, 1/450000: Video: h264 (High), 4 reference frames (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 7451717/900000, 0 kb/s, 0.06 fps, 0.06 tbr, 450k tbn, 0.12 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng), 1, 1/8000: Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 29 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Successfully opened the file.
    Parsing a group of options: output file http://localhost:8090/feed1.ffm.
    Successfully parsed a group of options.
    Opening an output file: http://localhost:8090/feed1.ffm.
    [http @ 0xf5f5e1e0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
    [tcp @ 0xf5f5e3c0] Connection to tcp://localhost:8090 failed: Connection refused
    http://localhost:8090/feed1.ffm: Connection refused

    Does anybody know what could be wrong ?
    Just to be clear, I recompiled ffserver and ffmpeg for android. They both seem to be ok as I can execute commands. Both binaries are part of the app, so everything runs inside the phone.

    Thanks.

  • Format video to upload on instagram API (Nodejs)

    6 octobre 2022, par Rafael de Carvalho

    I'm trying to automate the process of posting photos and videos on instagram but I constantly get errors when uploading to instagram.

    &#xA;

    I will leave a video duration error here but several others happen, I need to follow the following requirements :

    &#xA;

      &#xA;
    • Container : MOV or MP4 (MPEG-4 Part 14), no edit lists, atom moov in front of file
    • &#xA;

    • Audio codec : AAC, 48 kHz maximum sampling rate, 1 or 2 channel (mono or stereo)
    • &#xA;

    • Video codec : HEVC or H.264, progressive scan, closed GOP, 4:2:0 chroma subsampling
    • &#xA;

    • Frame rate : from 23 to 60 FPS
    • &#xA;

    • photo size :&#xA;
        &#xA;
      • Maximum columns (horizontal pixels) : 1,920
      • &#xA;

      • Minimum aspect ratio [columns/rows] : 4/5
      • &#xA;

      • Maximum aspect ratio [columns/rows] : 9/16
      • &#xA;

      &#xA;

    • &#xA;

    • Video bitrate : 5Mbps maximum VBR
    • &#xA;

    • Audio bitrate : 128 kbps
    • &#xA;

    • Duration : maximum 60 seconds and minimum 3 seconds
    • &#xA;

    • File size : max 100 MB
    • &#xA;

    &#xA;

    My code :

    &#xA;

    import { S3 } from &#x27;aws-sdk&#x27;;&#xA;import { IgApiClient } from &#x27;instagram-private-api&#x27;;&#xA;import fs from &#x27;fs&#x27;;&#xA;&#xA;const s3 = new S3();&#xA;const ig = new IgApiClient();&#xA;const bucket = &#x27;posts&#x27;;&#xA;const { INSTA_USER, INSTA_PASS } = process.env;&#xA;&#xA;ig.state.generateDevice(INSTA_USER);&#xA;&#xA;export const main = async () => {&#xA;  try {&#xA;    await ig.account.login(INSTA_USER, INSTA_PASS);&#xA;&#xA;    const { Contents } = await s3.listObjectsV2({ Bucket: bucket, MaxKeys: 2, Prefix: &#x27;memes/geral&#x27; }).promise();&#xA;&#xA;    const files = await Promise.all(Contents.map(async ({ Key }) => {&#xA;      const file = await s3.getObject({&#xA;        Bucket: bucket,&#xA;        Key,&#xA;      }).promise();&#xA;&#xA;      return file.Body;&#xA;    }));&#xA;&#xA;    const publishResult = await ig.publish.video({&#xA;      video: files[0],&#xA;      coverImage: await fs.readFileAsync("../../src/assets/cover.png")&#xA;    });&#xA;&#xA;    console.dir({ publishResult }, { depth: null })&#xA;  } catch (error) {&#xA;    console.error(error);&#xA;    throw error;&#xA;  }&#xA;}&#xA;

    &#xA;

    When I get a file from s3, it comes in the following format.&#xA;I'm taking the content of the body property and put it in the video property of the publish method.&#xA;Is it right ?&#xA;I also tried to save the file with fs.writeFile and dps use readFileSync like in the example but it also gave the same error.

    &#xA;

    {&#xA;    AcceptRanges: &#x27;bytes&#x27;,&#xA;    LastModified: 2022-08-04T23:15:24.000Z,&#xA;    ContentLength: 3252472,&#xA;    ETag: &#x27;"c491cfe2fb5bc29777fc34391fc1d56a"&#x27;,&#xA;    ContentType: &#x27;application/octet-stream&#x27;,&#xA;    Body: Buffer(3252472) [Uint8Array] [&#xA;        0,   0,   0,  32, 102, 116, 121, 112, 105, 115, 111, 109,&#xA;        0,   0,   2,   0, 105, 115, 111, 109, 105, 115, 111,  50,&#xA;       97, 118,  99,  49, 109, 112,  52,  49,   0,   0, 209,   0,&#xA;      109, 111, 111, 118,   0,   0,   0, 108, 109, 118, 104, 100,&#xA;        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,&#xA;        0,   0,   3, 232,   0,   0, 250,  17,   0,   1,   0,   0,&#xA;        1,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,&#xA;        0,   1,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,&#xA;        0,   0,   0,   0,&#xA;      ... 3252372 more items&#xA;    ]&#xA;  }&#xA;

    &#xA;

    Error :

    &#xA;

    {&#xA;    "errorMessage": "POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; server processing error: VideoSourceDurationCheckException",&#xA;    "errorType": "IgUploadVideoError",&#xA;    "stackTrace": [&#xA;        "IgUploadVideoError: POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; server processing error: VideoSourceDurationCheckException",&#xA;        "    at C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\instagram-private-api\\dist\\services\\publish.service.js:26:1",  &#xA;        "    at tryCatcher (C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\bluebird\\js\\release\\util.js:16:1)"&#xA;}&#xA;

    &#xA;

    when I try to post a video under 60 seconds (apparently within the requirements) :

    &#xA;

    {&#xA;    "errorMessage": "POST /api/v1/media/configure/?video=1 - 403 Forbidden; ",&#xA;    "errorType": "IgConfigureVideoError",&#xA;    "stackTrace": [&#xA;        "IgConfigureVideoError: POST /api/v1/media/configure/?video=1 - 403 Forbidden; ",&#xA;        "    at PublishService.video (C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\instagram-private-api\\dist\\services\\publish.service.js:123:1)",        &#xA;        "    at C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\src\\functions\\cronFreefireMemes.js:71:31",&#xA;        "    at async Promise.all (index 1)",&#xA;        "    at main (C:\\Users\\User\\Desktop\\dev\\Insta\\.webpack\\service\\src\\functions\\webpack:\\src\\functions\\cronFreefireMemes.js:47:5)"&#xA;    ]&#xA;}&#xA;

    &#xA;

    I know that the error above is happening because of the size of the video which is longer than 60 seconds.

    &#xA;

    But I would like to know if there is any way I can format any video to fit the instagram requirements.

    &#xA;

    Any nodejs library ?

    &#xA;