Skip to main content

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.

2,992 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
19 votes
0 answers
9k views

Extracting Opus from WebM losslessly with FFmpeg or MKVToolNix

I have come across a strange problem when remuxing Opus audio stream from WebM to another container like ogg or opus. Running the output files through a spectrum analyzer clearly shows that there is ...
alexitx's user avatar
  • 321
11 votes
1 answer
6k views

Combine/concatenate multiple MP4 files, making each file into a chapter

I am looking to use handbrake to combine 43 short mp4 files into one larger file. However, I want to ensure that the start of each file is recognized as a chapter. I'd be using vlc to play the file.
Phil Hobrla's user avatar
10 votes
1 answer
4k views

How can I compress video by taking advantage of its static content?

I have an HD video that is a presentation, so it consists mostly of still images. It's a 50 minute, 200MB MP4 file, downloaded from YouTube. Is there a way to take advantage of the static nature of ...
Mark Evans's user avatar
9 votes
0 answers
4k views

Injecting 360 video metadata with ffmpeg

I'm working on a library that injects/embeds/writes metadata into a .mp4 file to allow the video to be displayed correctly as a 360 video. The input file is a standard .mp4 file in the equirectangular ...
TrueCP5's user avatar
  • 191
9 votes
0 answers
3k views

Trying to remove 1152 samples, but the queue is empty

I am streaming mp3 files,using this command : ffmpeg -re -i 'INPUT.mp3' -map_metadata -1 -map 0:0 URL I create a loop which stream files,and there is no problem with reviving stream,just from server ...
Mohammadhzp's user avatar
8 votes
1 answer
882 views

IE will not seek audio/webm file

I'm trying to create a WebM audio file that will play back and seek in all browsers using the HTML5 <audio> tag and MIME type audio/webm. I've found workarounds to get this to work in all ...
bunkowm's user avatar
  • 81
7 votes
0 answers
11k views

ffmpeg: "moov atom not found" on a seemingly valid file

GoPro cameras cut up video in 4GB MP4 files. Attempting to merge them with ffmpeg 4.4.1 like so: ls GH017642.MP4 GH027642.MP4 | while read line; do echo "file '$line'"; done | ffmpeg -...
Richlv's user avatar
  • 363
7 votes
1 answer
4k views

How to copy unsupported data streams with ffmpeg?

Briefing I have some .wmv files (actually, my full batch file deals with multiple filetypes) with weird data streams that are needed for an external program to recognize them. I'm trying to remove ...
Fabio Freitas's user avatar
7 votes
0 answers
14k views

How to utilize all cores on high-end CPUs using ffmpeg

I have a high-end HPE ProLiant DL325 G10 server with an AMD EPYC 7401P 24-core/48-thread CPU, 128GB DDR4 RAM, and a Intel P4800x PCIe NVMe. I tried to run ffmpeg to convert a video (MKV) to MP4 for ...
Aco Strkalj's user avatar
6 votes
0 answers
216 views

How to correct Hindi text rendering when using FFmpeg?

I have a FFmpeg script to add some Hindi text to the MP4 video file. The FFmpeg command looks like this ffmpeg -i template_video.mp4 -filter_complex "drawtext=text='नमस्कार जी मैं हूँ':fontfile=...
Varun Raj's user avatar
  • 161
6 votes
0 answers
3k views

Android TCP error failed to resolve host name from static library

I'm using ffmpeg on android and i have encountered and error, that does not occur when i'm using the library on my linux VM. I'm using FFmpeg Static Builds, from here. I am using the stable 3.1.5 ...
David Barishev's user avatar
6 votes
1 answer
3k views

Convert png sequence to x264 with ffmpeg

I am trying to convert a series of pngs into an mp4 video. I am using ffmpeg, and want to encode the video with the H.264 codec. Using the command ffmpeg -y -r 30 -b 1800k -i _tmp%04d.png -vcodec ...
apdnu's user avatar
  • 161
6 votes
0 answers
8k views

Stream video with FFMPEG, "Output file does not contain any stream"

I would like to stream an H.264 encoded elementary stream wrapped in RTP headers to a port using FFMPEG. I have tried the following command lines to no avail... ffmpeg -i 1080p_1.h264 -f rtp -vcodec ...
Steve Mead's user avatar
5 votes
0 answers
491 views

It is possible to use QTGMC deinterlacing with FFmpeg?

I'am using the media-autobuild_suite (on Windows). This tutorial describes how to install and use QTGMC with AviSynth+. My question is can one use FFmpeg only to deinterlace video files with QTGMC? ...
Su-47's user avatar
  • 127
5 votes
0 answers
4k views

Using ffmpeg, is it possible to convert a blu-ray folder to a MKV file and add chapter titles in one go?

From time to time, I have to convert the files which are referenced by a playlist from a blu-ray disc to a MKV file. I normally use ffmpeg under Windows in a command line like the following: "C:\...
Binarus's user avatar
  • 1,835
5 votes
0 answers
268 views

Access microphone with gphoto2

