Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

0
votes
0answers
9 views

How can I concatenate 3gp files using ffmpeg

On my Ubuntu machine I'd like to concatenate 1 to 4.3gp together: When I try: ffmpeg -i 1.3gp -i 2.3gp -i 3.3gp -i 4.3gp -filter_complex '[0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]' -map '[out]'...
0
votes
0answers
17 views

How to speed up ffmpeg?

I use ffmpeg to mix an audio file with a single photo to make a video with the following command: ffmpeg -loop 1 -i image -i audio -c:v libx264 -tune stillimage \ -c:a aac -b:a 192k -pix_fmt yuv420p -...
0
votes
0answers
18 views

Concat two inputs via ffmpeg resulting black screen in HLS players

I am trying to concat two identically encoded streams and output their videos side by side. I am sending it off to my CDN provider and they are segmenting my stream into HLS format. On most modern ...
1
vote
0answers
9 views

Producing a 1-2 minute delayed stream from input udp stream with ffmpeg

With reference to following thread: Producing a udp stream delay with ffmpeg I need to produce a 1-2 minute delayed stream from input udp stream with ffmpeg. @Gyan so will that append live stream ...
0
votes
0answers
38 views

FFmpeg subtitles position is wrong

I'm trying to include subtitles in my ffmpeg x264 encodes. I'm trying either srt and sub station alpha. The subtitles are included in the encoded mkv, however their position is all wrong. They just ...
0
votes
1answer
37 views

Skip N bytes every M bytes while reading from named pipe

I pipe data from one process to another, but this stream needs to be filtered. The first process is ffmpeg and the second is ffplay. ffmpeg provides raw video frame for fplay to render, however it ...
1
vote
0answers
15 views

Record sound from bluetooth speakers

I am using ffmpeg to record any sound playing on my system, using the following command: ffmpeg -f dshow -i audio="Stereo Mix (Realtek High Definition Audio)" "<output_file_path>" This is ...
0
votes
0answers
15 views

Redundant stream source being transcoded to single output

Currently using 2 redundant streaming devices that require two separate IP addresses (virtual IP is not an option). I stream to another server at input RTP x.x.x.1:5004 (streaming device 1, primary) ...
1
vote
1answer
33 views

Extracting audio from mp4 has less bitrate

I'm using ffmpeg -i input.mp4 -c:a copy -vn -sn output.m4a to extract audio from an mp4 file. However, when I open the mp4 in Spek, it shows 255kbps AAC and the extracted file is only 200kbps. Also, ...
0
votes
1answer
28 views

How to use ffmpeg removelogo filter

I am trying to use ffmpeg removelogo filter, there is no syntax error but result has some kind of weird magenta triangle where mask is applied. I am using following command ffmpeg -y -i sample_image....
3
votes
0answers
21 views

Keep equirectangular side-data when using video filter on 360 Video in ffmpeg

