Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

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

FFmpeg mux an mpegts for use in stream: possible to set cur_dts / dts / pts?

Constrained by the need manually generate a series of 10-second MPEGTS media segments for HTTP Live Streaming (HLS), ffmpeg's mpegts seems to do what I need. This example would be for segment number ...
0
votes
0answers
13 views

FFMPEG inserts extra audio frame at the begining of first chunk in HLS

I'm trying to reencode input HLS video (h264/aac using ts segments) from Nth to Mth segment into new HLS video. I do it by creating new HLS media playlist containing only segments I need (ie from 4th ...
0
votes
0answers
17 views

Convert hvc1/AAC mp4 to something playable on Mac El Capitan

I gather it's a known thing that Quicktime Player Version 10.4 on El Capitan won't play mp4/ hvc1 codec videos. I haven't been able to do anything with the file using my usual tricks (VLC, iFFMPEGapp/...
0
votes
0answers
9 views

How can i do overlay subtitle with ffmpeg like in the links provided?

I need a script for ffmpeg to do this: Background color (drawbox) for all words like this: Animation (very important) like in this videos: https://www.facebook.com/watch/?v=3985582161542560 https://...
0
votes
1answer
21 views

A video of 1h27m duration, only plays up to 27m

Background I have recovered some large videos as explained here: https://superuser.com/q/1686118/571029 There are 3 videos of almost the same size with the same content, apparently: > ls recoverit-...
0
votes
1answer
22 views

Possible dropped frames after trimming a video

I have a 30-fps video just downloaded by youtube-dl, and it seems to have black frames in the beginning of it. Part of the result of ffprobe youtube-dl.mp4: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...
1
vote
0answers
30 views

Copy timecode from SEI Picture Timing to MXF Timecode Stream with FFmpeg

I am receiving an HEVC encoded live stream that contains SMPTE 12-1 timecode in the SEI picture timing, as it is recommended in ITU-T Rec-H.265-202108 Annex D.3.3 Picture timing SEI message semantics....
0
votes
1answer
13 views

Crop outer parts of frame and rejoin

I have a video 3000x1000. I want the left part of video 1001x1000 and the right part of video 999x1000 to create a video 2000x1000. Center of original frame just dropped. Is this possible with ffmpeg ...
0
votes
0answers
10 views

How to create a sense of motion in stereo audio [migrated]

I have a :15 mono audio file of a car driving by. What I would like to do is use that as the input to create a stereo audio file where the sound 'moves' from left speaker to right for better realism. ...
0
votes
0answers
14 views

Splicing attempt with ffmpeg runs without error, but doesn't insert the file

I am trying to do the same thing that the person asking this inserting video clip into another video but keep original audio question is. My text file, concat2.txt, looks like this: file '...
2
votes
1answer
59 views

Audio discontinuities when generating HLS segments in different processes

I am creating MPEG-TS segments for HLS playback from multiple ffmpeg processes (it will be used for parallel encoding at a later stage). The commands are as follows — they can be run in sequence for ...
1
vote
1answer
33 views

FFmpeg seems to write bad .w64 files for pcm_f32le streams

I have a problem with FFmpeg when writing a pcm_f32le stream to a Wave64 file format (.w64). Basically, only FFplay can read the file back correctly. I tried with VLC, but it seems it cannot read any ....
0
votes
0answers
8 views

Combine overlapping video clips into one non-overlapping file

