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
125 views

What's the ffmpeg command to extract PPM files from an existing video?

What's the ffmpeg command to extract PPM (or Portable Pix Map) files from an existing video? Like the reverse of this https://askubuntu.com/questions/971119/convert-a-sequence-of-ppm-images-to-avi-...
0
votes
0answers
42 views
+50

Sampling and using afftdn with ffmpeg - how with complex filters?

I'm merging together a bunch of videos (30 so far) into a "Brady Bunch" style amalgam using ffmpeg, and I've got that working reasonably well. The last big problem is the background noise. ...
0
votes
1answer
15 views

Same filter in different chains

I want to split input video, scale each stream using different parameters and add subtitles to each output, using the same parameters. I can do it repeating subtitles filter in each chain, can I avoid ...
47
votes
3answers
103k views

Add an image overlay in front of video using ffmpeg

I have many videos and I need to put an image in front of them for about 5 seconds, but adding it manually and rendering it each time would take really long, so I am asking if it is possible to do so ...
0
votes
1answer
43 views
+50

ffmpeg - resizing .mp4 changes the timebase (tbn & tbc)

I have been trying to write a script to merge multiple .mp4 videos using ffmpeg. As part of this process, while trying to alter the size found that it alters the timebase. However, for ffmpeg - concat ...
1
vote
1answer
2k views

ffmpeg rtsp over http not working

I put this conf on ffserver HTTPPort 1234 RTSPPort 1235 <Stream live.h264> Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 24 VideoBitRate 100 VideoSize 480x272 AVOptionVideo flags ...
0
votes
0answers
12 views

Remove silence from video (stay synced + audio fading (if possible))

Goal: Remove silent parts from video (while complying with the constraints below) Constraints: Keep audio and video in sync. Don't remove silent parts smaller than x seconds. nice2have: treat sound ...
0
votes
1answer
61 views

Two videos on image background

I am sort of new to this. I am trying to create an output video using two videos and a background image. With a bit of gap around the videos and Video A having a larger scale than Video B. And, it ...
1
vote
1answer
31 views

Setting points and doing a quick “snip”, dynamically playing the video

I need to cut out "best moments" from 1hour videos.(up to 6 moments per video) What software is able to set in/out marks and save marked periods with keyboard shortcuts while watching the ...
0
votes
0answers
12 views

FFMPEG not producing valid DASH manifest for dash.js but working with SHAKA player

I am trying to get dash.js working as a player within a browser, I'm sure I have had working before but for some reason it is no longer working, I was going to raise a post on dash.js issue log but ...
0
votes
1answer
49 views

FFMPEG - Creating script to convert a video into audio file (or anything related really) + diverses questions

Good day everyone. Im making my babysteps into ffmpeg, and so far this tool has been really helpfull. Anyway. Im currently using this line as a convertion basis : ffmpeg -i name.mov -c:v libx264 ...
0
votes
0answers
11 views

Can I directly get H.264 and MP2 or MP3 from a C930e webcam?

I start the audio streaming with: ffmpeg \ -f alsa -i hw:1,0 -acodec mp2 -b:a 128k http://127.0.0.1:8090/wallaudio.ffm and I can see that it will encode the PCM S16LE to MP2: Stream mapping: ...
0
votes
1answer
874 views

How to cut and merge mp4 video segments without re-encoding?