I have a 360° Video and want to shift it sideways using ffmpeg so that the default viewpoint when opening the video in a player is shifted. I found this question (How to offset a video horizontally in ...
0
votes
1answer
39 views

Deinterlacing failed when encoding a file with h264

Tried using several different h264 encoders but all of them make it have this problem where there are horizontal glitches near movement. I tried using ffmpeg but couldn't figure out how to do it ...
0
votes
0answers
21 views

Audio Issues With FFmpeg Script

I have a script to convert all files in a dir using ffmpeg. When I convert a file, it has audio distortion. If I convert the same file using something like handbreak there are no issue. Any ideas what ...
0
votes
1answer
15 views

How do I simply edit the subtitles of a MKV file while preserving the video, audio, and attachment streams?

So when I look at the original video: ffprobe -v error -show_entries stream=index,codec_name,codec_type example.mkv I see something like this: [STREAM] index=0 codec_name=h264 codec_type=video [/...
1
vote
0answers
652 views

FFmpeg: Detect silences above digital silence?

I'd like to use the silencedetect filter from FFmpeg to detect silences in audio files but I want to ignore digital silence/absolute silence. I would think this should be as simple as specifying a ...
0
votes
0answers
25 views

ffmpeg never stops when using filter

I'm trying to chop frame-accurate segments from a video (video, audio and subtitles). The command below works fine (from linux command line): ffmpeg -itsoffset -0.56 -ss 124.0 -i "input_file.ts" -...
0
votes
0answers
19 views

Synced playback of remote media between various users

Is there software or a wrapper around MPV or other similar audio/video software such as ffmpeg suite that allows users in a swarm to playback media in sync with each other within a few seconds? I ...
0
votes
1answer
64 views

FFMPEG - ffmpeg image zoom-in according to duration

ffmpeg image zoom-in according to length of video for example, if i set length of video for two minutes. than it should continuously zoom out for two minutes, i have already zoom-out command but i ...
1
vote
1answer
34 views

FFmpeg: Rotate and Pad Horizontal Video

I have a portrait video (9:16 ratio) taken on a phone, and would like to convert it to a lanscape one (16:9), either with black padding on the side or, ideally, with blurred padding (but not overly ...
0
votes
0answers
27 views

FFMPEG : If i try to execute the m3u8 file with vlc work only with the first frame

I use ffmpeg to generate the m3u8 file. I think the problem in the ffmpeg command. the ffmpeg somtimes generate a file m3u8 with old frames it was deleted example m3u8 file: #EXTM3U #EXT-X-VERSION:...
0
votes
0answers
22 views

Piping FFMPEG out makes loosing file duration

In order to dynamically encode file and upload them to a server, I output ffmpeg to pipe:1 and use curl to post the result to a file. The problem is when I use MediaInfo to check the file, it appears ...
0
votes
0answers
18 views

FFMPEG: After inserting multiple subtitle files into a MKV, it only saves the language metadata of the first 4 files

I know this is a very specific question, I've spent the entire morning figuring out how to insert srt subtitles into a mkv file using FFMPEG And I sort of figured out how to do it and it works. I'm ...
0
votes
1answer
31 views

Add poster frame (artwork) to mp4

I've tried using this solution using ffmpeg to set a poster frame for an MP4. ffmpeg -i input.mp4 -i image.png -acodec copy -vcodec copy -map 0 -map 1:0 -metadata comment="adding a comment" output....
0
votes
1answer
31 views

Video frame capture: I-frame vs P-frames

I'm trying to capture various frames within a x264-encoded video files into png files (in python), and then compare the quality of them: cap = cv2.VideoCapture(filename); //get frame_number for ...
0
votes
0answers
26 views

FFMPEG: Generate segments with millisecond precision

I'm generating 10s mp3 segments off a local UDP stream with ffmpeg -i "udp://localhost:5000/live/stream" -f segment -segment_time 10 -map 0:a -strftime 1 "/usr/share/streamed/%Y-%m-%d-%H-%M-%S.mp3" ...
0
votes
0answers
23 views

Reconnecting ffmpeg rtsp connection

Why does not rtsp reconnect when broadcast is interrupted? ssh command debian ffmpeg -rtsp_transport tcp -stimeout 150000000 -stream_loop -1 -i rtsp://wowzaip:554/live/camera1 xx..xx..xx -f flv rtmp:...
0
votes
2answers
38 views

How to add additional key frames to video using ffmpeg?

I want to add key frames on the base of a specific interval (20 frames) to my video. Therefore I used the following command in ffmpeg: ffmpeg -i <input> -vcodec libx264 -x264-params keyint=20:...
0
votes
0answers
15 views

How to change offset of EIA-608 subtitles in an MP4?

I have an MP4 file containing H.264 Video, AAC Audio, and EIA-608 Closed Captions: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4': Metadata: major_brand : isom minor_version : 512 ...
0
votes
0answers
17 views

Ffmpeg Gaussian Filter (gblur) kernel size

I am applying a Gaussian filter to a video using ffmpeg's gblur-filter. The filter accepts the sigma option, but does not allow to choose the kernel size. To correctly report on my Gaussian blur usage,...
0
votes
0answers
24 views

How to make video from series of images with audio using ffmpeg

I want to create videos using multiple images and each image change after specific time like 4s,5s etc.. in video and add audio play until video finish. I create the images.txt file and transfer all ...
0
votes
1answer
29 views

I recorded a video with an iPhone SE (11.4.1) with 1080H / 30 fps. I want to extract as many individual freeze frames as possible with ffmpeg

I recorded an video with an iPhone SE, iOS Version 11.4.1 (15G77). I want to extract as many individual and freeze frames in best available quality. I guess i can get a max of 30 freeze frames per ...
0
votes
1answer
17 views

Need to concat two ffmpeg commands (first command video as input)

First command - add overlay to my video: -i test.mp4 -i img.png -filter_complex [1][0]scale2ref[i][m];[m][i]overlay[v] -map [v] -map 0:a? -ac 2 -preset ultrafast test23.mp4 Second command slow down ...
0
votes
0answers
14 views

How can I get ffmpeg to autorotate input files while concatenating?

I'm using the following command to concatenate a list of .mov files: ffmpeg -safe 0 -f concat -i files -vcodec copy -acodec copy merged.mov This works insofar as the files get concatenated... but ...
0
votes
0answers
31 views

How to use nnedi to upscale video to 2x size

https://lists.libav.org/pipermail/ffmpeg-user/2008-December/018136.html mentions: nnedi is actually an edge-directed interpolator for deinterlacing, but if you run it twice in opposite directions,...
0
votes
1answer
28 views

Converting an ATSC TS to MKV, including all audio tracks and closed-captioning from FFMPEG

I'm guessing this can be done somehow, because I've seen programs that are a GUI front-end to FFMPEG that essentially do this, but I'm trying to figure it out from a command-line in Ubuntu. I want to ...
0
votes
0answers
8 views

ffmpeg freeze video it specific time for some duration [duplicate]

am trying to freeze video it specific time/frame for certain duration i tried few methods but they have flaws. method 1 trim method: to trim video then concat but problem is it concact it start or ...
0
votes
1answer
29 views

ffmpeg choose outbound IP (eth0 or eth1)

I have 2 IP addresses on my server. $curl --interface eth0 ifconfig.co 111.111.111.111 $curl --interface eth0:0 ifconfig.co 222.222.222.222 So via curl I can switch via interfaces so ...
0
votes
0answers
10 views

add separate audio-language tracks to video with existing audio-language tracks [duplicate]

we have videos (webm) each with 27 language audio tracks. Now we have to add 3 more language tracks to the existing audio. The point is, that the delta between the existing webm with the 27 language ...
0
votes
0answers
16 views

Using FFmpeg, convert multiple .mov files to .png files [duplicate]

Very new to linux so apologies in advance for this! I want to use ffmpeg to extract .png files from each .mov at a rate of 3 frames per second and create a new file for each set of extracted .png ...
0
votes
1answer
41 views

How to increase video's FPS and speed correctly with ffmpeg?

I have a 5 fps video with keyint 120 2.5 hours long that I want to speed up 6 times, making its fps=30 I did it with this command that I found somewhere on this website ffmpeg -i "...local_Record....
0
votes
0answers
27 views

Issue for “Using FFmpeg library in QT Creator on Macosx”

I'm trying to integrate ffmpeg library to QT project on MacOSX. But unfortunately , i got issue: "Undefined symbols for architecture x86_64 "_CFArrayGetCount", referenced from: _vtenc_frame in ...
1
vote
0answers
177 views

How to reduce and gradually increase the volume of specific parts of an audio with ffmpeg?

I need to join 2 audios and record it in an mp3 file so that the 2 audios are played simultaneously. I already managed to do this with ffmpeg. What I could not do was the setup process and playback ...
1
vote
1answer
170 views

Extract closed captions (CC) From .mkv file interlaced in video stream

Video output: ffmpeg -i output.mkv Input #0, matroska,webm, from 'output.mkv': Metadata: encoder : libebml v1.3.6 + libmatroska v1.4.9 creation_time : 2018-08-31T06:43:...
0
votes
1answer
24 views

FFMPEG image sequence to video with specific duration

Let's say you have a folder with 40 .jpegs (frames captured from a webcam). How to convert it to a video exactly 3 seconds long? Using FFmpeg on Windows.
0
votes
1answer
27 views

Decode/encode 4:2:2 with a 4:2:0 decoder/encoder

Similar to Reinterpret AVC bitstream as HEVC. Some hardware codecs support 4:2:0 for 4k but not don't support 4:2:2 even for SD, with far less data. Can you trick a codec to encode 1920x1080 4:2:2 ...
-2
votes
0answers
28 views

FFMPEG multi-cut video [duplicate]

I have a video mp4 file and I have a few ranges of adverts that I need to trim from this video and leave all other video. For example I need to get ranges where I have content without adverts: 00:01:...
0
votes
0answers
16 views

how to do color conversion to RGB32 using vaapi

How can I convert the color space from yuv420p to RGB32 using vaapi hwaccel within the decoding pipeline? Vaapi provides color conversion to RGB32 , but how to achieve the same using ffmpeg APIs
1
vote
0answers
41 views

Reinterpret AVC bitstream as HEVC

I understand HEVC to be a superset of AVC. HEVC allows more 'tools' to extract more compression out of a video sequence. Is there a tool that converts an AVC stream to HEVC, completely ignoring the ...
1
vote
0answers
24 views

ffmpeg: mix/merge multiple mp3 files, some do not mix

I am trying to merge multiple mp3 files on top of each other on a CentOS 7 server. I am trying with ffmpeg but I have mixed results. When mixing 4 files, the last one for example does not mix with ...
0
votes
1answer
62 views

Largest possible compression for big video files using FFmpeg

I've been fascinated by a copy of “The Emoji Movie” being compressed to 45 megabytes, and was wondering how would I go about achieving such compression to very large movies. Of course, if some ...