Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (111)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (9253)

  • ffmepg why error :Failed to write core dump

    9 juillet 2021, par dmouse

    I wang to implement a feature that allows me to save RTSP stram as a file,
use javacv implement a demo,but there's an error.
i debug the demo , execute 'recorder.record(frame) ;' error, "ulimit -c unlimited" is useless,the program still reports an error.
review of the source code did note find the problem principle.pleace give me a hand.

    


    import org.bytedeco.javacpp.avcodec;
import org.bytedeco.javacv.FFmpegFrameGrabber;
import org.bytedeco.javacv.FFmpegFrameRecorder;
import org.bytedeco.javacv.Frame;

import java.io.File;
import java.io.IOException;

/**
 * @ClassName video
 * @Description TODO
 * @Author mouse
 * @Date 2021/7/9 11:13
 * @Version 1.0
 **/
public class Video {
    public static void main(String[] args) {
        String streamUrl = "rtsp://admin:12345678.@192.168.20.180:554/h265/ch1/main/av_stream";
        String filePath = "./video/hello.mp3";
        File outFile = new File(filePath);
        FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(streamUrl);
        if (!outFile.getParentFile().exists()) {
            outFile.getParentFile().mkdirs();
        }
        FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(filePath,1080,1440, 1);
        recorder.setVideoCodec(avcodec.AV_CODEC_ID_H265);
        recorder.setFormat("flv");
        recorder.setVideoBitrate(4000);
        try {
            grabber.start();
            recorder.start();
            Frame frame = grabber.grabFrame();
            while (frame!=null){
                recorder.record(frame);
                frame = grabber.grabFrame();
            }
            recorder.record(frame);
            recorder.stop();
            grabber.stop();

        } catch (FFmpegFrameGrabber.Exception e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (recorder != null) {
                    recorder.stop();
                }
                if (grabber != null) {
                    grabber.stop();
                }
            } catch (FFmpegFrameRecorder.Exception | FFmpegFrameGrabber.Exception e) {
                e.printStackTrace();
            }
        }
    }
}



    


    log error

    


    #
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000131fef233, pid=50498, tid=0x0000000000001003
#
# JRE version: Java(TM) SE Runtime Environment (8.0_281-b09) (build 1.8.0_281-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.281-b09 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libavformat.57.dylib+0xbf233]  av_write_frame+0x993
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


    


    pom :

    


            <dependency>&#xA;            <groupid>org.bytedeco</groupid>&#xA;            <artifactid>javacv</artifactid>&#xA;            <version>1.4.3</version>&#xA;        </dependency>&#xA;        <dependency>&#xA;            <groupid>org.bytedeco.javacpp-presets</groupid>&#xA;            <artifactid>ffmpeg-platform</artifactid>&#xA;            <version>4.0.2-1.4.3</version>&#xA;        </dependency>&#xA;

    &#xA;

    My os : macOS Bgi Sur 11.4 ;
    &#xA;JDK : 1.8.0_281
    &#xA;execute 'recorder.record(frame) ;' error,&#xA;"ulimit -c unlimited" is useless,the program still reports an error .

    &#xA;

  • Can't get FFMPEG buildpack working in Heroku Node.js server (using Fluent-FFMPEG)

    30 juillet 2021, par Rayhan Memon

    I'm using a library called 'fluent-ffmpeg' on my Nodejs server that makes it easier to use an audio/video editing tool called FFmpeg, which is downloaded locally on my computer.

    &#xA;

    When running on my computer, I point fluent-ffmpeg to the local executable files of FFmpeg and FFprobe on my computer, like so :

    &#xA;

    import ffmpeg from "fluent-ffmpeg";&#xA;&#xA;// When running locally, set FFmpeg and FFprobe path to the local executable files&#xA;ffmpeg.setFfmpegPath("C:/Program Files/FFMPEG/ffmpeg.exe");&#xA;ffmpeg.setFfprobePath("C:/Program Files/FFMPEG/ffprobe.exe");&#xA;

    &#xA;

    When deploying to Heroku, I must use an FFmpeg 'buildpack'.

    &#xA;

    I've tried two :

    &#xA;

      &#xA;
    1. https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest
    2. &#xA;

    3. https://github.com/HasibulKabir/heroku-buildpack-ffmpeg-ffprobe
    4. &#xA;

    &#xA;

    Neither have worked for me. Whenever I use an FFmpeg command, I get the following error in my heroku logs :

    &#xA;

    2021-07-24T15:22:52.970990&#x2B;00:00 app[web.1]:   code: &#x27;ENOENT&#x27;,&#xA;2021-07-24T15:22:52.970990&#x2B;00:00 app[web.1]:   syscall: &#x27;spawn C:/Program Files/FFMPEG/&#x27;,&#xA;2021-07-24T15:22:52.970990&#x2B;00:00 app[web.1]:   path: &#x27;C:/Program Files/FFMPEG/&#x27;,&#xA;2021-07-24T15:22:52.970991&#x2B;00:00 app[web.1]:   spawnargs: [&#xA;2021-07-24T15:22:52.970991&#x2B;00:00 app[web.1]:     &#x27;-show_streams&#x27;,&#xA;2021-07-24T15:22:52.970991&#x2B;00:00 app[web.1]:     &#x27;-show_format&#x27;,&#xA;2021-07-24T15:22:52.970992&#x2B;00:00 app[web.1]:     &#x27;temp/cf3b5f1ae270df824921364573a4366b&#x27;&#xA;2021-07-24T15:22:52.970992&#x2B;00:00 app[web.1]:   ]&#xA;2021-07-24T15:22:52.970992&#x2B;00:00 app[web.1]: }&#xA;

    &#xA;

    How can I go about using fluent-ffmpeg in my Nodejs server when deploying to Heroku ?

    &#xA;

    Thank you for the help in advance !

    &#xA;

  • RNFFMpeg.executeAsync : Unable to create gif of a video with space(s) in it's source path

    7 juillet 2021, par STBox

    Unable to make gif of a video which has space(s) in it's source directory. All the other video which don't have space(s), their gif is making fine. I had a video whose folder name had space and it was not making gif for it. I copied the same video to a folder without space in it's name, and it made gif for it successfully. Even if I replace the the space with source path with anything like %20 etc, then it says

    &#xA;

    &#xA;

    No such file or directory

    &#xA;

    &#xA;

    Code snippet

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    RNFFmpeg.executeAsync(&#xA;          `-i ${source} -ss ${start} -t ${gifDuration}  -vf "fps=5,scale=160:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 ${destination}`, (completedExecution) => {&#xA;            if (completedExecution.returnCode === 0) {&#xA;              resolve({ path: destination });&#xA;            } else {&#xA;              resolve({ error: "invalid Gif" });  // always this part executes for videos with space in their source path&#xA;            }&#xA;          }&#xA;        );

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

    Expected behavior

    &#xA;

    Regardless a video has or has not a space in it's path, it should make gif correctly and

    &#xA;

    &#xA;

    completedExecution.returnCode

    &#xA;

    &#xA;

    should be 0

    &#xA;

    Current behavior&#xA;Currently, for all the videos having space in their source path, completedExecution.returnCode is always 1

    &#xA;

    Logs of the same video without space in folder name

    &#xA;

    &#xA;

    [Wed Jul 07 2021 12:23:56.377] LOG file :///storage/emulated/0/AirDroid/VID-20210620-WA0024.mp4 [Wed Jul

    &#xA;

    &#xA;

    &#xA;

    07 2021 12:23:56.511] LOG [Parsed_palettegen_3 @ 0x7d62eb5ec0] 255(+1) colors generated out of 249823 colors ; ratio=0.001021 [Wed Jul 07 2021 12:23:56.672] LOG video:48kB audio:0kB subtitle:0kB other streams:0kB

    &#xA;

    &#xA;

    &#xA;

    global headers:0kB muxing overhead : [Wed Jul 07 2021 12:23:56.673] LOG

    &#xA;

    &#xA;

    &#xA;

    0.041083% [Wed Jul 07 2021 12:23:56.722] LOG "path" : "/data/user/0/com.tbox.pantry/cache/1625642625930.gif"

    &#xA;

    &#xA;

    Logs of the same video with space in folder name

    &#xA;

    &#xA;

    [Wed Jul 07 2021 12:20:45.577] LOG

    &#xA;

    &#xA;

    &#xA;

    file :///storage/emulated/0/FMWhatsApp/Media/FMWhatsApp

    &#xA;

    &#xA;

    &#xA;

    Video/VID-20210620-WA0024.mp4 [Wed Jul 07 2021 12:20:45.998] LOG

    &#xA;

    &#xA;

    &#xA;

    file :///storage/emulated/0/FMWhatsApp/Media/FMWhatsApp : No such file

    &#xA;

    &#xA;

    &#xA;

    or directory [Wed Jul 07 2021 12:20:45.998] LOG Conversion failed !

    &#xA;

    &#xA;

    &#xA;

    [Wed Jul 07 2021 12:20:45.999] LOG "error" : "invalid Gif"

    &#xA;

    &#xA;

    Environment

    &#xA;

    "react" : "16.13.1",&#xA;"react-native" : "^0.63.3",&#xA;"react-native-ffmpeg" : "0.5.1",&#xA;Android 11

    &#xA;