I have some screencast video files in mp4 container (h.264/mp3 codecs) that I want at times merge (i.e. C.mp4 = A.mp4+B.mp4) or at times cut removing some intervals (e.g. D.mp4 = A.mp4[0,320{seconds}]...
0
votes
1answer
35 views

Frame-accurate cuts with ffmpeg for 29.97 fps

I want to cut a video into many segments and then stitch them back together. To account for videos that have a framerate of 29.97 I cut them into 100-second videos via ffmpeg -ss 0 -t 100 which works ...
0
votes
2answers
14 views

Importing uncompressed video into Final Cut Pro without (too much) transcoding

I have recently digitized a VHS tape using VirtualDub. Here is the MediaInfo of the original file. General Complete name : capture.avi Format ...
0
votes
0answers
26 views

PTS: Format to S:MSS

I'm using ffmpeg in a bash script to have a timer overlay in the video: fps=30 seconds=5.53; lowerFont=30; fpath="./input.mp4"; ffmpeg -y -i "$fpath" \ -c:v libx264 -r $fps -t $...
0
votes
1answer
44 views

How can I put a VP9 video stream into a QuickTime/MOV container?

FFmpeg has no trouble putting all sorts of weird video codecs into QuickTime/MOV containers, including utvideo, hap, snow, ffv1, and cinepak. This makes sense, as it is my understanding that the MOV ...
1
vote
1answer
366 views

ffmpeg rtmp server connection issues

I am trying to stream using ffmpeg rtmp using, ffmpeg -i out2.mp4 -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 -f flv rtmp://localhost/live The process starts but nothing is happening after ...
0
votes
1answer
810 views

YUV to RGB/sRGB color space conversion using ffmpeg

How to convert an mp4 file with YUV color space to RGB or sRGB color space using ffmpeg? I am trying to upload my video to YouTube and I read somewhere that RGB video looks better than YUV one. Thanks....
0
votes
1answer
371 views

I need to modify a movie's displayed subtitles and display as an image overlay

I'm kind of at a loss on how to do this. I have access to gimp/inkscape/ffmpeg/vlc, and I can download font styles as needed off the web. So I have a movie. I play the movie in vlc player, I display ...
0
votes
0answers
11 views

ovelays not embedding properly and no audio

I have a bunch of small mp4 files (without audio), and an mp3 audio file. Using the concat protocol, I concatenated them with -shortest flag ffmpeg -f concat -safe 0 -i "list.txt" -i ".....
0
votes
2answers
269 views

How can I remove ENCODE İNFORMATİON from mediainfo for H265 HEVC .mkv?

I want to know how I can remove encode settings from the mediainfo with mkvpropedit or ffmpeg? İn this post: Removing MP4 encoding information I found this command: ffmpeg -i INPUT -c copy -bitexact -...
0
votes
1answer
80 views

ffmpeg - Slow down video and loop/repeat audio

I am trying to use ffmpeg to slow down a video speed by 25% (75% speed) without changing the audio speed. ffmpeg -i input_video.mkv -filter:v "setpts=1.3*PTS" "SlowVideo25.mp4" On ...
8
votes
3answers
2k views

How do the super resolution filters in FFmpeg work?

I need to incorporate a small amount of 1080p HD shots in a 2160p 4K composition. I'm not impressed by default upscaling techniques like lanczos/bicubic/trilinear; it seems like my television does a ...
0
votes
0answers
12 views

Move videos audio track few miliseconds further

My videorecorder made audio out of sync few miliseconds. Is there any way how I can fix all the footages in my timeline in Final Cut pro ? If not, maybe I can use ffmpeg to fix them at once somehow ? ...
0
votes
0answers
6 views

How can delay images input in ffmpeg

I'm adding pictures to the video to form an animation. And the animation needs to start with a delay. ffmpeg -i a.mp4 -t 7 -r 25 -itsoffset 3 -stream_loop 1 -i %d.png -filter_complex "[0:v][1:v]...
0
votes
2answers
6k views

Convert HLS stream to fixed FPS mp4

I am using ffmpeg to convert an HLS stream to mp4 using this command: ffmpeg -i https://example.com/xxx.m3u8 -y -vcodec copy -c copy -bsf:a aac_adtstoasc test.mp4 I only have access to this video ...
0
votes
1answer
30 views

FFmpeg on windows cut and fade question

so i am using the following code to in a windows .BAT file to cut up a video at X time: bin\ffmpeg -hide_banner -loglevel 0 -i "%video%" -c copy -map 0 -f segment -segment_time %...
0
votes
1answer
8 views

Compiling x264 in MinGW

I'm trying to do a minimal build of ffmpeg in MinGW including x264. For some reason the x264 package depends on ffms2 which depends on ffmpeg which itself has a huge list of dependencies. I will try ...
0
votes
1answer
198 views

Final Cut output to FFmpeg workflow

If I use Apple Compressor, I could just 'Send to Compressor', without first exporting a ProRes master. However, I would like to use FFmpeg/x264 for better quality (at low bitrate). Do I have to ...
0
votes
1answer
217 views

Change the timecode with ffmpeg in the middle of the track?

I know you can change the timecode of a file with FFmpeg with the option –timecode. This modifies the whole timecode of the file starting from the -timecode added. Can you change the timecode with ...
262
votes
1answer
337k views

How can I crop a video with ffmpeg?

I have an MP4 file of a screen recording that I need to crop down. How can I accomplish this without using expensive tools like Adobe Premier or Final Cut? I prefer ffmpeg because I have used it ...
0
votes
1answer
15 views

ffmpeg convert 1 jpeg frame to 10 sec video

I have a 952x600 jpeg image, generated by a PHP script. I want to create another PHP script that uses ffmpeg, which converts that jpeg image to a mp4 video, which has only 1 frame that lasts for 10 ...
0
votes
1answer
69 views

Removing streams in HEVC H.265 MKV file?

I have multiple MKV files with video encoded a la HEVC/H.265. I want to, using the Windows command line, make a new MKV file, stripping out all but specific subtitle tracks and audio tracks, on a ...
0
votes
1answer
517 views

How to map streams to specific output streamIDs

I'm trying to map specific streams to specific output indexes. The command I'm using is more complex but it can be reduced to this simple example ffmpeg -i input.mkv -y -map 0:0 -c:5 copy -f mp4 out....
2
votes
1answer
4k views

How to convert encrypted mpeg dash created with Bento4 mp4-dash.py to MP4

I have MPEG dash video files created with Bento4 mp4-dash.py. The files have encription, but I have the MPD and the audio and video segments. I am trying to get my original MP4 file back from those ...
0
votes
0answers
9 views

Add splashscreen before video

I have: splash.png having the same size as video resolution video.mp4 in 60 fps already encoded via -vcodec h264 -crf 23 -acodec copy I want to prepend (not overlay) video video.mp4 with ...
1
vote
1answer
686 views

ffmpeg: Why did my capture speed drop? (can no longer capture using same command)

I've been using the following command to capture video with ffmpeg for the past two months using my Blackmagic Intensity Pro 4K capture card: ffmpeg -bm_v210 1 -rtbufsize 1500M -threads 4 -f decklink ...
1
vote
1answer
519 views

FFmpeg : Desktop Recording for YouTube

I was reading YouTube Help Recommended upload encoding settings page, and I found this command from a site Youtube recommended encoding settings for FFmpeg. ffmpeg -f gdigrab -framerate 60 -i desktop ...
0
votes
0answers
7 views

FFMPEG Incorrect Video Duration After Convertion

I have a 10 second video which after converting to mp4 using FFMPEG the iamge is frozen and the duration is 3 hour and 3 minutes long. Using MediaInfo the video is detected a 10 seconds long. using ...
1
vote
1answer
130 views

FFmpeg Batch encoding error: CRF/CQP is incompatible with 2pass

I am trying to create a batch file with 2 passes. Pass 1 scales the video. Pass 2 pads a border around it. They both work separately but will not work together. Pass 1: @echo off REM Scale video to ...
0
votes
2answers
284 views

Error:-[libx264 @ 000001fa2ffdd080] height not divisible by 2 (244x207)

I was looking to put an audio visualiser filter on my podcast file(mp3)and got the necessary code from here.But on running the code,the terminal gave an error"height not divisible by 2".I tried my ...
0
votes
1answer
488 views

How to split,reverse and concatenate video using single command in FFMPEG?

i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take ...
0
votes
1answer
315 views

FFMPEG - How to use crop, scale and overlay all in one go?

Any ideas on the proper syntax to get crop to work with resizing and overlay all in one go? The crop parameters are crop=1728:970:96:54 and I'm trying to work them into: ffmpeg -loop 1 -i ...
1
vote
1answer
54 views

x264 Downsides of a high CRF (22) intermediary codec between conversions instead of lossless

I have a huge collection of video files that are in the range of CRF 16-20 taking up TB's of space. The only need I have for these originals is that I have to encode them from time to time but the CRF ...
1
vote
1answer
14 views

Black fontcolor being transparent in drawtext in ffmpeg

I am using the command below to drawtext with rotation. This works but when set fontcolor=black It becomes transparent color. I am not understanding the reason. ffmpeg -i input.mp4 -filter_complex &...
0
votes
1answer
17 views

Converting h265 video to h264 with ffmpeg results in glitchy visuals with Chromecast

I'm having a lot of trouble casting a specific file on my Chromecast. At first it was because it was encoded with H265, which is not supported by my Chromecast device (2nd gen). I tried changing its ...
0
votes
0answers
29 views

Streamable Container for gstreamer with ngnix / RTSP on jetson nano

Im working on this project : https://www.hackster.io/jonmendenhall/jetson-nano-search-and-rescue-ai-uav-9ca547 At  some point I will need to mount my camera (waveshare ; IMX219-77IR) on  top of the ...
3
votes
2answers
7k views

How to work with R3D and RMD files? FFMPEG?

I am getting collections of files of the types A0123-random-name.RMD A0123-random-name.R3D Googling tells me R3D is a raw RED file and RMD is Red Meta Data - data about the processing to be applied. ...
1
vote
2answers
1k views

Why does FFmpeg's stream_loop option add a pause?

I have tested several files with the added option -fflags +genpts -stream_loop -1 to make them loop, but all have a slight pause just before they loop (250 ms or so). The loop filter does not have ...

1
2 3 4 5
34