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, (...)
07:50
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 = (...)