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
1answer
154 views

ffmpeg and mapping against 2 target audio tracks!

Im trying to mux and encode a TS file with 2 audio tracks from a mov file. ffmpeg -loglevel verbose -i test.mov -map 0:1 -map 0:2 -acodec:0 aac -ab 160k -acodec:1 eac3 -ac 6 -ar 48000 -ab 640k -...
27
votes
4answers
75k views

How to losslessly encode a jpg image sequence to a video in ffmpeg?

I have a large set of jpgs that I want to convert to a video losslessly (or, at the very least, very close to losslessly as long as the encoding time isn't much higher than otherwise). Naively, I ...
0
votes
1answer
211 views

Copy chapter metadata of input to output for Apple compatibility

I have a set of media where I'm trying to strip an audio track and copy everything else over. My command is like so: ffmpeg -i input.m4v -dn -map 0 -map -0:a:2 -c copy output.m4v The source file has ...
0
votes
1answer
23 views

Do modern devices support decoding 4:4:4 pixel formats?

I am recording and distributing relatively low motion screen content (not games). Using h264, fine text often appears very blurry due to the poor subsampling with 4:2:0 and 4:2:2 pixel formats. With 4:...
2
votes
1answer
238 views

Create a splitscreen video from two videos of different lengths with delay

I want to create a splitscreen video from two video clips. Left one is of duration 70seconds. Right one is of duration 80seconds. In the splitscreen video, the right video should start first. Left ...
0
votes
1answer
101 views

ffmpeg: convert an existing audio stream as an additional audio stream (keeping untouched original as well)

I have a video with 1 video stream, 2 audio streams (TrueHD 7.1 and E-AC3 5.1), a bunch of PGS subtitles and chapters. I want to copy the video, convert the 7.1 audio into AAC, copy over the original ...
2
votes
1answer
1k views

ffmpeg: joining videos leads to “time skips” during playback

I hope that someone can help me. I have the following two videos: $ ffprobe 0.ts ffprobe version 3.2.4 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20170109 ...
1
vote
1answer
2k views

HLS to RTP multicast FFmpeg

I want to transmit HLS stream to RTP multicast via FFmpeg and use the following command: ffmpeg -re -i HLSstream -c copy -f rtp_mpegts rtp://ip:port But the output source сrumbles sometimes (I ...
0
votes
1answer
1k views

FFmpeg keep different sar and dar in multiple videos

I have two video that I'm working through filter_complex. First video is 1280x720 [SAR 1:1 DAR 16:9] and the second video is 1280x720 [SAR 203:640 DAR 203:360] I would like to merge the files with ...
1
vote
1answer
325 views

FFMpeg -filter_complex to place a video in a window on a larger image with text

I'm trying to work out how to combine both features of the following in one -filter_complex statement in order to take an image, write some text on it, and then do an additive composite of a small ...
1
vote
1answer
2k views

best way to publish low latency video on ffmpeg

I am trying to publish a stream of live video that need to get to the client side in under 3 sec in latency. I am using vMix to capture a 720p/50 stream from a camera, that by virtual camera letting ...
0
votes
1answer
174 views

resend headers NUT formats

If I do this ffmpeg -f dshow -video_size 720x480 -framerate 29.97 -i video="Roxio Video Capture USB":audio="Line (Roxio Video Capture USB)" -c:v mjpeg -c:a pcm_s16le -map 0:v -map 0:a -f fifo -...
0
votes
1answer
155 views

picking a frame and an overlapping audio from a video

I know how to extract frames and audio from a video using ffmpeg. But what I want to is, to pick a random frame in that video, and then picking a random 1 second audio clip that overlaps in time with ...
0
votes
3answers
51 views

Can't see differences between videos?

I back up my data to pairs of external hard drives, and recently (in the process of transferring the contents to larger external hard drives) found that some of the data between them has diverged. ...
0
votes
1answer
563 views

Batch add intro and outro to videos

I have 500+ videos. I need to add intro and outro to them. Found this .bat script on a different website, and tried it. But it didn't work for me. As the script only ads outro - still didn't work. ...
1
vote
1answer
223 views

ffmpeg Auto Level, Auto Color etc similar to YouTubes Auto-Fix

I used to use YouTube Auto-Fix which presumably auto fixed levels, color, contrast and added a bit of vibrance (it was almost always a bit high saturated which i kinda liked). I am looking for an ...
0
votes
1answer
38 views

ffmpeg produces the same output file with different bitrate settings

My input is an uncompressed video captured from old Hi8 cassettes, mediainfo: Format : RGB Codec ID : V_UNCOMPRESSED Codec ID/Info ...
1
vote
0answers
31 views

HLS stream playing only when first segment is in m3u8 list

I am transcoding a live DVB-T2 HEVC stream to H264 using ffmpeg. I have decided to use the HLS (segmented) output format (because I want to play the stream in a web browser, e.g. on Android phone). I ...
0
votes
1answer
1k views

Color changes after video to single frame images back to video using ffmpeg

Given master video in mov rle: Video: qtrle (rle / 0x20656C72), rgb24(progressive) Converted the video to a serie of single .bmp frames. ffmpeg -i source.mov $FRAMES/f%03d.bmp Frames from ...
0
votes
0answers
21 views

Make FFMPEG use Mobile GPU

I have two GPU on my laptop, one is AMD Vega 8 and one is RX 560X. I run a VOB to MP4 conversion using Windows Powershell with this command: ffmpeg -i VTS_01_1.VOB -vf yadif -c:v h264_amf -preset slow ...
2
votes
1answer
3k views

combine stream and multiple videos to live output, with transitions

I am using FFmpeg to combine a radio stream with a video but my target is to read from a playlist file (own format) and combine multiple videos with the audio in the background. The most important ...
0
votes
0answers
14 views

Is a video capture device with external coding useful for OBS?

I'm awfully new to this, so bear with me if this is a dumb question, but ... I'm in the market for a video capture device so I can use my DSLR for some live streaming video. In investigating external (...
1
vote
1answer
1k views

change aspect ratio without stretching video ffmpeg

ffmpeg -i "a.mov" -i "b.mp4" -filter_complex "[0:v]setsar=sar=${SAR}[a]; [1:v]setsar=sar=${SAR}[b]; [a][0:a] [b][1:a] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -preset veryfast -crf 18 "...
2
votes
1answer
186 views

How does QuickTime Player know when do play a video in HiDPI/Retina/@2x mode?

When you’re on a Mac with Retina Display (HiDPI), and you make a screen recording using QuickTime Player, whenever that video is played in QuickTime Player, it is shown with the expected 2:1 pixel ...
0
votes
1answer
29 views

How to convert a black and white video to a APNG file while setting a color as transparent?

I created a small video with threshold filter to get black and white pixels (no greyscale): ffmpeg -y -i /dev/video0 -f lavfi -i color=0x606060:s=640x480 -f lavfi -i color=black:s=...
0
votes
1answer
39 views

Need overlay the image on video by taking the array of positions

I need to overlay the image on video by scrolling the image on video . I want to generate the video with the image in scrolling positions
1
vote
1answer
268 views

(FFMPEG) Creating SD Pal Anamorphic

I'm using a shell script to automate some FFMPEG processes. The main part I'm interested in is the options following the -vf flag below: ffmpeg -loglevel verbose -y -i "${FILE}" -vcodec prores -...
1
vote
1answer
571 views

Concat files of different encodings?

I have nearly 130 files that I want to burn onto a DVD as an end result. I've gone down a bit of a rabbit hole and ended up at ffmpeg trying to combine all the files into a single giant 2 and a half ...
0
votes
1answer
847 views

Color shift FFmpeg raw RGBA images to YUV format

I have a list of raw bitmap in rgba format, captured with an openGL frameBuffer. I want to export them in a video, currently i am using the following command: ffmpeg -f rawvideo -r 30 -pix_fmt rgba -...
0
votes
0answers
13 views

Youtube livestream stops receiving video from time to time (ffmpeg)

I have ip cam, raspberry pi with ffmpeg on board and I am trying to do 24/7 youtube livestream. I have set up a service that start ffmpeg on boot. It receives rtsp stream from camera and sends it to ...
0
votes
1answer
335 views

Tool to find Duplicate Video files ignoring tags

I am looking for an automated method to identify duplicated video files from my large collection of videos. I have used fslint to do this in the past, but I started fixing the EXIF tags on my videos, ...
0
votes
1answer
32 views

FFMPEG fade out image overlay issue on windows 10

sorry if my question is not exactly the correct format, this is my first post here I have created a ffmpeg one line code that will fade in and fade out a transparent .png as a overlay here is my ...
19
votes
2answers
23k views

Convert mp4 to webm without quality loss with ffmpeg

What is the best way to convert a mp4 file to webm without quality loss (using vp8 or vp9) with ffmpeg? If I do ffmpeg -i in.mp4 out.webm the quality is very bad. I can specify a target bitrate via -...
0
votes
1answer
47 views

Hello ffmpeg heroes - please help me with ffmpeg/ffprobe commands to decode a video for me?

I have a sample.mp4 which is currently not playable on VLC or media player and I've checked the FFmpeg values and get the below result? Any help would be greatly appreciated.
0
votes
1answer
130 views

Add two images before a mp4 and one in the end with ffmpeg

I'm trying to make an operation using FFmpeg with just one command to leave the output as lossless as possible. My intention is to add two images, 5 seconds each, before the mp4 file, add a fade in ...
0
votes
2answers
3k views

Possible to stream/append images into an existing mp4?

I've been working on a service that downloads a number of images, saves them to disk, and then uses ffmpeg to create an animation (gif or mp4). This can be fairly intensive in terms of memory and CPU ...
0
votes
0answers
59 views

Infinite loop RTMP Stream Using FFmpeg or Equivalent

I'm trying to do an infinite loop RTMP stream on a CentOS 7 server and it seems like FFmpeg would be the best way to accomplish that. However, I cannot seem to coax FFmpeg into doing it despite ...
0
votes
0answers
7 views

When combining videos, what do frozen frames or blocky grey corrupted areas indicate?

I'm trying to concat a bunch of .mp4 videos using ffmpeg. They all play fine in VLC individually, but when I concat them together, I get frozen frames, blocky grey corruption, pixellation where the ...
0
votes
1answer
2k views

How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?

I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable. The website is serving 2 M3U8 manifests: The first ...
1
vote
2answers
44 views

Search two hour video for a specific five second clip

I have a five second clip that is stripped from a much longer video. I need to identify exactly where in the longer video this clip begins/ends. There could be multiple occurrences of the clip, I ...
0
votes
1answer
532 views

Fast VP9 still image encoding

I use this command to create "myFile.webm", a VP9 video with one still image : $ ffmpeg -i myOriginialPureAudioFile.opus -loop 1 -i myAudioFile_640x360.png -shortest -threads 4 -speed max -c:a copy ...
0
votes
1answer
80 views

filter_script usage with ffmpeg and replacing inputs with a file

When using ffmpeg -i input1 -i input2 ... -filter_script filter_complex.txt output.mkv I can't seem to get the stream from the filter_complex.txt file to be recognized by ffmpeg. If I add -map [v], ...
0
votes
1answer
513 views

FFMPEG - MAC OS Cannot Capture from Black Magic UltraStudio (Thunderbolt)

I have Black magic UltraStudio Express that captures SDI or HDMI and Connected to MacBook via Thunderbolt when I list devices I get the Audio but not the video : $ ffmpeg -f avfoundation -...
0
votes
0answers
32 views

Download/save HLS video using FFMPEG with separate URL of video and audio playlist

First time here and new to all this. Learning as I go. There is a video stream I would like to save on my computer for future viewing. I was able to retrieve the master.m3u8 file and therefore was ...
1
vote
1answer
261 views

HLS.js player dropping frames at discontinuities in HLS stream

I have a need to play small pieces (1 or 2 seconds) of video in various orders via HLS. Think a highlights reel from a sporting match. Several HLS players struggle with playing a stream with ...
0
votes
0answers
14 views

ffmpeg and blocky corrupted video clip after concatenation

I am attempting to concatenate a bunch of video clips using ffmpeg. The command line I am using is: ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4 One of the video clips in particular ...
0
votes
0answers
23 views

Finding and repairing duplicate sound with ffmpeg

I have a number of videos that contain sound sequences that repeat with a corresponding video freeze. I have an example clip that contains a sound sequence from 51.194s -- 60.133s that repeats again ...
0
votes
1answer
86 views

Is public manifest.mpd a issue?

I have a public manifest.mpd file. Is it considered a security issue? It has something called cenc:pssh value so i am bit scared if its okay to be public or not?
0
votes
4answers
173 views

Re-encoding Lossy formats with Lossless formats

I was re-encoding videos downloaded from YouTube with Lossless H.264 (using FFmpeg) because I'm experimenting with CRF=0. I found that resulting videos are much bigger (1 gigabyte) than the original ...
5
votes
1answer
2k views

Finding the place where a video loops

I got a video of a fireplace, the video is 3 hours long. I can see that it is looping as the logs keep burning forever. My guess is that it is looping in the region of 5-15minutes. Is there some ...

1 2 3
4
5
35