Skip to content

Output to file #425

@JIDE13

Description

@JIDE13

Good afternoon, in the process of writing I encountered a problem with what to specify in Output.I need to record from an RTSP video stream and save it to a file on device. Before that, I used PipeOutput, it indicated an error since the Operation is direct and accepts a stream and releases a stream.I also used Chanelloutput which leads to an error with incorrect output.Sorry for my English.

This code is written incorrectly and I don't know how to master it properly.

String rtspUrl = "rtsp://192.168.0.50/12";' 'Path pathToSrc = Paths.get("");' ' FFmpeg.atPath()' ' .addArguments("-i", rtspUrl).addArguments("-c", "copy").addArguments("-t", "10").addArguments("-ss","0:00")' '.setOverwriteOutput(true)' ' .addOutput(UrlOutput.toPath(pathToSrc.resolveSibling("file.mp4")).setFormat("mp4")).execute();
The code presentation format is a bit of a pain in the eyes.
EDIT sory for this.
file.setExecutable(true, true);
file.setReadable(true, true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions