21:18
I need to create chunks of videos (.ts) of fixed duration (say 5 or 10 seconds) from a mp4 video. And also I need the chunks in different formats (260p, 480p, 720p, 1080p).
I'm able to create the chunks and m3u8 using the command below:
ffmpeg -i input.mp4 -g 60 -hls_time 10 out.m3u8
but not able to create for different resolutions as mentioned above.
21:03
I need to show two similar images from a webcam side-by-side.
I can achieve this with this piped command, but it runs with a few seconds latency:
ffmpeg -f dshow -i video="Logi C310 HD WebCam" -filter_complex "[0:v][0:v]hstack=inputs=2[v]" -map "[v]" -f matroska - | ffplay -
I'd prefer to do the same in just ffplay.
I'd also like to have the resulting image cropped to a square size or to the size of the original image (like if the picture from webcam gets divided by half and the halfs took each other places).
What I need in this end is a tool that (...)
20:01
I am receiving this warning from ffmpeg. The job runs and all the videos seem to output correctly. I have 2 hls, 1 mp4 with overlay + A single thumbnail.
The warning:
Stream #1:0: Video: png, rgba(pc), 500x38, 25 tbr, 25 tbn, 25 tbc
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (360p.m3u
8) has not been used for any stream. The most likely reason is either wrong type
(e.g. a video option with no video streams) or that it is a private option of s
ome encoder which was not actually used for any stream.
The windows (...)
18:52
I'm trying to convert video to audio using ffmpeg in flutter based application but command is not working.
Is there something wrong with the command?
void convert(File pickedVideo) async
Directory applicationDocDirectory = await getApplicationDocumentsDirectory();
final outputPath = '$applicationDocDirectory.path/output-audio-$const Uuid().v1().mp3';
final session = await FFmpegKit.execute('-i $pickedVideo.path -vn -acodec mp3 $outputPath');
final returnCode = await session.getReturnCode();
(...)
15:01
I have a full time old mp4 video and a newest video, I want to trim frames from old video, then merge new to old trimed to build a new full video, can I do it in one ffmpeg command without reencode?
Something like oldFull.mp4 - lastFrames) + new.mp4 = newFull,mp4
If old full frames are oldFrames, and want to remove last frames as removeFrames, how can I merge new.mp4 to OUT?
ffmpeg -i IN -c copy -bsf:v noise=drop=between(n\\,removeFrames\\,oldFrames) (...)
14:24
I'm trying to convert video to audio using flutter ffmpeg kit package but it is returning ReturnCode 1 which is false
this is the command
Directory applicationDocDirectory = await getApplicationDocumentsDirectory();
outputPath = '$applicationDocDirectory.path/output-audio-$const Uuid().v1().mp3';
FFmpegKit.execute('-i $widget.pickedVideo.path -vn -ar 44100 -ac 2 -b:a 256k -f mp3 $outputPath');
is something wrong with the (...)