Questions tagged [ffmpeg]

Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Encode source mjpeg with variable framerate using ffmpeg

I set my old smartphone to be a "cctv" cam. The stream is MJPEG. When I capture with ffmpeg using this command: ffmpeg -y -f mjpeg -i http://192.168.1.3:8080/video -c:v libx264 -an cam.mp4 I get a ...
0
votes
0answers
9 views

FFMPEG ID3 Metadata for FLAC Files?

I'm interested in converting an mp3 I made to FLAC using ID3 tags. I'm having 2 issues: 1) The Album Art from the old MP3's Doesn't Copy Over and 2) I don't know how to encode an old MP3 with new ...
1
vote
1answer
26 views

What bitrate should I use when extracting channel from mp2 to FLAC with ffmpeg?

I have a stereo mp2 audio that I want to extract the right channel to a mono FLAC audio. The detected info of the mp2 is this: Audio: mp2, 44100 Hz, stereo, s16p, 224 kb/s I ran the extract command ...
0
votes
2answers
20 views

ffmpeg add audio to left chanel , convert to mp4 and change the warper

We have a Quicktime uncompressed file with no audio and 1 channel audio file. At the end, I need 2 files: uncompress.mov with left audio Codec: h.264 Wrapper: .mov Audio on the left channel. I ...
0
votes
0answers
20 views

Displaying UDP Multicast Rawvideo Stream

I have a problem while trying to capture the raw video over UDP. In my setup, I stream the webcam with FFmpeg (command line) via UDP, on the client side I use Java OpenCV, the capture line; ...
1
vote
1answer
47 views

ffmpeg file integrity check and rename on error with a batch file

I've found the code to check a file for errors and it creates a log file with the contents. Is there a way to alter it and rename a file that has errors but not the ones without? @echo off set "...
0
votes
0answers
18 views

ffmpeg and nginx - restream with audio reencoding

I use nginx and ffmpeg to restream video from my provider. Previously I use ffmpeg with arguments where I reencoding video and reencoding audio, because my server is to slow I resigned from reencoding....
0
votes
1answer
88 views

Video scaling in ffmpeg causes audio gaps

I am trying to scale down a video (mp4 format) by using the following process : Segment the video ffmpeg -v quiet -i <input-file> -map 0 -c copy -f segment -segment_time <segment_length> ...
0
votes
2answers
62 views

How can you decompress a videofile in ffmpeg?

Example 1: ffmpeg -i input.avi -c:v libxvid output.mp4 The code that I get as output is: ffmpeg -i input_1.avi -c:v libxvid output_1.mp4 ffmpeg version git-2020-02-16-8578433 Copyright (c) 2000-2020 ...
0
votes
1answer
70 views

How to create mp4 or gif from background and a set of positioned changes

Here's the scenario: I have a static background png file, let's say 1920x1080 I have a set of few hundreds of small png files (each with different dimensions, smth like 30x100, 10x20, 200x200 etc), ...
1
vote
1answer
18 views

Ffmpeg is vertically flipping a video that doesn't have rotate in the metadata and the ffmpeg command does not have transpose

I have a video that plays fine in Quicktime. When run through FFMPEG, ffmpeg is flipping it vertically. However, my command does not include a flip command: /usr/local/bin/ffmpeg -safe 0 -f ...
0
votes
0answers
27 views

FFmpeg Issues With Large Time Gaps In Between Subtitles

I think I've found a bug in FFmpeg. Or maybe I'm using it wrong. If you try to mix in a .srt subtitles file where there are large gaps of time in between subtitles, it will throw errors like this: ...
0
votes
0answers
26 views

Is there a way to remove freezed frames from video with ffmpeg?

I know how to detect the frames using "freezedetect" but I can not figure out a way to create a new video file where the freezed parts are removed. Is this something ffmpeg provides or is there a ...
0
votes
0answers
19 views

Cannot play video stream from FFMPEG to VLC

I'm trying to stream my local webcam using FFMPEG. For test purposes, I'm doing this locally and try to open the stream using VLC (3.0.8, Windows 10). This is how I stream from FFMPEG: ffmpeg -f ...
1
vote
0answers
34 views

Broadcast a screen with ffmpeg via http

These quarantine days I was going to share my desktop to friends to explain them what is git in a practice. The problems are: I use FreeBSD. We are behind NATs. But I've got a VPS with VPN (Wireguard)...
0
votes
0answers
21 views

video audio merging using ffmpeg. I have 40 sec video and want to merge 10 sec audio with loop then how to edit my below code? [closed]

