Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (50)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • Cannot include ffmpeg.exe using auto-py-to-exe

    4 avril 2024, par YYY

    I'm trying to generate an exe for my PyQT application that uses ffmpeg using auto-py-to-exe.

    


    Within the application, there are calls to ffmpeg as an os command (like 'ffmpeg -i file ... output) .
As I have ffmpeg installed on my machine and accessible from the Windows Path, when I run the app exe on my machine, I don't have any issue.

    


    However, when it's someone that doesn't have ffmpeg installed, he/she encounters an error like "'ffmpeg' is not recognized as an internal or external command, operal program or batch file"

    


    I don't want to put ffmpeg within a folder of the app as I call local modules that already call ffmpeg as an os command.

    


    I have tried first to add ffmpeg.exe as a file (as recommended in one stackoverflow post) and then as a binary but without success
autopytoexe

    


    I've already tried with the configuration stated in this

    


    Can anyone help me on this ?

    


    EDIT N°2

    


    It turns out that when I export the exe on my machine by including ffmpeg as a binary either with pyinstaller or auto-py-to-exe, the final exe doesn't recognize the ffmpeg command even if it's in the folder.

    


    __internal folder

    


    However, I've tried the same configuration on another machine and it worked without any error.

    


    I've tried to install another ffmpeg version and link this version on the final exe but without success

    


  • ffmpeg concat : 2nd video stream frozen, no image

    31 juillet 2016, par Azevedo

    I’m trying to concatenate two video streams with the same econding into one :

    ffmpeg -y -f concat -i parts.txt -c copy join.mkv

    parts.txt

    file part1.mkv
    file part2.mkv

    ffmpeg will concatenate them but the playback (any player) gives a still image if the playing position corresponds to the 2nd part.
    I tried to switch part1.mkv and part2.mkv to see the results.
    The 1st part (whichever part1 or part2) will play normally but when I seek the playback to the time corresponding the 2nd part the image won’t show, only the audio plays.

    part1
    part2
    What happens if i seek the playback to the 2nd part :
    2nd part on seeking

    UPDATE :
    FULL CONSOLE OUTPUT FOR ffmpeg -y -f concat -i parts.txt -c copy episode.mkv

    ffmpeg version N-81118-gfb91850 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 50.100 / 57. 50.100
     libavformat    57. 44.100 / 57. 44.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 49.100 /  6. 49.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [matroska,webm @ 000000000242bd40] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'parts.txt':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1280x720, SAR 1:1 DAR 16:9, 23.97 fps, 23.97 tbr, 1k tbn, 47.95 tbc
       Metadata:
         BPS             : 1023638
         BPS-eng         : 1023638
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         DURATION-eng    : 00:23:17.980000000
         NUMBER_OF_FRAMES: 33518
         NUMBER_OF_FRAMES-eng: 33518
         NUMBER_OF_BYTES : 178878340
         NUMBER_OF_BYTES-eng: 178878340
         _STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-07-30 17:28:29
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-07-30 17:28:29
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         DURATION        : 00:22:13.164000000
    [matroska @ 0000000000e7c920] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Output #0, matroska, to 'episode.mkv':
     Metadata:
       encoder         : Lavf57.44.100
       Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.97 fps, 23.97 tbr, 1k tbn, 1k tbc
       Metadata:
         BPS             : 1023638
         BPS-eng         : 1023638
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         DURATION-eng    : 00:23:17.980000000
         NUMBER_OF_FRAMES: 33518
         NUMBER_OF_FRAMES-eng: 33518
         NUMBER_OF_BYTES : 178878340
         NUMBER_OF_BYTES-eng: 178878340
         _STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-07-30 17:28:29
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-07-30 17:28:29
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         DURATION        : 00:22:13.164000000
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [matroska,webm @ 0000000002605dc0] Auto-inserting h264_mp4toannexb bitstream filterpeed=1.87e+003x
    frame=56417 fps=47467 q=-1.0 Lsize=  304604kB time=00:39:13.05 bitrate=1060.5kbits/s speed=1.98e+003x
    video:304191kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.135798%
  • Using JavaCV/FFMPEG to push byte buffer image via RTMP

    6 mai 2022, par ljnoah

    I have a USB camera that returns frames as a byte buffer type to which I would like to push/send via rtmp using JavaCV library to be viewed using VLC. According to this link : http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html. It should be possible, but I don't really have any experience with ffmpeg, but from what I've read in their github it should be possible, only, thus far I was not able to find an example on how to do it. Basically, I would like to store a byte buffer and send an image that is in variable instead of grabbing frames from a camera as my USB camera is not detected by android and needs external libraries to work.

    


    private byte[] FrameData = new byte[384 * 288 * 4];
  //private final Bitmap bitmap = Bitmap.createBitmap(PREVIEW_WIDTH, PREVIEW_HEIGHT, // Bitmap.Config.ARGB_8888); // creates a bitmap with the proper format in-case its needed
  private final IFrameCallback mIFrameCallback = new IFrameCallback() {
      @Override
      public void onFrame(final ByteBuffer frameData) {
          frameData.clear();
          frameData.get(FrameData, 0, frameData.capacity());
          }
  };


    


    This callback gives me the frames from my camera on the fly and writes it to FrameData, which I can compress to a bitmap if needed.

    


    My camera preview where I call the callback above :

    


      public void handleStartPreview(Object surface) {
      if ((mUVCCamera == null)) return;
      try {
          mUVCCamera.setPreviewSize(mWidth, mHeight, 1, 26, UVCCamera.DEFAULT_PREVIEW_MODE, UVCCamera.DEFAULT_BANDWIDTH, 0);
      } catch (IllegalArgumentException e) {
          try {
              mUVCCamera.setPreviewSize(mWidth, mHeight, 1, 26, UVCCamera.DEFAULT_PREVIEW_MODE, UVCCamera.DEFAULT_BANDWIDTH, 0);
              Log.e(TAG, "handleStartPreview4");
          } catch (IllegalArgumentException e1) {
              callOnError(e1);
              return;
          }
      }
      int result = mUVCCamera.startPreview();
      mUVCCamera.setFrameCallback(mIFrameCallback, UVCCamera.PIXEL_FORMAT_RGBX);
      mUVCCamera.startCapture();
      startRecording();
  }


    


    My question is How can I use this example :

    


     String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
 ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-i", "/path/to/input.mp4", "-vcodec", "h264", "/path/to/output.mp4");
 pb.inheritIO().start().waitFor();


    


    to push my frames from the camera that are stored FrameData byte buffer via RTMP/RTSP to my server IP, even If I need to compress it to a bitmap before...