All Questions
518
questions
0
votes
0
answers
13
views
ffmpeg doesn't have access to qsv nor vulkan
I'm running gentoo, and I have media-libs/oneVPL-intel-gpu installed, and latest mesa drivers, and intel gmm, however, qsv refuses to transcode and gives me the following error everytime
ffmpeg -...
1
vote
1
answer
66
views
How to merge all mp3 files located in the same directory?
The command below used to work but stopped around ubuntu/kubuntu 20.04.
ls *.mp3 | sed -e "s/\(.*\)/file '\1'/" | ffmpeg -protocol_whitelist 'file,pipe' -f concat -i - -c copy output.mp3
...
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
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
1
answer
169
views
Install newest FFmpeg version on Ubuntu?
I cannot, for the life of me, figure out how to get a non-depreciated version of FFmpeg on an Ubuntu installed.
(Side note: I'm using crostini)
I tried following FFmpeg's docs on getting all the ...
1
vote
0
answers
96
views
ffmpeg extremely slow HEVC without any major changes in the system
I have the same dedicated NAS machine for a while now with AMD Ryzen 7 3700X 8-Core it's not the strongest but more than enough for my home NAS usage.
I also use the same machine to re-encode h264 and ...
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), ...
0
votes
0
answers
151
views
ffplay hwaccel mjpeg playback
TL;DR: How can I play MJPEG stream from my WebCAM/HDMI Capture device via FFPLAY with hardware acceleration on Ubuntu 22.04 ?
Long Description:
I have some cheap HDMI capture devices that can output ...
0
votes
2
answers
200
views
Adaptive streaming to rtsp relay
I have a camera at /dev/video4 under linux, and I want to stream this to a mediamtx server.
I am able to do that locally using ffmeg with the following command:
ffmpeg -re -i /dev/video4 -f rtsp -...
0
votes
1
answer
37
views
How to use ffmpeg speedup video specific time range in one line ffmpeg cli
I try following splited cli, they work well
ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=0:end=10,setpts=PTS/10[v1];[0:a]atrim=start=0:end=10,asetpts=PTS/10[a1]" -map &...
1
vote
1
answer
181
views
"-vf crop" doesn't work on FFMpeg hevc_nvenc
This command line downscales fine my 4k video:
$ ffmpeg -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input_video.mkv -vf scale_cuda=1920:1080:interp_algo=bicubic -c:v hevc_nvenc -preset slow -...
1
vote
0
answers
156
views
"-pix_fmt p010le" and "-pix_fmt yuv420p10le" doesn't work on FFMpeg hevc_nvenc
This command line works fine:
$ ffmpeg -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input_video.mkv -vf scale_cuda=720:404 -c:v hevc_nvenc -preset p7 -rc vbr -rc-lookahead 20 -b:v 2000k -...
0
votes
0
answers
286
views
FFmpeg: format error when trying to use hardware scale_npp filter
I have CUDA installed on Ubuntu 22.04LTS with NVidia Geforce graphic card. I am currently trying to capture the full desktop by running this command
ffmpeg -y -hide_banner \
-hwaccel cuda \
-f ...
0
votes
1
answer
1k
views
Constructing encoding statements using ffmpeg QSV and Intel ARC card
I purchased an Intel ARC A770 with the intent to test hardware encoding with AV1 and HEVC under Linux. Being newer to ffmpeg, I need help constructing ffmpeg statements to engage the Intel QSV ...
0
votes
0
answers
45
views
ffplay file.wav 18 audio channels
On Linux I have an 18 channel wav file that I can play with aplay or play(sox) without problems. The 18 channels are played well.
If I want to play it with ffplay I get this:
libavutil 56. 51....
1
vote
0
answers
8k
views
I would like to play 2 x 4k videos side by side on dual monitors on Linux using ffplay
I would like to use ffplay (if possible) to play 2 x 4k videos on different (dual) monitors connected to the same Linux (Ubuntu) machine. They are same videos (same in length, etc), just differ in ...
0
votes
0
answers
156
views
ffmpeg stream image flow to AWS S3
For a video monitoring solution, I want to push thumbnails of an incoming video (TS/UDP) to a S3 bucket from where those thumbnails are shown on a web page
Currently the following bash loop is working:...
1
vote
0
answers
2k
views
FFmpeg Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
I'm having trouble using FFmpeg to host an RTSP server for continuous video streaming. The command I'm using is:
ffmpeg -report -v verbose -re -stream_loop -1 -i store-aisle-detection.mp4 -c copy -f ...
0
votes
0
answers
65
views
Is it possible to use the signalstats YAVG filter in FFMPEG to control the gamma correction in a video?
I don't know if this is even possible, but something tells me it is… You see, I want to dynamically control the gamma correction in FFMPEG/FFPLAY depending on how bright/dark the frame being ...
0
votes
1
answer
198
views
How do I compile ffmpeg so that "-map_metadata -1" works.?
I just tried the (static) ffmpeg build from https://johnvansickle.com/ffmpeg/ and I also tried the ffmpeg build that comes with my Linux Mint 21.2 distro and they both were able to remove the metadata ...
1
vote
0
answers
158
views
Sending and receiving ffmpeg video stream through USB to TTL converter
I need to transfer video signal through USB to TTL converter from one VM and receive it on other USB to TTL converter then display the received stream on second VM (the bitrate on converters are ...
0
votes
0
answers
217
views
FFMPEG filter_complex overlays work well on windows but generates error on Linux and OSX
So, I am applying multiple overlays on a video using FFMPEG, on windows it always works fine for every size and number of overlays, but in case of MAC or Linux, it generates error for reinitializing ...
1
vote
0
answers
140
views
How to optimize this FFmpeg command to avoid server crash?
I'm running FFmpeg version 6.0.1 in Amazon Linux AMI 2023. I'm trying to concat multiple images from S3 bucket with different size and output it as mp4 using this command:
ffmpeg -protocol_whitelist ...
2
votes
1
answer
125
views
How do I use Linux Mint and ffmpeg software to stabilize a large video?
I made a video with openshot that is 7.3 GB. ffmpeg only stabilizes half the video. Is there a length limit of ffmpeg that is used? This is what I'm using:
ffmpeg -i video.mp4 -vf vidstabtransform,...
0
votes
0
answers
369
views
ffplay - How to display “pts_time=…” while playing the video?
I am a beginner in ffmpeg and need to know how to use ffplay in Linux to display the pts_time while the video is playing.
I'm interested in seeing the pts_time of each frame. So I can check if the ...
2
votes
2
answers
705
views
How can I setup ffmpeg to continuously produce 1 second videos from piped jpgs?
I am using ffmpeg on Ubuntu 22.04 to create 1 second mp4 videos from piped jpgs. The only issue that I have is that ffmpeg stops executing after the first set of jpgs is piped in. I need ffmpeg to ...
1
vote
0
answers
292
views
Cannot compile ffmpeg for arm64 on Debian bookworm
The title speaks for itself. Here's the log:
$ sudo dpkg --add-architecture arm64
$ sudo apt build-dep -a arm64 ffmpeg
Reading package lists... Done
Reading package lists... Done
Building dependency ...
0
votes
0
answers
304
views
ffmpeg mpegts udp stream unexpectedly producing dramatically increased packet rate
I am using an ffmpeg 3.4.5 process to stream MPEG-TS video from a computer's screen to a recorder. The recorder effectively captures network traffic (like a promiscuous wireshark) and produces a .cap ...
1
vote
0
answers
758
views
Generate a video with an image every 5 seconds using ffmpeg
I want to create a video from command line with some images like those:
-rw-r--r-- 1 dt dt 3360622 Sep 4 23:57 IMG_0670.jpg
-rw-r--r-- 1 dt dt 2949398 Sep 4 23:57 IMG_0671.jpg
-rw-r--r-- 1 ...
1
vote
0
answers
338
views
How to add multiple audio and subtitle tracks to video?
I'm trying to add an audio track and three subtitle tracks to a video file with already one audio track, but can't get it to work. How does it work (on Linux in case it isn't obvious)?
The subtitle ...
2
votes
1
answer
331
views
'v4l2' is not a suitable output format - why does this error appear?
I have created following script I've been using on Arch Linux to stream the camera feed to OBS
#!/usr/bin/env bash
set -euo pipefail
sudo modprobe v4l2loopback exclusive_caps=1 max_buffer=2
gphoto2 ...
0
votes
0
answers
204
views
get, using ffmpeg, the RTSP response code
It's possible get using the ffmpeg the RTSP response code?
I need collect the information from RTSP header, similar to the HTTP header. But using 'curl' i dont think it would be possible.
0
votes
0
answers
147
views
error "Failed to query nvenc max version",how to solve this bug?
The error "Failed to query nvenc max version" occurs when using FFmpeg with NVIDIA GPU acceleration (hevc_nvenc) on Linux.
Does anyone know how to solve this bug? Thank you very much.
The ...
0
votes
0
answers
2k
views
How to detect with ffmpeg if the stream has video or audio or both?
I am listening on rtsp stream. The stream may potentially have only audio, only video, or have both, depending on how the remote side ffmpeg was configured. I want to dump the stream into hls. This is ...
0
votes
1
answer
91
views
ffmpeg folder permission unable to find suitable output format
I'm attempting to make a small shell script using ffmpeg it basically accelerates a video to shorten it and then compresses it.
I was successful into running it into the linux terminal but I am having ...
0
votes
0
answers
115
views
How to record large amounts of channels from a USB audio interface using ffmpeg?
I have a couple of USB Audio interfaces that have many input channels for example 10, 18 or 32.
I currently have the one with 10 input channels connected to my Linux PC and I was able to find it in ...
1
vote
0
answers
419
views
Ffmpeg No such file or directory creating hls output
I am using ffmpeg to create a hls live stream with the following command
ffmpeg -i "rtmp://domain.com/stream/6" -c:v copy -c:a copy -f hls -y -preset superfast -hls_segment_type mpegts -...
0
votes
0
answers
315
views
Where does FFMPEG store temporary files in Linux?
I quit the conversion of a very large file in ffmpeg. The incomplete file is taking up almost 200GB on my disk but it does not exist in the directory I was working in and I can't find it anywhere (it ...
1
vote
0
answers
113
views
ffplay cannot play aac and mp4a (which is aac audio in an mp4 file) and ffprobe segfaults when given a file with aac audio [closed]
When I try to play a file with aac audio in ffplay, I get the following error: https://drive.google.com/file/d/1M1oCITTuaLMsLo0bs6lGbw9mZTzdwwBB/view?usp=sharing
Also, when I do ffprobe sample-1.aac, ...
0
votes
0
answers
171
views
How to copy the parameters: program_id, program_num, pmt_pid, pcr_pid
Tell me, please, how to copy the following parameters:
program_id, program_num, pmt_pid, pcr_pid
from the input broadcast to the output.
launch command: ffmpeg -loglevel verbose -re -fix_sub_duration ...
0
votes
0
answers
1k
views
ffmpeg error with SIGSEGV
ffmpeg was killed with signal SIGSEGV (using fluent-ffmpeg in nodejs on ubuntu)
I am expecting ffmpeg to take a provided url and timestamps, then trim the video down. Once that happens I want it to ...
1
vote
1
answer
2k
views
How to create an animated AVIF from images
I have 6 images in .avif format I want to encode to a a single animated avif file.
I could create a .gif from images easily with ffmpeg and convert the generated .gif to .avif But I still want a more ...
0
votes
1
answer
614
views
How do I merge multiple video-only mp4 files with corresponding audio-only mp4 files using ffmpeg?
I have a bunch of video- and audio-only mp4 files and would like to script the merging of both files. But here's the thing, there are multiple video and audio files which are separately indicated by ...
0
votes
1
answer
2k
views
How to use ffmpeg to extract the third data stream in mpegts
I've add a private text stream into the mpegts, as the third stream. Now I need get the stream payload with ffmpeg, I failed neither in command nor in code.
Input #0, mpegts, from 'input.ts':
...
1
vote
0
answers
318
views
Building multiview/mosaic of 4 input UDP streams and output to UDP stream
I was able to find a few examples online of using FFMPEG to build a 2x2 mosaic and have it working pretty well with four input UDP streams.
The issue is when playing back, input 1, 2 and 3 stop ...
2
votes
0
answers
1k
views
How to use hw acceleration on Rockchip CPU?
Based on Rockchips info notes:
Its VPU supports 4K60 H.265/H.264/VP9 video decoder, 1080P60 H.264/H.265 video encoder.
I installed their recommended system (Debian 11(Bullseye) Core, without GUI, ...
1
vote
1
answer
615
views
How to use ffmpeg to convert nv12 to bgra with hwaccel on intel GPU
I am new to video processing and recently started working on capturing camera content from rtsp h265 15fps 800x448 2000kbps and projecting it to /dev/fb0 device.
I use ffmpeg 4.4.2 on ubuntu 22.04 ...
2
votes
1
answer
4k
views
mpv: error while loading shared libraries: libavcodec.so.59: cannot open shared object file: No such file or directory
System:
Linux 6.1.21-1-MANJARO
After updating/upgrading my system, mpv no longer works. It seems ffmpeg is using libavcodec 60 and mpv is using 59. Though I'm not 100% sure this is the issue. Any help ...
0
votes
0
answers
168
views
FFmpeg command line not working as expected: Subtitles set as “dvdsub” and audio is not AAC as specified in the command
I want to encode an film but I have some problems:
The subtitles are converted to dvdsub. If I play the file in VLC the subtitles getting overlapped. In every other player this not happend (like ...