All Questions
2,683
questions
0
votes
0
answers
13
views
How do you create an ffmpeg lossless image without re-encoding?
I'm using the command below but not sure if it’s really lossless and without re-encoding? Is there specific command to create lossless image and without re-encoding? I'm new to this.
ffmpeg -lavfi &...
1
vote
0
answers
18
views
Is there a way to use Intel QSV to have hwaccelerated tone mapping in ffmpeg?
Currently I am trying ffmpeg -hwaccel qsv -hwaccel_output_format qsv -i "Z://Movies/Luca/Luca.mkv" -vf 'hwdownload,format=p010,zscale=transfer=linear,tonemap=hable,zscale=transfer=bt709,...
0
votes
0
answers
11
views
Avidemux loads vertical video in horizontal orientation
I have recorded a video while holding phone vertically. It opens vertically on phone, as well as on PC, in VLC. However, when I load it in Avidemux it rotates the video to horizontal aspect rate.
I ...
0
votes
0
answers
37
views
How do I prevent an extended frame when suspending and resuming an ffmpeg process?
I have a c# application where I have control of an ffmpeg (https://www.ffmpeg.org/) process. I am using it to capture video and audio, either from desktop or webcam. I am using code similar to the ...
2
votes
1
answer
106
views
What a correct playlist.m3u8 should contain, or should look like?
24/06/2024: [Presentation of the problem]
I had dowloaded some videos from the Internet, few years ago.
I obtained many files:
a series of files in .ts
a single file playlist.m3u8
In my example:
A ...
0
votes
1
answer
58
views
How to solve a final pb when merging a series of .ts file with concat command of FFmpeg?
I had dowloaded some videos from the Internet, feaw years ago…
I obtained many files: a series of files in .ts
In my example: a series of 306 files named from segment1_4_av.ts to segment306_4_av.ts
A ...
0
votes
1
answer
61
views
To cut and download part of video from vk.com
I try to cut and download part of an online video from vk.com, using yt-dlp and ffmpeg, in one step.
I tried
ffmpeg $(yt-dlp -g 'https://vk.com/video302700968_456241462' | sed 's/^/-ss 05:00 -i /') -...
0
votes
0
answers
34
views
Video width&height is horizontal but video frames are vertical. How to fix it with ffmpeg?
I have a video, that when checked with ffmpeg/ffprobe shows a horizontal aspect ratio.
ffprobe.exe my_video.mp4 -show_streams -of json
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_video.mp4':
...
0
votes
2
answers
96
views
Removing a segment from the middle in ffmpeg
Say I want to remove the part between second 60 and the second 200:
file video
outpoint 60
file video
inpoint 200
then running the ffmpeg concat command:
ffmpeg -f concat -i input.txt -c copy output....
1
vote
0
answers
56
views
How can I remove every nth frame from raw video using ffmpeg?
I have many cine films that have been digitally converted. They have been converted as a 25 fps with 2 frames in every 23 duplicated. I need to remove the duplicated frames using a bitstream filter so ...
1
vote
0
answers
90
views
Trimming a video using FFmpeg leads to black screen
I try to figure out how to use FFmpeg to trim videos. I have created a 30 second .mov screen capture using Apple's QuickTime player, and then tried to trim it using three different ways:
Using -...
1
vote
0
answers
65
views
Take Screenshot/snapshot from .ts file
I need to take a screenshot/snapshot from .ts files.
Currently using the command:
ffmpeg -ss 00:06:05.6710000 -i input.ts -frames:v 1 -q:v 1 output.jpeg
This works fine for .mp4 files, but for .ts ...
1
vote
0
answers
44
views
Ffmpeg webm YouTube settings command
Is there a .webm still image command in ffmpeg that is best compatible with YouTube I’m currently using:
ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune ...
0
votes
0
answers
8
views
ffmpeg does not exit when pipe is closed? [migrated]
If this has already been brought up, I apologize. This is part of a software tuner package I am writing as a POC. It is used by Plex Media Server. For the most part, it works with good picture quality ...
0
votes
0
answers
38
views
av1_vaapi ffmpeg throws error on last frame of video
I've been using ffmpeg and vaapi to transcode video files, it has been working great except for one group of video which has been throwing the error
[vf#0:0 @ 0x5d37f5dd6dc0] Reconfiguring filter ...
0
votes
0
answers
34
views
ffmpeg command to combine mp3 file and embedded album art image file metadata into a video
my below ffmpeg command works for combining 1 audio file with 1 image file into a video.
ffmpeg
-loop 1
-framerate 2 -i "C:\Users\marti\Videos\ig_sf_6.5.24_highlights\apple image.jpg"
-i ...
1
vote
1
answer
170
views
Cutting a part from a video: Should '-ss' be before 'i' or after?
Let's say I need to remove everything but the second minute from a video.
I can do this, for example, in the following way:
ffmpeg -copyts -ss <start> -i input.mp4 -to <end> -c:v libx264 -...
0
votes
0
answers
34
views
How to create a compatible encoding for the Blackmagic Media Express application using ffmpeg
I'm using the Blackmagic Media Express application frequently but now I'm stuck trying to transcode files using ffmpeg that will be able to play in the BME app. It seems that the BME application is ...
5
votes
1
answer
292
views
Ffmpeg: concatenate videos and keep framerate the same
I have the following command cobbled together so far:
ffmpeg -i input.mp4 -filter_complex "\
[0:v]trim=start=175.2:end=200.9,setpts=PTS-STARTPTS[v1]; \
[0:a]atrim=start=175.2:end=200.9,...
0
votes
0
answers
44
views
Using x265-params with ffmpeg does not impact file size nor quality
I am using the following line in Python to compress videos into h265 (in Google Colab).
!ffmpeg -v error -nostats -hwaccel_output_format cuda -i "$input_folder/{filename}" -metadata comment=&...
1
vote
1
answer
51
views
why don't work old batch ffmpeg extraestereo command in new version?
I use this batch command for years in ffmpeg, but from update to the last version don't work and don't see in documentation whats the problem.
ffmpeg -i C:\Pelis\video.mkv -vcodec copy -map 0:a -map 0:...
0
votes
0
answers
74
views
FFMPEG HEVC NVENC (yuv420)p10le at 800Mbps not encoding
I'm working on a large immersive project where the clients have requested H.265 media at 800Mbps (requires level 6.2). Due to the hardware used (I believe it's AvoLites based) for playback media ...
1
vote
0
answers
53
views
Cannot detect iPhone using FFmpeg avfoundation
I want to programmatically record the screen of an iPhone through the CLI. I have my iPhone 13 running iOS 17.5.1 connected to a Mac running macOS 14.5.
I can see it connects in Xcode and I can record ...
1
vote
0
answers
85
views
FFmpeg Screen Recording Clock Out of Sync with Real Time
I'm using FFmpeg to record a virtual X11 screen in automated tests. I've added a timestamp to the video to align it with log file times, but the clock in the video becomes out of sync with real time ...
1
vote
1
answer
91
views
FFMPEG - Set custom PTS on mp4 file
I have an ffmpeg command setting custom pts on an input video.
It works fine for .mkv file but not on .mp4 file.
When running the following command on an mp4 file, most of frames are dropped. ...
1
vote
0
answers
60
views
ffmpeg concat rotates MP4 videos
I have some MP4 video files that were created with a cell phone. Some of them were taken in landscape, others not. It happens that by concatenating them using ffmpeg the ones that are not landscape ...
1
vote
0
answers
61
views
How can I get exact frame count when export video to image?
When using labling tools, the count frame count by duration*fps, but for ffmpeg export, I get different frame count.
e.g.
Metadata:
major_brand : isom
minor_version : 512
...
0
votes
0
answers
50
views
Rotating WMV videos without reencoding
I'm open to any tool, but I know that ffmpeg can do this for .mp4 files. Also tools like exiftool. I have tried something like this:
ffmpeg -i LEFT_OUTBOARD.wmv -c copy -metadata:s:v:0 rotate=180 tmp....
1
vote
0
answers
84
views
D3D11 hardware screen recording with ffmpeg using Intel H264 QSV hardware encoding
I'm trying to screen record using ffmpeg and having it all done via hardware on my Intel integrated graphics.
Specs
For reference, here are my specs:
Windows 11 Pro Version 10.0.22631 Build 22631
...
0
votes
0
answers
62
views
Split Videos using File Size in ffmpeg
How do I split videos by file size using ffmpeg? For example, I have a 1.92GB video and I want to split it into 200MB videos. There are two ways how I want to split them:
Losslessly by using the -c ...
0
votes
0
answers
19
views
FFmpeg fps detection bug?
I have ffmpeg setup which produces rtmp stream from remote rtsp stream. The rtsp stream comes from ip camera which support multiple profiles. Each profile has 1080p 30 fps, 1080p 15 fps.
The weird ...
1
vote
0
answers
33
views
VMAF Quality Loss when applying bicubic interpolation to a video when upscaling with ffmpeg
First of all, I'm a bit of a beginner to this specific topic therefore any advice would be greatly appreciated!
For a project that I've currently been working on, I've been essentially trying to ...
2
votes
1
answer
107
views
Difference between crf and cq settings in ffmpeg
What is the difference between -crf and -cq parameters of ffmpeg? I am trying to compress 1080p h264 videos into 1080p h265 videos with high quality and low size. I have noticed that in some guides ...
0
votes
1
answer
43
views
FFMPEG cant render from transparent webm a transparent png frame
I want export every frame like original source, in webm video is alpha/transparent video track, and if I try export with my base command will export with black background.
ffmpeg \
-hide_banner \
-...
0
votes
0
answers
56
views
Automatically synchronize two audio streams with ffmpeg
Say I have a video of a talk but the soundtrack is bad, and I happen to have an audio recording of the same talk made with a good mike. Is there a way, with ffmpeg, to replace the bad audio with the ...
0
votes
1
answer
64
views
How to convert videos of any format to MP4 and only take the first minute of the video
I'm working on a project, essentially a social media app for the traveler community. In this application, users can upload videos in any format, but I need to save them in MP4 format so that any ...
1
vote
2
answers
180
views
ffmpeg scale2ref with overlay complex filters returning audio only mp4 output
I am trying to find out why the result of using scale2ref with overlay complex filters is returning audio-only mp4 output.
ffmpeg -i input.mp4 -i watermark.png -filter_complex "[1][0]scale2ref=w=...
0
votes
0
answers
45
views
How to merge videos without overlap maintaining ratio 16:9 using ffmpeg
I have 2 videos in format 16:9. I need to merge together without any overlap and I need to keep final ratio 16:9 as well. One video need to be large (covering 80 % or more) and other has to be smaller ...
1
vote
1
answer
29
views
Seeking with ss dont seem to work in combination with VideoFilter
In FFMPEG I am using the following command to extract frames from a video:
ffmpeg -ss "00:47:13" -i "Video.webm" -vf select="gte(n, 90000)" -vframes 5000 "frames_%d....
1
vote
0
answers
38
views
How to add texts at specified timestamps (FFmpeg)
I have a video (input.mp4) file showing a series of cashier transactions. I would like to add a counter showing cumulative number of purchases.
I was able to add a running counter doing this:
ffmpeg -...
1
vote
0
answers
103
views
How to preserve contrast/highlights when converting ProRes HDR 10-bit to SDR using hevc_videotoolbox?
I'm trying to convert a 4K HDR 10-bit video clip to BT.709, preserving as much color as possible while allowing the clip to be played where HDR is not supported.
With the command below, the output is ...
1
vote
1
answer
88
views
FFMPeg: Rotate Image on centre of image
Im trying to overlay an image on at a position X,Y of video and then rotate it an arbitrary angle where x,y = 150,100
This however does not work as expected.
Below is the command I'm using.
ffmpeg -i ...
0
votes
0
answers
92
views
How do I write unique images to each video frames?
There are unique images for each frame of a video and I am trying to use ffmpeg to overlay the images back to source video to generate same source video metadata with overlayed image.
ffmpeg -i input....
0
votes
0
answers
163
views
Ffmpeg out of memory issues with filter_complex_script
I’m trying to do a "moving crop" on a video with ffmpeg, following this question: https://stackoverflow.com/questions/78314831/ffmpeg-dynamic-cropping-using-sendcmd-correct-syntax
I’m ...
0
votes
0
answers
47
views
How to stream integrated camera to Facebook using FFMpeg
I'm currently using this command to stream to Facebook:
ffmpeg -f dshow -i video="HD User Facing":audio="Varios micrófonos (Realtek(R) Audio)" -c:v h264 -pix_fmt yuv420p -r 30 -g ...
0
votes
1
answer
153
views
ffmpeg fetching PTS/DTS for data packets incorrectly
I have captured a transport stream through TSP command
Command: tsp -I ip port --source ip -O file stream_capture1.ts
then using ffprobe, below is the output which is capturing correct stream
Input #0,...
0
votes
0
answers
47
views
Why does FFmpeg encoding stall on Ubuntu with DVD video file?
I've encountered a challenging issue while using FFmpeg on Ubuntu to encode a DVD video file contained in a .bin format. Despite various attempts (also employing vlc or bounting converted .iso), ...
1
vote
0
answers
89
views
FFMPEG > The transcoded video contains insufficient number of frames
I am trying to transcode the videos (which I receive via the javascript media recorder in streaming mode by telephone) to use the VP9 codec
and also to resolve concerns about the duration of these ...
1
vote
1
answer
58
views
How can I detect which channels contain compressed audio in a video file by using command line tools?
I have an MXF file that contains 16 audio tracks. I know the first two tracks (stereo) contain Dolby E compressed video. Using MediaInfo (gui) it lists 16 audio streams with a mix of Dolby E and PCM ...
3
votes
1
answer
294
views
How to remove all subtitle channels except the first English one with FFmpeg?
I'm not very well versed on FFmpeg, and I've tried to do this many times myself, but I couldn't even figure out the syntax.. So I'm going to ask outwards to people much smarter than myself. I wish to ...