Recherche avancée

Médias (91)

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (6681)

  • mp4 is not playing on changing the name of mp4 file

    7 juillet 2014, par user2301309

    I am using below code to generate file name-

           File imagefile = new File(path);
           int imageCount = 0;
           if (!imagefile.exists()) {
               imagefile.mkdirs();
           }else{
               String[] files = imagefile.list();
               for(String file : files){
                   if(file.contains("mp4")){
                       String fileName = file.replace(".mp4","");
                       String[] parts = fileName.split("_");
                       String count  = parts[parts.length-1].replaceAll("\\D+","");
                       int i = Integer.parseInt(count);
                       if(i+1>imageCount){
                           imageCount = i+1;
                       }
                   }
               }
           }
           String video_id = "VID"+ "_" + imageCount;
           String video_info = (Lat_Lon_CellID.lat+"#"+Lat_Lon_CellID.lon+"#"+Lat_Lon_CellID.datetimestamp+"#"+Home.imei+"#").replaceAll("\\.", "@");
           newVideoPath = path + File.separator +video_info+ video_id + ".mp4";

    videofile name generated here is 0@0#0@0#null#354961053417767#VID_0.mp4

    but when i try to play this video, i got error MediaPlayer error (1, -2147483648) while if i change newVideoPath to-

       String video_id = "VID"+ "_" + imageCount;
           newVideoPath = path + File.separator + video_id + ".mp4";

    videofile name generated here is VID_0.mp4

    then it plays the video.
    Can anyone tell me that what could be the reason ?

  • WebRTC Experiment : Chrome windows audio not sync

    10 juillet 2014, par putoshop

    I tried to make the audio work for Chrome using this Git Repo, but I’m having a sync problem with video and audio. The audio finished playing earlier. The video seems to be correct. I noticed that when I play the blob, the audio is playing fast.

    I was able to make the audio work by commenting the line the throws error in the condition that check if sampleRate is less than 22050 or greater than 96000 in RecordRTC.js.

    I tried to adjust the sampleRate other values and noticed that If the sampleRate is low, the audio plays slow and if the sampleRate is high, the audio plays fast. I was able to make the audio and video somewhat sync but it seems the pitch of the audio becomes noticeable lower than the expected pitch.

    I’ve also tried FFMPEG to adjust the length of the audio to match the video length, but didn’t been able to make it work.

    the extensions of the files that are uploaded to the server for Chrome are .webm(video) and .wav(audio).

  • FFMPEG & ytdl-core | Muxing highestaudio and highestvideo results in mp4 with incorrect time

    17 mars 2023, par Niek Peters

    I want to combine a file with only video and a file with only audio from the ytdl-core package into a mp4 and stream it in the response. I get the files using the highestvideo and highestaudio quality settings. I tried to modify a part of the ytdl-core-muxer module to change the output format to mp4, for which I also needed to add -movflags frag_keyframe+empty_moov, to allow the output mp4 to be seekable. This all seems to work and it produces a mp4 file without errors. When I open it with the Windows Photos app however, I noticed that even though video plays normally in perfect quality, the time is completely wrong.

    


    As you can see, the time says there are 53 million hours remaining, even though the video is 1:32 mins long

    


    I have tried adding a fixed framerate with -r 60 and regenerating the timestamps with -fflags +genpts, but to no avail. I have also tried encoding the video and audio formats to h264 (using libx264) and acc, but that didn't solve it either.

    


    

    

    // create the ffmpeg process for muxing
const ffmpegProcess = cp.spawn(
  ffmpeg,
  [
    // input audio by pipe
    "-thread_queue_size", "4096",
    "-i", "pipe:3",

    // input video by pipe
    "-thread_queue_size", "4096",
    "-r", "60",
    "-i", "pipe:4",

    // map audio and video correspondingly
    "-map", "0:a",
    "-map", "1:v",

    // change the codec
    "-c:v", "libx264", 
    "-c:a", "aac",
        
    "-preset", "ultrafast",

    // Allow output to be seekable, which is needed for mp4 output
    "-movflags", "frag_keyframe+empty_moov",

    // output mp4 and pipe
    "-r", "60",
    "-fflags", "+genpts",
    "-f", "mp4", "pipe:5",
  ],
  {
    // no popup window for Windows users
    windowsHide: true,
    stdio: [
      // silence stdin/out, forward stderr,
      "inherit", "inherit", "inherit",
      // and pipe audio, video, output
      "pipe", "pipe", "pipe",
    ],
  }
);
audioStream.pipe(ffmpegProcess.stdio[3]);
videoStream.pipe(ffmpegProcess.stdio[4]);
ffmpegProcess.stdio[5].pipe(result);

    


    


    



    Full console output :

    


    ffmpeg version 5.0.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers        
  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx 
--enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:3':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2022-08-21T19:56:49.000000Z
  Duration: 00:01:32.11, start: 0.000000, bitrate: N/A
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 1892 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      creation_time   : 2022-08-21T19:56:49.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 08/21/2022.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)    Metadata:
      creation_time   : 2022-08-21T19:56:49.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 08/21/2022.
      vendor_id       : [0][0][0][0]
Input #1, matroska,webm, from 'pipe:4':
  Metadata:
    encoder         : google/video-file
  Duration: 00:01:32.12, start: 0.000000, bitrate: N/A
  Stream #1:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 3840x2160, SAR 1:1 DAR 16:9, 60 fps, 60 
tbr, 1k tbn (default)
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> aac (native))
  Stream #1:0 -> #0:1 (vp9 (native) -> h264 (libx264))
[libx264 @ 0000022aa059be80] using SAR=1/1
[libx264 @ 0000022aa059be80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2      
[libx264 @ 0000022aa059be80] profile Constrained Baseline, level 5.2, 4:2:0, 8-bit
[libx264 @ 0000022aa059be80] 264 - core 164 r3094 bfc87b7 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 
- http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to 'pipe:5':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf59.16.100
  Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)     
    Metadata:
      creation_time   : 2022-08-21T19:56:49.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 08/21/2022.
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.18.100 aac
  Stream #0:1(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 60 fps, 15360 tbn (default)
    Metadata:
      encoder         : Lavc59.18.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[matroska,webm @ 0000022aa056cd00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 4096)
frame= 5527 fps= 77 q=-1.0 Lsize=  424599kB time=00:01:32.11 bitrate=37761.2kbits/s speed=1.29x    
video:423226kB audio:1329kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.010570%[aac @ 0000022aa05ca240] Qavg: 17828.035
[libx264 @ 0000022aa059be80] frame I:23    Avg QP:19.83  size:292044
[libx264 @ 0000022aa059be80] frame P:5504  Avg QP:22.92  size: 77519
[libx264 @ 0000022aa059be80] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0000022aa059be80] mb P  I16..4: 26.5%  0.0%  0.0%  P16..4: 14.1%  0.0%  0.0%  0.0%  0.0%    skip:59.3%
[libx264 @ 0000022aa059be80] coded y,uvDC,uvAC intra: 10.6% 27.6% 7.0% inter: 6.5% 12.8% 1.4%
[libx264 @ 0000022aa059be80] i16 v,h,dc,p: 57% 26%  8%  9%
[libx264 @ 0000022aa059be80] i8c dc,h,v,p: 43% 24% 25%  7%
[libx264 @ 0000022aa059be80] kb/s:37637.70