There is a lot of documentation for using gphoto2 to use a DSRL as a webcam. With those techniques, the system sees the camera as a new video device gphoto2 --stdout --capture-movie | ffmpeg -i - -...
azmeuk's user avatar
  • 201
5 votes
0 answers
3k 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)...
Oskar Sharipov's user avatar
5 votes
0 answers
2k views

Extract Mime Type codecs for MediaSource using FFprobe

I have to extract the codecs e.g. 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' for the MediaSource API. How can I do this strictly with FFprobe/FFmpeg tools? Do not suggest other tools please.
Fr3ddyDev's user avatar
  • 305
5 votes
1 answer
3k views

How To Stop Cmd Window From Scrolling Down Automatically

I'm making a batch file that runs some ffmpeg commands. When ffmpeg is encoding, it shows you the progress of the encode, updating it every second or so. The problem is that sometimes I want to ...
Supercreature's user avatar
5 votes
0 answers
2k views

How to copy not recognized streams on conversion with FFmpeg?

I am trying to compress some Videos using FFmpeg, that contain multiple streams, some of them not recognized by FFmpeg: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GX010686.MP4': Metadata: ...
LukeLR's user avatar
  • 1,541
5 votes
1 answer
6k views

ffmpeg meets unknown timestamps error

I use ffmpeg concat to merge multiple ts files, I use following command ffmpeg -y -f concat -i filelist.txt -c copy output.mkv all ts files' path is put in filelist.txt, most of time it runs well, ...
J1B's user avatar
  • 115
5 votes
0 answers
1k 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 ...
JFK's user avatar
  • 51
5 votes
1 answer
8k views

Generating a video with FFmpeg starting from a sequence of PNG snapshot creates black video output

When I generate a video starting from a sequence of PNG snapshots, the output video is black. Here is a minimal working example: I generate the video from these two frames with the following command ...
Micha's user avatar
  • 161
5 votes
0 answers
602 views

ffmpeg concat transition of images

I would like to make transitions via concat with ffmpeg for a slideshow. In my case the number of images is often changing. Is there a way to use concat to set the transition or can i define a ...
Deex's user avatar
  • 175
5 votes
0 answers
2k views

How to make FFmpeg wait for input

I have a program which saves game play in a file. I want to run FFmpeg and give the file as input for live streaming. Below is how I use FFmpeg to stream the video file. %ffmpeg% -re -i %fileloc%%...
Mher Didaryan's user avatar
5 votes
0 answers
11k views

How to know which framerate should I use to capture webcam with ffmpeg?

I'm capturing video from my webcam with the following command: ffmpeg -r 30 -f v4l2 -video_size 160x120 -i /dev/video0 output.avi The -r option indicate the framerate I want. However, it's not that ...
chocopoche's user avatar
5 votes
0 answers
5k views

What ffmpeg command line matches the one YouTube uses?

I am trying to use the same command line YouTube uses for quality etc. in H.264/MP4 containers. I have been working on converting videos into multiple formats, scales, sizes and adjusting the bit ...
C0nw0nk's user avatar
  • 589
5 votes
0 answers
3k views

FFmpeg mp3 file header restore

I got mp3 files without headers, ffmpeg -i shows: . . . [mp3 @ 003e9700] Header missing . . . They sound well, but not in all players. So how can I restore header info or re-pack file without re-...
rook's user avatar
  • 193
5 votes
0 answers
3k views

ffmpeg speed up video but keep same quality

I made a timelapse out of an image sequence using ffmpeg and the copy codec to disable compression and keep the quality to a max. The timelapse is a bit too long (10 minutes and up) so I tried to use ...
Nicolas Martel's user avatar
5 votes
0 answers
910 views

Adding audio to video being created with image2pipe option

I am creating a video in mp4 format from a sequence of images and an MP3 audio file. For performance reasons I switched from image2 option to image2pipe option and now video is creating OK but without ...
Flot2011's user avatar
  • 413
5 votes
0 answers
2k views

How to properly concaternate two audio files together?

I ripped two Blu-rays and I'm trying to combine the audio from both into one file. I've decoded it from DTS-HD MA to Wave64, and I used avisynth to remove the black screen audio (4 seconds) from the ...
MarcusJ's user avatar
  • 2,125
5 votes
0 answers
2k views

Use FFMPEG for Video to Frames, then Frames to Video with Original Sound

Is there a way to use FFMPEG to decompose a video into individual image files, and then reassemble those image files into a video with the audio from the original video in sync with the new video ...
user1419674's user avatar
5 votes
1 answer
2k views

Is there a way to make FFmpeg seek faster to an end of file on a network share?

I'm using ffmpeg to generate image previews from flv videos. The OS is Debian 5 and it's the apt version of ffmpeg. The flv files are located on a NAS share that is mounted as NFS. Getting the ...
Vasil's user avatar
  • 151
4 votes
0 answers
5k views

how to fix mp4 file with missing moov atom?

I have a video file (mp4) and I want to load it in a video editor. However, it shows an error which says, "file format not recognized." So, I used the file command and the output is just ...
binary10's user avatar
4 votes
1 answer
5k views