I have 40 sec video and want to merge 10 sec audio with loop then how to edit my below code in best way?? cmd = arrayOf("-y", "-i", videoFile!!.path, "-i", audioFile!!.path, "-c", "copy","-map", "0:v:...
0
votes
0answers
34 views

Is there a way to make iSpy use more GPU instead of CPU?

I have a server PC that I use for camera surveillance sytem with iSpy. There are 5 cameras, and the average fps is pretty low. I checked it with Process Manager, and it seems that iSpy only uses the ...
0
votes
0answers
18 views

Extract middle minute (Frames) from an audio using FFmpeg

I am trying to extract the middle x minutes from some audios using FFmpeg. So far the closest thing to this, that I can find is by specifying the start- and end-time of the extracted frames. ffmpeg -...
1
vote
0answers
22 views

Audio encoding with 2 passes in ffmpeg

I have a video with a DTS audio file that I want to encode on android. Now, on my laptop I had an old GUI that had the option to encode audio using 2 passes. I have FFmpeg on android but I don't know ...
0
votes
0answers
11 views

How join several webm videos using ffmpeg [duplicate]

Is there any way to join 2 or more videos using ffmpeg. I found this reference but it seems only for MP4 format and 2 videos only.
0
votes
0answers
47 views

How to use ffmpeg to separate video and audio file name for dash segment?

I want to define m4a for audio and m4v for video in dash segment. I've tried this but it does not work: ffmpeg -i out_dash.mp4 -c copy -f dash -window_size 5 \ -min_seg_duration 500 -single_file 1 ...
1
vote
0answers
19 views

Chromium won't play mp4

I have chromium (version 79) installed on my Red Hat 7.6 system and cannot play any mp4 videos. I attached an image below of what it looks like when I run chromium-browser <mp4 video>. I have ...
0
votes
0answers
19 views

Split MKV in chunks smaller than 4 GB?

I need to use a device formatted in FAT32 to store/share movies (Using my routers filesharing feature. Unfortunately, my router doesn't support ExFat, only FAT32.). FAT32 has a limit for how big files ...
2
votes
1answer
22 views

Pip with ffmpeg to youtube

I would like to have a picture in picture in top left with two rtsp livestreams without sound. 192.168.1.31 can do 12fps 192.168.1.13 can do 30fps Now I have this : ffmpeg -f lavfi -i anullsrc -...
0
votes
1answer
33 views

How can i merge hundreds or even thousands of video files into one using ffmpeg or any other tools?

Basically i have like hundreds of small video files (format is .ts) and each of them is like only 10 seconds long and about 10MB size. They are named in order like '100.ts' '101.ts' '102.ts' ... '600....
0
votes
0answers
32 views

FFMPEG: Have the video title appear once at the beginning and then again at the middle of the video with drawtext

Im streaming a live video using FFMPEG to youtube, what i would love to do is draw a text title on the video at various parts of the video such as at the first frame for 20 seconds and then again ...
0
votes
0answers
15 views

grant ffmpeg access to built-in iSight camera in Launch Daemon

I have created a script to turn my iSight web cam into a security camera. I can start my script from the terminal and it turns fine, invoking ffmpeg with the -f avfoundation option to capture ...
0
votes
0answers
36 views

FFMPEG: Error splitting the input into NAL units / Timestamps are unset in a packet for stream 0 when changing from avi to mp4

I am trying to change the container of a video acquired from an NVR using ffmpeg, but the output video is not playable by VLC or QuickTime. The output video stays still. In detail, using the following ...
0
votes
0answers
26 views

use find command to recursively convert directory with ffmpeg [duplicate]

I've asked this question almost a dozen times and it seems to stump everyone. I've come a little closer - but still not close enough to the solution. I want to recursively convert .mp4 to .png (1 ...
0
votes
1answer
76 views

use find command for recursive conversion using ffmpeg

How can I use the following script to recursively convert a directory containing .mp4 to .png (1 frame only). Right now it only converts the directory. It's not recursive. for i in *.mp4 do name=`...
1
vote
1answer
55 views

reducing noise in scene select logic in ffmpeg

From this answer I am using this command to extract only components of a (mostly unchanging) video feed which have motion in them: ffmpeg -i input.mp4 -vf "select=gt(scene\,0.0001),setpts=N/(25*TB)" ...
0
votes
1answer
56 views

convert files with using basename to different externsion

I'm trying to figure this out. I've found multiple ways to do this but always result in the files being named .mp4.png here is my command script: find -name "*.mp4" -type f|xargs -i ffmpeg -i {} -r ...
0
votes
0answers
21 views

FFmpeg Splitting Videos to each 30min

Im using this code to split video ( 1 by 1) ffmpeg -i /Download/5.mkv -vcodec copy -acodec copy -map 0 -segment_time 00:30:00 -f segment /Data/05.%03d.mkv How to make bash to splitting videoS (5-10 ...
1
vote
0answers
32 views

FFMPEG reduce dynamic range (VLC port ask)

Is there a way to do the exactly same thing as the image below (VLC) but using FFMPEG? I want it with FFMPEG to automate some jobs with batch files. In VLC, alongside the settings in the above image, ...
0
votes
0answers
10 views

Detecting/Comparing Audio with FFMPEG

I am using FFMPEG to retrieve a MP3 audio stream. I then have want to detect/listen for audio within the stream that matches a separate, 8 second MP3 file I have. Is there a clean efficient way to ...
0
votes
0answers
61 views

FFMPEG virtual camera on Microsoft Teams

I would like to stream my monitor as the webcam input. I do this using sudo ffmpeg -f x11grab -r 15 -s 1280x1024 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 -vf 'hflip,scale=800:...
0
votes
0answers
21 views

ffmpeg: extract video between two PTS values using a filter

I am trying to extract video and generate a timelapse between two PTS values ("make a timelapse of all video between 8am and 6pm"). The original video comes from a network camera and contains a -...
1
vote
1answer
41 views

In ffmpeg, why does rotate of 90 cause rotate of 270 to be listed?

I have a file ggg.mp4 with no rotational metadata. C:\vidz>dir ggg.mp4 12/03/2020 17:50 9,304,867 ggg.mp4 C:\vidz>mediainfo ggg.mp4 | find "Rot" C:\vidz>ffmpeg -i ggg.mp4 2>&...
0
votes
0answers
18 views

ffmpeg freezes on camera time change

On our system, we use the following ffmpeg command to record 10 minutes from IP camera and store preview image each second (to show it remotely on the webpage). It works as expected except the ...
0
votes
1answer
72 views

Cannot use variable in FFmpeg command as I wanted

I am trying to do a basic hardsub work with FFmpeg in a Powershell script. Here is the code: $subfile = ".\test\sub.srt" ffmpeg -i in.mp4 -c:v h264 -vf "subtitles=${subfile}:'force_style=fontsize=20'...
0
votes
0answers
32 views

ffmpeg reducing frame rate doesn't decrease file size

My goal is to reduce the overall file size of a video without quality loss. The source video is at 30fps with keyframes every 90 frames. For our purposes we only need the video to be at 3fps and ...
0
votes
0answers
26 views

Use ffmpeg to merge parts of flv files into multiple completed mp4 files

I have some partial (two part) flv files with names like this: 03-1.flv 03-2.flv 04-1.flv 04-2.flv 05-1.flv 05-2.flv I want to merge the parts 1 and 2 into a single mp4 files, like merging 03-1.flv ...
0
votes
2answers
32 views

FFMPEG keeps converting without stopping when using HStack to combine a gif with an video while also using a scale2ref filter

I am trying to combine/merge a gif/image with a video to output a video that has both in one frame. For that purpose i'm using FFMPEG on nodejs. The filter I am using is Hstack and since the content ...
0
votes
1answer
26 views

WebM With a Still Image and an Audio

How can I join together a cover and a music into WebM with the best audio quality using ffmpeg? I really can't figure it out.
-1
votes
0answers
35 views

Ffmpeg cut & merge in single commad line

How to cut multi sections out of a mp3 File & merge to one mp3 file with FFmpeg in a single command. Thanks in advance
0
votes
0answers
27 views

ffmpeg. Change specific color of text in video

I have a karaoke video with the black background and trying to change the color of letters currently playing. Now it is violet but I want the blue color. I tried to use a lutrgb filter, which seems ...
0
votes
0answers
49 views

How to merge segmented webvtt subtitle files and output to SRT file?

How to merge a segmented webvtt subtitle file and output a single file?, m3u8 looks like this example: #EXTM3U #EXT-X-TARGETDURATION:6 #EXT-X-VERSION:5 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-PLAYLIST-TYPE:...
0
votes
0answers
20 views

ffmpeg input seeking to zero gives a different result than not input seeking

I'm using ffmpeg with input seeking to get fast results. When seeking using the below 2 commands I get different results although I would expect the same output file ffmpeg -loglevel debug -y -...
1
vote
0answers
19 views

compiling ffmpeg with fixed arguments? [closed]

I would like to compile ffmpeg with fixed arguments, ie: ffmpeg -i rtsp://localhost/live -vcodec copy -acodec copy -f flv rtmp://remotehost/live I can't for security reasons call it from an external ...
0
votes
1answer
93 views

Creating an MP4 file that is tolerant to sudden failure during encoding

I'm trying to create an mp4 file that can be played in its current state even if all the bits from the encoder don't make it to disk. This could be due to a failure in storing the file on a network ...

1
2 3 4 5
95