All Questions
147
questions
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 \
-...
2
votes
1
answer
228
views
QSV hardware acceleration does not work with ffmpeg 7.0
I've been using Intel Quick Sync (QSV) hardware acceleration for several years with ffmpeg for decoding, encoding, and filtering. I've been using only 4.4-full_build-www.gyan.dev on Windows 7 and 10 ...
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 ...
2
votes
0
answers
66
views
How to know my audio codec will support the output container in. Fluent-ffmpeg [closed]
I am building a YouTube downloader. As YouTube doesn’t store high quality video with audio and store them separately so I have to merge them on server.
For merging I am using a Node.js server with ...
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 ...
2
votes
1
answer
969
views
Why does ffmpeg alter timestamps when "-codec copy" is given, and how to prevent this?
I am currently trying to remove certain audio tracks from a bunch of m2ts files (mainly to save space), using ffmpeg. In doing so, I would like the removal of those tracks to be the only action that ...
1
vote
1
answer
70
views
Is '-c' just shortened alias for '-codec' in ffmpeg?
I looked at the documentation and it does not seem clear to me. For example are the following two commands essentially the same?
ffmpeg -i .\video.mp4 -i .\metadata.txt -map_metadata 1 -codec: copy -...
1
vote
1
answer
224
views
H264_QSV will decode, VP9_QSV will not
Yet another Intel Quick Sync (QSV) issue.
I've been using QSV enabled decoders, encoders, and filters for about a year, and mostly it works, at least for H264. But, as others have reported, HEVC and ...
2
votes
0
answers
153
views
Video Encoded using FFmpeg is not being played in Azure Kinect Viewer
I captured a video using a Kinect Azure DK device and could play it back using Azure Kinect Viewer (v.1.4.1). However, when I encode a video using FFmpeg, the commands are given below. I can not ...
0
votes
0
answers
254
views
Best Lossless Video Codec for 8 bpc RGB image sequences?
I render 3D animations, many of which take days or even weeks to render at a time, and I need to keep a lossless archive of the output files. The output format from the render engine is 8 bit per ...
0
votes
0
answers
192
views
How to use Docker FFMPEG and HLS on my website
I want to use a Docker container to convert an mkv video to an HLS "video". This is my command for it:
docker run --rm \
-v /mnt:/config \
linuxserver/ffmpeg \
-i "/config/test....
1
vote
0
answers
56
views
FFMPEG: Sync issue between mp3 and mp4 converted from the same input webm file
Using this command to create 2 files :
ffmpeg -y -i input.webm -c:v copy -c:a libmp3lame -b:a 128k -strict -2 -f mp4 rec_50ae1a2a3da64cf1a5f46c53de757d6e-1692704540213.mp4 -vn -acodec libmp3lame -b:a ...
1
vote
0
answers
236
views
Force media info rewrite with ffmpeg
I have a bunch of video files created by MKVToolnix that have a Codec ID like: V_MS/VFW/FOURCC / HEVC.
I tried to run this:
ffmpeg -i test.mkv -c copy test.avi
to turn it to avi and then this:
ffmpeg ...
0
votes
1
answer
733
views
How to send av1 encoded stream to a mediamtx server?
I want to test streaming av1 encoded video from the command line but I don't have enough expertise to know if I'm doing something wrong or if it's simply unsupported.
So far I've tried gst-launch-1.0 ...
2
votes
1
answer
2k
views
Is it okay to re-encode videos from traditional lossless codec to modern lossless codec to save space and preserve quality?
Lossless video codec means almost zero information loss. After some internet search I found that there are some traditional opensource lossless codec like huffyuv, lagarith, utvideo and ffv1, which ...
1
vote
1
answer
928
views
How do I accurately cut video and audio with ffmpeg
So when I try to cut out a portion of a video I do this
ffmpeg -i originalClip.mp4 -ss 00:00:14 -t 00:00:21 -codec copy outputClip.mp4
And the video comes out with amazing quality and the sound is on ...
3
votes
1
answer
1k
views
Kdenlive proxy clips vs. transcode to editor-friendly format
When should I use proxy clips vs. the "transcode to editor-friendly format" option? They both seem to accomplish the same goal, that is, providing the video in a format that the editor can ...
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
1
answer
109
views
What are the constraints for lacking encoder support in FFmpeg?
According to the documentation, there are several video and audio codecs with missing encoder support.
Is this typically because:
A) The encoder is copyright protected.
B) The encoder implementation ...
8
votes
2
answers
2k
views
FFmpeg incorrect colourspace with hardcoded subtitles
Problem
I have a MKV file which has 1 video and 1 subtitle stream, of which I want to hardcode the subtitle stream and output a MP4 file.
Example file, images and results can be found here.
mediainfo
...
1
vote
0
answers
598
views
Rebuild .m4a file with ffmpeg
I have a couple of corrupt m4a file that I'd like to try to repair by rebuilding the container, so I thought ffmpeg could do that easily. However, when I run this, even on a valid file, I get an error:...
2
votes
1
answer
2k
views
Only convert codecs(preserve audio and subtitles)
I have a video file h265 mkv which has dual audio and multiple subtitles.
I want to convert it to h264 since it doesn't require further transcoding on my jellyfin server.
But I haven't been able to ...
0
votes
0
answers
223
views
How to cut 1 video into many different videos with different lengths? ( FFMPEG)
I need to cut a video with a length of several minutes into many different videos, In all but the videos cut from the original video will have different short lengths. what do i need to do?
This is ...
1
vote
0
answers
144
views
How to export mestimate filter motion vectors into a separate file with ffmpeg binary?
So mestimate filter can be used to compute the motion vectors in a video. They can also be displayed. Is there a way to export them into a separate file using the ffmpeg binary? I would love to have ...
0
votes
1
answer
931
views
h264_cuvid @ 0x55e14e670bb0 ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps8) failed
I have ubuntu18.04, NVIDIA GTX1060, NVIDIA driver 11.4, cuda version 10.2, cudnn version7.6.5.
Yesterday, I got it done with following configuration and it worked perfectly with my test video(ffmpeg ...
1
vote
0
answers
394
views
Codec parameter is overridden by file extension when using ffmpeg
I'm using ffmpeg to transcode some video files and for this post we'll take test.mkv. test.mkv has an audio track at index 2 that is AAC 7.1. I want to keep the track but also add a AAC stereo version....
1
vote
1
answer
2k
views
How to split m4b file into many tracks on linux
I do have an audiobook with m4b extension, and I wish to split it into many tracks so that it becomes more manageable on my mobile.
Through splitting m4a into multiple files with ffmpeg, I ...
2
votes
1
answer
159
views
ffmpeg : Not keeping original codec for Audio Track
I have 3 versions of the ffmpeg command and none of them are perfect... I am stuck.
Below are the examples I have and the issues I face with each version:
ffmpeg -i "%%a" -map 0:v:0 -map 0:a:...
1
vote
0
answers
5k
views
FFMPEG Convert image format with best possible output?
With the standard command you can theoretically convert almost anything (ffmpeg -i input.png output.tiff),
but I'm afraid that the output will differ from the input in terms of quality and/or ...
1
vote
0
answers
2k
views
Calculate PSNR, VMAF, SSIM using FFmpeg
I am trying to calculate PSNR, VMAF, SSIM using FFmpeg after I reencode to 10-bit H.265 codec but I keep getting an errors:
"An invalid or unaligned stack was encountered during an unwind ...
1
vote
1
answer
4k
views
Could not find tag for codec none in stream #1, codec not currently supported in container vs Non-monotonous DTS in output stream
I'm trying to record video from my ip camera stream with ffmpeg in command line.
fmpeg -rtsp_transport tcp \
> -i rtsp://192.168.0.250/stream1 \
> -c copy \
> -map 0 \
> -f segment \
&...
0
votes
1
answer
1k
views
How is this ffmpeg '-map' documentation? Okay?
Regarding ffmpeg: Attach various codecs to various filtergraph output streams -- How?
Is the following 100% correct?
There are 5 types of '-map's:
1, Input-absolute: index (i) all input streams (e.g. -...
1
vote
2
answers
776
views
ffmpeg: Attach various codecs to various filtergraph output streams -- How?
I have 2 ffmpeg audio outputs mapped out from a filtergraph, thusly:
-filter_complex "[0:1]..bla-bla-bla..[ac3];[0:2]..bla-bla-bla..[dts]" -map "[dts]" -map "[ac3]"
Next, ...
0
votes
1
answer
567
views
Resize an MP4 with AAC/H.264 encoding in 16:9 to a smaller 16:9 file
I have a 1920x1080 (16:9) MP4 file with Codecs: AAC, H.264 that I would like to shrink to various smaller sizes, for example: 1280x720 or perhaps 640x360.
As far as I know, those values are clean 16:9 ...
0
votes
1
answer
4k
views
Range of "global_quality" value for h264_qsv encoder?
What is the range of the -global_quality setting for ffmpeg's h264_qsv encoder (4.3.2-2021-02-27-full_build-www.gyan.dev, Windows)?
Ffmpeg's documentation for the encoder (archive) states:
The ...
0
votes
1
answer
9k
views
ffmpeg : Could not find codec parameters for stream 1 (Video: vp8, yuv420p): unspecified size?
I have an RTP stream coming from Kurento Media Server.
I would like to record this stream to a file using ffmpeg. I'm running the command
ffmpeg -protocol_whitelist file,crypto,udp,rtp -i a.sdp -c:v ...
1
vote
3
answers
1k
views
ffmpeg several streams with different video and audio setting using --filter_complex and tee pseudo muxer from same source
I'm capturing video with embeded audio from decklink mini recorder and need to create 6 different streams. I've created the filter for the video and it works, but cannot figure it out how to set ...
1
vote
1
answer
617
views
AV1 extract keyframes
Using this file [1], I can run this command with no problem:
ffmpeg -i crushed-between-two-portals.mp4 %d.jpg
but if I run either of these commands [2]:
ffmpeg -i crushed-between-two-portals.mp4 -vf &...
0
votes
1
answer
120
views
What is a MOJO codec and how can it be used with ffmpeg
NComputing VCast has this MOJO format that can play fast on their thin clients.
As described here: https://support.ncomputing.com/portal/en/kb/articles/vcast-what-is-the-difference-between-web-media-...
0
votes
0
answers
251
views
How can I reduce the file size of a video encoded with wmv2 in ffmpeg?
I have some videos of a slide presentation with audio and need to put them in a wmv container. These videos are intended to be viewed with Windows Media Player. I initially made the mistake to use the ...
2
votes
0
answers
2k
views
Extract timestamp of I-frames of video using ffmpeg
If I understand correctly, I-frames are the frames that are unaltered during video compression. I want to extract the exact timestamps of these I-frames and save the output in a txt file. How do I do ...
0
votes
1
answer
1k
views
the .m3u8 video being downloaded converted to mp4 result in trouble
why did the .m3u8 video being downloaded converted outright to mp4 result in lower resolution quality?
It's anyway either done by vlc or ffmpeg cli
Please one expert solve it to be got the same good ...
1
vote
0
answers
2k
views
FFMPEG - Transcoding webm to mp4 - wrong duration
I have a webm file that I want to convert to a mp4 file.
The result is a mp4 file with a different duration than the webm (much longer).
Webm file (via WeTransfer, example.webm, 421kb)
About the ...
0
votes
0
answers
912
views
Audio is scrambled up when using ffmpeg concat demuxer
I am using ffmpeg's concat demuxer to join different mp4 videos. First I have reencoded all videos with the following command:
ffmpeg -i "${file}" -c:v libx264 -c:a aac "${out}"
...
7
votes
2
answers
5k
views
What are the differences between the HuffYUV and ffvhuff codecs in FFmpeg?
Doing ffmpeg -codecs | grep -i huffyuv shows that my FFmpeg build supports three different versions of the HuffYUV lossless video codec:
DEVI.S ffvhuff Huffyuv FFmpeg variant
DEVI.S ...
7
votes
2
answers
16k
views
Is FDK-AAC still better than FFmpeg's native AAC encoder?
I wrote this about a year ago while trying to compile FFmpeg for Cygwin/Windows, based on the claims made in the FFmpeg wiki:
The Fraunhofer FDK AAC codec library. This is currently the highest-...
0
votes
1
answer
68
views
Join vides of different formats
I have a collection of videos that have been recorded and encoded with various different devices and codecs. I try to make one movie out of them. I thought it's a good idea to bring them all to the ...
2
votes
1
answer
6k
views
ffmpeg loudnorm: normalize audio volume with two pass
https://trac.ffmpeg.org/wiki/AudioVolume#LoudnessNormalization
However, it is recommended to run the normalization with two passes, extracting the measured values from the first run, then using the ...
2
votes
0
answers
388
views
Why has bitrate changed after remuxing with ffmpeg?
I am running this command to remux a .VOB file into a .mov file, without re-encoding.
ffmpeg -i input.VOB -c copy output.mov
The details of the movies' codec, framerate and bitrate in QuickTime's ...
1
vote
3
answers
4k
views
How to transcode to hevc losslessly using ffmpeg hevc_qsv encoder?
I'm using ffmpeg -hwaccel qsv -c:v h264_qsv -i Intro.mkv -strict -2 -c:v hevc_qsv -preset veryslow -c:a copy Intro-hevc.mp4 to transcode a h264 mkv video to hevc mp4. Although the file size is ...