Cut off from beginning to key frame using FFMPEG

How to cut away a piece at the start of video from beginning to the next key frame? I know the -ss option ffmpeg -y -noaccurate_seek -ss 00:00:30 -i "%%~ni.mp4" -avoid_negative_ts make_zero -...
Paul's user avatar
  • 944
4 votes
0 answers
1k views

How do I make FFPLAY automatically skip ahead while playing a stream without distorting audio?

I've been a long time lurker, but now I've gone and made an account. Like I said in the title, I want to play an SRT stream with FFPLAY, but whenever a drop in the connection happens, I need it to ...
Build's user avatar
  • 41
4 votes
0 answers
935 views

How do I create a lossless screencast using Fedora and Wayland?

Environment: Fedora 34, 5.12.13-300.fc34.x86_64 FFMPEG 4.4-4.fc34 GNOME 40.1.0 What I am trying to do: Create a lossless screencast file (video only, audio not required) that can be used as a source ...
John W's user avatar
  • 43
4 votes
0 answers
759 views

Change the speed of subtitles in an srt file

I have a set of videos that were recorded at 25 fps. That was the original speed of the video and I want to keep it that way. The video and audio work fine. I have a corresponding set of subtitle ...
farnsy's user avatar
  • 141
4 votes
0 answers
3k views

How to find dropped/duplicated frames in a video file?

I have some videos files where a few frames were missing. I can verify that by playing it in a video player and advance frame-by-frame, or by extracting all frames with ffpeg then check the output ...
phuclv's user avatar
  • 28.3k
4 votes
0 answers
640 views

Reset metadata for a specific stream only

In my usecase I'd like to recode audio streams into a different format with ffmpeg. The source files (MKV) contain a video stream, two audio streams and three subtitle streams as well as chapters. ...
Alex's user avatar
  • 41
4 votes
0 answers
7k views

Error splitting the input into NAL units, corrupt video?

I am trying to play this video I downloaded it via youtube-dl. $ youtube-dl --verbose -c -f 22 SYahi3XFEa4 [debug] System config: [] [debug] User config: [u'-f', u'bestvideo[height<=720]+bestaudio/...
shirish's user avatar
  • 469
4 votes
0 answers
157 views

Is it possible to find piece of audio inside of mp3 file?

We have a community radio and we are recording all shows 24/7. And we are wondering is there any way to automatically trim those recordings so that all commercials and unwanted parts are cutted off ...
Godspeed's user avatar
4 votes
0 answers
6k views

How do I continuously stream multiple .mp4 files with ffmpeg to an rtmp server?

I am an Software Engineering trainee and I need to make a video stream that continuously streams several videos on repeat. I have made an rtmp server using nginx and their rtmp module and as ...
JDMB 's user avatar
  • 41
4 votes
0 answers
376 views

Hindi matra misplaced in subtitles burned with ffmpeg

When trying to burn in subtitles, I get incorrectly shaped subs, when the text should have actually read कहानियों के बारे में The command was ffmpeg -i ~/in.mp4 -y -vf subtitles=~/hindi.srt:...
Pranay's user avatar
  • 41
4 votes
0 answers
10k views

How to use libx264 ffmpeg in conda environment?

I tried to convert an avi video file into an h264 processed mp4 file, but I ran into the following error: $ ffmpeg -i sa1-video-fram1.avi -c:v libx264 -crf 19 -c:a libfdk_aac -b:a 192k -ac 2 out.mp4 ...
Jay Xiong's user avatar
4 votes
0 answers
2k views

Strip x264 copyright information during ffmpeg copy

I am trying to remove the copyright string from the generated mp4 file using ffmpeg (copyright string is already present in avi file). I have an input avi which I'd like to make 'streamable' and ...
malat's user avatar
  • 1,309
4 votes
0 answers
7k views

How to remap channels of AC3 stream within .mkv or .mp4? (ffmpeg, 3f2m/lfe - > 3f2r/lfe)

So this is my problem, I've backed up quite a number of DVDs and a few Blu-Ray discs to .mkv files for archival purposes, and for my plex server. I used: x264 for video ac3 for audio (for ...
Vlad's user avatar
  • 41
4 votes
0 answers
3k views

Send cookie with ffmpeg input

I currently have a cookie.txt file that looks like this. # Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This is a generated file! Do not edit. .youtube.com TRUE / ...
nadermx's user avatar
  • 795
4 votes
0 answers
2k views

Time of extracted frame from video using FFMPEG

I'm using the command ffmpeg -i video.webm -vf fps=1 thumb%04d.jpg to get one frame every second. However, I cannot figure out way to get the exact timestamp of an extracted frame. I need that ...
user929951's user avatar
4 votes
0 answers
2k views

How do I extract a QuickTime text track using FFMPEG?

I have a .mov container with a QuickTime text track which QuickTime uses to display chapter markers. In the QuickTime 7 Pro User's Guide, the description for how to do this is in Editing and Authoring ...
watkipet's user avatar
  • 425

1
2 3 4 5
60