15:28
I'm trying to stream MKV video as MP4 on the fly with out saving the converted file
first I've tried without conversion:
public async streamById(req: Request, res: Response)
const movieId = req.params.id;
const movie = await MovieModel.findById(movieId);
if (!movie)
return res.status(404).send( message: 'Movie not found' );
const filePath = movie.path;
const stat = fs.statSync(filePath);
const fileSize = stat.size;
const range = req.headers.range;
if (range)
const parts = (...)
14:52
i implement ffmpeg by using this gitbub by this reference :5
https://github.com/tanersener/mobile-ffmpeg in koltin
my code is :
class BurstModeToVideo(
private val context: Context,
private val onVideoConverted: (File) -> Unit
)
private val vibeDirectory = File(context.getExternalFilesDir(Environment.DIRECTORY_PICTURES), "vibes")
private val outputDirectory = context.getExternalFilesDir(Environment.DIRECTORY_MOVIES)
fun convertBitmapToJpeg(vibes: List)
if (!vibeDirectory.exists())
vibeDirectory.mkdirs()
(...)
13:20
I am trying to implement a video editor using ffmpeg-wasm in CRA react app.
Package dependencies :
"ⓐffmpeg/ffmpeg": "^0.12.10",
"ⓐffmpeg/util": "^0.12.1",
Below is a sample class that I am trying to implement:
import React, useRef, useState from 'react';
import FFmpeg from "ⓐffmpeg/ffmpeg";
import toBlobURL, fetchFile from "ⓐffmpeg/util";
function Trimmer()
const [loaded, setLoaded] = useState(false);
const ffmpegRef = useRef(new FFmpeg());
const videoRef = useRef(null)
const messageRef = (...)
09:16
Im creating an HLS playlist using ffmpeg, reading my input from an RTSP stream.
When probing the RTSP stream, i get an FPS which is not the true FPS, and i want to "tell" ffmpeg the actual real FPS.
In the command line, im using the -r flag, which works fine:
ffmpeg -rtsp_transport tcp -r 18 -i rtsp://localhost:554/test -b:v 100KB -vf format=yuvj420p -c:a copy -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -start_number 1 output.m3u8
I noticed that flag must come before the input param. If i use the -r after, it simply doesnt work.
In ffmpeg-python, (...)