I have over 500 ~30 second (length varies) clips from a now deleted Twitch livestream that I would like to reassemble into one file. However many of the clips overlap each other (some might even be ...
0
votes
0answers
16 views

How can I downsample video to rgb24 with dithering in ffmpeg?

Setting -pix_fmt to a yuv colorspace will use Bayer dithering by default. I don't know how to change that behaviour. When downsampling with -pix_fmt to an RGB colorspace like rgb24, no dithering is ...
0
votes
1answer
14 views

How to put a trailer clip in the middle of the main video with FFMPEG?

I have two videos of the same format encoded with the same codecs. I want trailer.mkv to be played after n minutes in the middle of main.mkv. After playing trailer.mkv, the rest of the main.mkv will ...
0
votes
0answers
15 views

the ffmpeg generated video mute after seeking it forward

the video mute after seeking it forward, it greated with ffmpeg, when i play it normaly (without seek it) the audio played, i am a linux usser and test it with vlc player and mpv player i generated it ...
0
votes
0answers
12 views

ffmpeg directory name with em dash in it

I have a directory name in which I use the em dash: "\\NetworkComputer\d\1 – Initial\video.avi" ffmpeg is not finding the file because for the em dash –. If I remove the em dash, or replace ...
0
votes
0answers
10 views

How to concatenate stream segments if some are missing?

I have a bunch of *.ts files from one stream but some of them are missing. I've tried to assemble them in a single *.ts file and then converted it to mp4 using commands bellow copy /b *.ts output.ts ...
0
votes
1answer
19 views

Can I inject subtitles into a live stream with FFmpeg?

In my live streaming scenario I need to grab a video source and inject subtitles that I generate algorithmically during the stream (i.e. I do not know the subtitles upfront), and publish the streams ...
0
votes
0answers
16 views

ffmpeg does not add metadata

I am converting a bunch of video recorded with iPad (mov format) into mp4 with ffmpeg (version: ffmpeg version 4.2.1-0york0~18.04.1) under Linux Ubuntu 18.04 LTS. This is the code template I am using ...
0
votes
2answers
60 views

How accurately can FFmpeg cut a video to a specific duration?

Can FFmpeg cut to a hundredth of a second? When I try to cut a video using : ffmpeg -i input.mov -ss 0.989 -t 0.238 -r 30 -y output.mov The video duration of output.mov is 0.27 seconds and not 0.238 ...
0
votes
0answers
11 views

Pulling Timecode from the show_entries of an HEVC stream and writing out to timecode track of an output file

When I execute this command ffprobe -i srt://0.0.0.0:5021?mode=listener -c:v copy -show_entries timecode I get back a repeating sequence of frames like so... [FRAME] [SIDE_DATA] [TIMECODE] value=21:18:...
0
votes
0answers
23 views

Why can I not trim videos to a specific duration?

I am trying to take some clips, edit their speed, trim them and then join them together. The clips need to be trimmed to a very short, specific length (0.238 seconds or 0.952 seconds). The intention ...
0
votes
0answers
12 views

How to build a MPEG DASH prototype system in Android

I'm trying to build a system to showcase how to use MPEG-DASH on Android. Basically, how to prepare a set of quality representations, segmentations, the player settings (if any), etc. What is the ...
0
votes
0answers
63 views

ffmpeg split and concat flac audio file generates error "Application provided invalid, non monotonically increasing dts to muxer in stream 0"

I'm using ffmpeg to cut slices from a flac audio file then concatenate them together. I'm able to do this and the output file plays in VLC media player and appears to have the correct duration; ...
0
votes
0answers
9 views

Live stream of a website

I need to live stream a website that contains image, video and audio to Twitch.tv. Researching a solution brought me to this Github example that runs on Heroku.com. Dockerfile: FROM jrottenberg/ffmpeg:...
0
votes
1answer
44 views

FFmpeg Optimized File Size Video Loop

I am attempting to create a video loop by merging a 15 second video with about 4 minutes of audio. After finding a similar question, I found a command that loops the input video for the length of the ...
0
votes
1answer
29 views

How to ffmpeg encode a video with audio properly synced in Adobe Premiere and Resolve?

I'm trying to use ffmpeg to encode a series of rendered images with a soundtrack. When we import that video into Premiere the audio seems to be 1/2 frame early. When we import that same video in ...
0
votes
0answers
18 views

Multiple inputs to MJPEG mux

I'm trying to encode 2 inputs form 2 different decklink cards and create a output encoded in mjpeg with 2 video index's to open in VLC. To be able to change from one video to another. I'm using ffmpeg ...
0
votes
0answers
28 views

Recovering an MP4 file - making an MP4 container with no audio from an HEVC file using ffmpeg

My SanDisk micro SD card with some GoPro Hero 8 HEVC footage had to be formatted, but the video files (MP4) were recovered using a tool called RescuePro Deluxe. But these recovered files couldn't be ...
0
votes
0answers
15 views

Applying colorkey twice in FFMpeg

I have a video with green screen. Unfortunately there is a shadow on the green screen. Increasing the tolerance got side effects. Thus I thought of the obvious, just apply colorkey twice. I tried this,...
2
votes
1answer
32 views

Combining multiple commands to render out different formats, while also resyncing the original file, and not have to render that one out first

After recording a live show, there are several tasks I need to do before I can render out the video file to different formats. I need to trim the file, and then resync the audio as well. After this I ...
0
votes
0answers
17 views

ffmpeg x265 zero motion estimation

I want to use x265 on a zero motion estimation setting, but there's no direct such setting in the params as other codecs. How should I do it correctly using x265? The closest setting I can think of is ...
0
votes
0answers
52 views

How to combine FFMPEG filter and filter complex

i'm new to FFMPEG and i'm trying to combine some filters First i use this command for cropping the video -i input.mp4 -filter:v \"crop=in_w:in_h-380\" output1.mp4" then i use this ...
0
votes
0answers
15 views

Mixdown Audtio with FFMPEG

I want to process MKV files by mixing down the audio to 128kbps AAC on 2 channels while just copying video and subtitle tracks. So I run: ffmpeg -i input.mkv -c:s copy -c:v copy -c:a aac -ab 128k -ac ...
0
votes
0answers
15 views

Turbulent displace effect on every 8th frame using FFmpeg

I'm trying to apply a turbulent displacement effect that changes distortion every 8th frame in a 24 fps video. If this article is accurate, turbulent displacement is created by using a displace and ...
0
votes
0answers
15 views

What is a good way to upscale 3D images without comprising the aspect ratio?

What is a good method for upscaling 3D videos and images in video editing programs such as Adobe Premire and Power Director or frontends like FFMPEG and AViSynth? The method that I mostly used to me ...
0
votes
0answers
37 views

ffmpeg video command still with black screen

I am using a screen capture component in delphi that I will use in my program, by enabling the recording option with the command ffmpegLGPL.exe -re -i% PIPE% -c: v h264 -threads 8 -profile: v baseline ...
0
votes
0answers
42 views

How can I configure ffmpeg to add black bars instead of stretching when input aspect ratio doesn't match

I'm trying to add a 16:9 intro to videos for my site using ffmpeg. So far I have the following filter which I found here: ffmpeg -i intro.mp4 -i input.mp4 -filter_complex "[0][1]scale2ref=iw:ih[...
0
votes
1answer
42 views

ffmpeg frame rate

I have several images and I am reproducing them in 78.7ms, I am creating like the 80s video effect. But, I am unable to find the correct ms, and those images with the original videos are unsynced. I ...
0
votes
0answers
13 views

How to create init.mp4 with headers only with ffmpeg hls muxer?

I'm trying to implement an utility to capture live stream from an IP-camera to disk in HLS structure. I would prefer fmp4 over ts. To play stream from archive, the utility would regenerate m3u8 for ...
0
votes
1answer
219 views

How to obtain the correct framerate with ffmpeg image2pipe format?

I have 40 .jpg in my dir folder and want to create a video at 20fps from them. I've tried the following command: find dir/ -iname '*.jpg' | xargs cat | ffmpeg -f image2pipe -framerate 20 -i - -s ...
0
votes
0answers
24 views

How does the bitrate option affect 2-pass h264 encoding?

I am trying to understand how 2-pass (h264) encoding works in more detail than "first pass analyzes, second pass encodes". Most tutorials I found online use the -b:v option on the first and ...
0
votes
0answers
33 views

Python opencv subprocess write return broken pipe

I want to read an rtsp video source, add overlay text and push it to the RTMP endpoint.I am using Videocapture to read the video source and python subprocess to write the frames back to RTMP endpoint. ...
0
votes
0answers
88 views

How do I make ffmpeg create video that retains transparent background from *.png images with transparent background?

I am a researcher, trying to string together a bunch of png files of a protein to a short video. I have all the png images with transparent backgrounds, but I can't seem to get this in the video. I ...
0
votes
1answer
70 views

ffmpeg to cut subtitle file in sync with the cut video

I managed to cut the video and keep subtitle in sync by embedding the subtitles in the video: $ ffmpeg -i sample-mp4-file.mp4 -hide_banner \ -vf subtitles=subtitles.srt -ss 0:30:00 -t 1:33:31 \ ...
2
votes
1answer
32 views

How do you trim videos in FFMPEG?

I am trying to trim my videos in Virtualdub but I also wanted to make a stream copy of the same video that I am trimming. Unfortunately, Virtualdub does not always give me the results I want as it is ...
0
votes
0answers
41 views

Decode Multi-Layer HEVC

I'm trying to decode an HEVC/H.265+ rtsp stream to an image using ffmpeg as follows: ffmpeg -rtsp_transport tcp -stimeout 10000000 -i 'rtsp://user:passwd@url:port/Streaming/tracks/101?starttime=...
0
votes
0answers
16 views

ffmpeg get Thread message queue blocking after hours

I'm using ffmpeg to record Xvfb and pulse audio. After 1h 30mins, it stopped and show this error [pulse @ 0x3406240] Thread message queue blocking; consider raising the thread_queue_size option (...
0
votes
0answers
22 views

Video/audio unsynced after transcoding live rtmp video translation

Currently, I'm trying to create a live streaming service for internal purposes of my company; The scenario of work is pretty simple: We are receiving the RTMP stream from the user(over the internet) ...

1
2 3 4 5
37