Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (29)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (7449)

  • no access to m3u8 when using ffmpeg [closed]

    7 octobre 2023, par asd

    I have a code that allows me to download videos from .m3u8, but for some reason it hasn't worked since yesterday

    


    ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" -headers "Referer: https://upstream.to/" -i "https://s92.upstreamcdn.co/hls2/01/03509/wc3i5yhdfgyk_o/master.m3u8?t=M9p8oTpo_LgYLnh2Ay4UEOT6Szltp5vGepiZ09ZjnFo&s=1696668614&e=10800&f=17548793&i=169.150&sp=0" -c copy -bsf:a aac_adtstoasc "name.mp4"


    


    what can I do to make it similar to the upstream task which looks like this

    


    Request URL:https://s92.upstreamcdn.co/hls2/01/03509/wc3i5yhdfgyk_o/master.m3u8?t=M9p8oTpo_LgYLnh2Ay4UEOT6Szltp5vGepiZ09ZjnFo&s=1696668614&e=10800&f=17548793&i=169.150&sp=0
Request Method: GET
Status Code:    200 OK
Remote Address: 164.132.163.19:443
Referrer Policy:    strict-origin-when-cross-origin
Access-Control-Allow-Origin:    *
Cache-Control:  max-age=8640000
Cache-Control:  public, no-transform
Connection: keep-alive
Content-Encoding:   gzip
Content-Type:   application/vnd.apple.mpegurl
Date:   Sat, 07 Oct 2023 08:50:16 GMT
Expires:    Mon, 15 Jan 2024 08:50:16 GMT
Last-Modified:  Sat, 07 Oct 2023 08:50:16 GMT
Server: nginx

Transfer-Encoding:chunked
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7
Connection:keep-alive
Host:s92.upstreamcdn.co
Origin:https://upstream.to
Referer:https://upstream.to/
Sec-Ch-Ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"
Sec-Ch-Ua-Mobile:?0
Sec-Ch-Ua-Platform:"Windows"
Sec-Fetch-Dest:empty
Sec-Fetch-Mode:cors
Sec-Fetch-Site:cross-site
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36


    


  • Compressed mp4 video is taking too long time to play (exoplayer)

    10 août 2018, par User

    Video(mp4) is recorded from android camera and sent to backend, here I am using ffmpeg wrapper to compress the video[44mb video to 5.76mb]. compression is working well, But when I send the video for play in android(exo player), is taking too long time to start.

    below is my code to compress :

    FFmpegBuilder builder = new FFmpegBuilder()
                      .setInput("D:/dummyVideos/myvideo.mp4")     // Filename, or a FFmpegProbeResult
                      .overrideOutputFiles(true) // Override the output if it exists
                      .addOutput("D:/dummyVideos/myvideo_ffmpeg.mp4")   // Filename for the destination
                      .setFormat("mp4")       // Format is inferred from filename, or can be set
                      .disableSubtitle()       // No subtiles
                      .setAudioChannels(1)         // Mono audio
                      .setAudioCodec("aac")       // using the aac codec
                      .setAudioSampleRate(48_000) // at 48KHz
                      .setAudioBitRate(32768)     // at 32 kbit/s
                      .setVideoCodec("libx264")     // Video using x264
                      .setVideoFrameRate(24, 1)     // at 24 frames per second
                      .setVideoResolution(1280, 720) // at 640x480 resolution
                      .setVideoBitRate(762800)
                      .setStrict(FFmpegBuilder.Strict.EXPERIMENTAL) // Allow FFmpeg to use experimental specs
                      .done();

    Can anyone tell me why video is taking too long time to play in exo player ? Is anything wrong in the compression ?

  • ffmpeg usage in Android Studio

    8 septembre 2017, par sargis_74

    I try to use ffmpeg sources in Android Studio under Windows10.
    I built the ffmpeg.3.3.3 under ubuntu on Virtual Box by the followinf script and integrated the sources into Android Studio project :

    #!/bin/bash
    NDK=/etc/FFmpegOnAndroid/android-ndk-r14b
    SYSROOT=$NDK/platforms/android-21/arch-x86_64
    TOOLCHAIN=/etc/FFmpegOnAndroid/android-ndk-r14b/toolchains/x86_64-4.9/prebuilt/linux-x86_64
    CPU=arm
    PREFIX=/etc/FFmpegOnAndroid/ffmpeg-3.3.3/output
    ADDI_CFLAGS="-fomit-frame-pointer"
    function build_one
    {
       ./configure \
           --prefix=$PREFIX \
           --enable-shared \
           --disable-static \
           --disable-doc \
           --disable-doc \
           --disable-symver \
           --enable-small \
           --cross-prefix=$TOOLCHAIN/bin/x86_64-linux-android- \
           --target-os=linux \
           --arch=x86_64 \
           --enable-cross-compile \
           --sysroot=$SYSROOT \
           --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
           --extra-ldflags="$ADDI_LDFLAGS" \
           $ADDITIONAL_CONFIGURE_FLAG
       make clean
       make
       make install
    }
    build_one

    When I execute the following command under ubuntu, the output file is created without losing the quality :

    ffmpeg -i sample_2.mp4 -i ic_launcher.jpg -filter_complex [1:v]scale=70:-1[wm];[0:v][wm]overlay=W-w-10:H-h-10[out] -map 0:a? -map [out] output.mp4

    but when I call main() function of ffmpeg.c in Android studio with same arguments, the quality of output file is lost.

    Here are the difference of info of created output files :

    Android Studio :

    Stream #0:1(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1200x720 [SAR 1:1 DAR 5:3], 585 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)

    ubuntu :

    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1200x720 [SAR 1:1 DAR 5:3], 423 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)

    Could you please help me to solve this problem.

    Thanks in advance,

    Sargis Boyajyan