19:30
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, (...)
18:31
Currently I have 80mb movies that I want to use ffmpeg to convert down to say about 10mb or 15mb. I know there will be a quality loss but they will need to have sound. Is there a way to either specify a file size or higher compression than what I have done previously
ffmpeg -i movie.mp4 -b 2255k -s 1280x720 movie.hd.ogv
They are currently about 25mb a piece
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 = (...)