Recherche avancée

Médias (91)

Autres articles (54)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (11197)

  • ffmpeg - Merge two audios with different duration

    5 juin 2015, par Andrés

    Is it possible to merge two audio files with different duration (I don’t know which one is the longest) using ffmpeg’s amerge filter ?

    I don’t want to have a final audio only with the shortest duration, I need that the longest audio be complete too.

    I don’t want to use amix, it’s decreasing the volume of the audios.

  • OpenCV 4.5.2 VideoWriter produces “can't find starting number” error

    28 avril 2021, par Peter Kronenberg

    There are several issues with similar names, but none of them seem to have a definitive answer. Using the last version of OpenCV 4.5.2 with Java on Windows 10. Below is a short reproducible test case which results in

    


    [ERROR:0] global C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\videoio\src\cap.cpp (589) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.2) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): C:/testfiles/output.avi in function 'cv::icvExtractPattern'


    


    Here is the code :

    


    public class OpenCVError {

    public static void main(String[] args) {
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

        final int fourcc = VideoWriter.fourcc('m', 'j', 'p', 'g');
        final double fps = 30.00;
        Size frameSize = new Size(1080, 1920);
        VideoWriter videoWriter = new VideoWriter("C:/testfiles/output.avi", fourcc, fps, frameSize, true);
    }
}


    


    Update

    


    Found out from https://forum.opencv.org/t/error-in-java-cant-find-starting-number-in-the-name-of-file/3014 that I seem to be missing opencv_videoio_ffmpeg452_64.dll
I am using the Maven distribution at

    


      <dependency>&#xA;            <groupid>org.openpnp</groupid>&#xA;            <artifactid>opencv</artifactid>&#xA;            <version>4.5.1-2</version>&#xA;  </dependency>&#xA;

    &#xA;

    which doesn't appear to have this file. I tried adding the file to my classpath (using IntelliJ), but it still doesn't seem to work.

    &#xA;

    Anyone have any ideas ? Why isn't this file part of the openpnp distribution ?

    &#xA;

  • Can we provide a raw stream of microphone data Unit8List as a Input to ffmpeg and save the output file as .wav or .mp3

    21 juillet 2023, par Uday

    The goal is to listen to a live microphone stream (don't want to store it locally)and try to pass it to the RTSP server or to a .mp3 or .wav file locally.

    &#xA;

    FFmpeg lib :ffmpeg_kit_flutter

    &#xA;

    Mic Stream lib : https://pub.dev/packages/mic_stream

    &#xA;

     stream = await MicStream.microphone(&#xA;        audioSource: AudioSource.DEFAULT,&#xA;        sampleRate: 44100,&#xA;        channelConfig: ChannelConfig.CHANNEL_IN_STEREO,&#xA;        audioFormat: AudioFormat.ENCODING_PCM_16BIT);&#xA;&#xA;listener = stream!.listen((recordedData) async {&#xA;  await processData(recordedData);&#xA;});&#xA;

    &#xA;

    And in Process data, I want to convert this raw Unit8List data to .mp3 or transmit it to rtsp server live.

    &#xA;

    any of the commands i want to execute

    &#xA;

    Future<void> processData(Uint8List data) async {&#xA;//var command = &#x27;-i "$data" -f rtsp -rtsp_transport tcp -y "$RtspUrl"&#x27;;&#xA;&#xA;&#xA;//var command = &#x27;-i "$data" "/storage/emulated/0/Download/androidvideo.mp3"&#x27;;&#xA;&#xA;FFmpegKit.execute(command).then((session) async {&#xA;  final returnCode = await session.getReturnCode();&#xA;  final logs = await session.getLogs();&#xA;  for (var element in logs) {&#xA;    print(&#x27;logs:${element.getMessage()}&#x27;);&#xA;  }&#xA;  if (ReturnCode.isSuccess(returnCode)) {&#xA;    print(&#x27;Command execution completed successfully.&#x27;);&#xA;  } else if (ReturnCode.isCancel(returnCode)) {&#xA;    print(&#x27;Command execution completed CANCEL.&#x27;);&#xA;    listener.cancel();&#xA;  } else {&#xA;    print(&#x27;Command execution completed ERROR.&#x27;);&#xA;    listener.cancel();&#xA;  }&#xA;});&#xA;}&#xA;</void>

    &#xA;