Skip to main content
12 votes
Accepted

How to ignore certain type of streams (mjpeg) while encoding videos in ffmpeg

You can avoid the MJPEG cover art by using properly ordered selective mapping: -map 0 -map -v -map V What this does: -map 0 Map all streams from input 0 (which is the first input per ffmpeg command)...
llogan's user avatar
  • 10.1k
6 votes
Accepted

ffmpeg transcoding H264 interlaced and keep interlacing via H264_NVENC codec

It's an issue with new video drivers. Everything is fine with video driver 361.28 and lower. I already sent this issue to NVIDIA Support with Reference Number 161118-000164 UPDATE: This issue has ...
Ivan Kolesnikov's user avatar
3 votes

Is there a way to improve h264_nvenc output quality?

Specify bitrate as -b:v 0 made the trick forme, the overall bitrate bumped from 2m to 16m. ffmpeg -i in.mp4 -c:v h264_nvenc -b:v 0 out.mp4
deFreitas's user avatar
  • 131
3 votes

Is there a way to improve h264_nvenc output quality?

h264_nvenc is able to encode in constant quality, at least from Pascal onwards. I had to do quite some digging around the internet to figure out how to properly use it, but finally found a working ...
octo's user avatar
  • 31
3 votes

NVENC_HEVC Encoding making my files larger

Just because you can get a hamburger at different restaurants doesn't mean they'll taste and look the same. Apples and oranges x265 and NVENC are two different encoder implementations that can ...
llogan's user avatar
  • 10.1k
2 votes

NVENC_HEVC Encoding making my files larger

Just to add one specific point. The nVidia HEVC encoder doesn't support B-frames yet. So that crimps any hopes of achieviing the same quality at the same size, even if nvenc was as well-tuned as x265.
Gyan's user avatar
  • 33.3k
2 votes
Accepted

Does FFMPEG benefit from SLI when using h264_nvenc?

There is not necessary to add a card in SLI. Is enough to buy another card to double the performance. By default NVIDIA supports only 2 encoding streams in parallel for consumer level cards. For your ...
Ivan Kolesnikov's user avatar
2 votes
Accepted

How to stop ffmpeg from interlacing when converting from m2ts to mkv

The source is interlaced. To deinterlace it, you can use the yadif filter. To use it with the default values: ffmpeg -i input.m2ts -vf yadif=parity=auto output.mkv
Gyan's user avatar
  • 33.3k
1 vote
Accepted

FFmpeg/nvenc(cuda): Where is the documentation for h264_nvenc encoder?

You may check https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/nvenc.h#L186-L221 and the valid can be referenced from https://github.com/FFmpeg/nv-codec-headers/blob/master/include/ffnvcodec/...
xer-rex's user avatar
  • 817
1 vote

How to ignore certain type of streams (mjpeg) while encoding videos in ffmpeg

I'm here also playing with ffmpeg and nvdec/nvenc. I've found that some options is not good. I've played with nvdec also, and found that it's better to use -filter (ffmpeg documentation says it's a "...
denixx's user avatar
  • 11
1 vote

Nvenc produces corrupted video

Ok, this is a known bug in ssrr: https://github.com/MaartenBaert/ssr/issues/658 SOLUTION: You can use OBS, which is compatible with NVENC.
Adrian Lopez's user avatar
1 vote

Getting gray instead of white when recording screen activity

Wow, this was a VLC problem. Its the playback of the video recording that has got darkened! The left program is "Film & TV" provided by windows. If I in VLC was unchecking the option "use ...
Anders Lindén's user avatar
1 vote

How to stop ffmpeg from interlacing when converting from m2ts to mkv

You can try deinterlacing it at the decoding step with the following command, via the CUVID deinterlacer: ffmpeg -hwaccel cuvid -c:v h264_cuvid -deint 2 -drop_second_field 1 \ -i input.m2ts -c:v ...
Ivan Kolesnikov's user avatar
1 vote
Accepted

How many NVIDIA NVENC engines a particular GPU have?

NVIDIA have just published Video Encode and Decode GPU Support Matrix that contains number of NVENC chips for Pro-level cards.
Sergey's user avatar
  • 126
1 vote

How many NVIDIA NVENC engines a particular GPU have?

Since you are actually more interested in performance (Frame Per Second) than in the NVENC engines count, please consider my below rounded up figures. I've compared GTX 1060 and GTX 1080 only. H264, ...
RawBean's user avatar
  • 163
1 vote

How to encode from Premiere using nvenc Nvidia codec but still output to mp4/avi

It's funny how you can try solutions for hours but the moment you post a question online or to IRC you find the answer yourself within minutes.. Anyways, digging around I found tat instead of using ...
Ironbelly Studios's user avatar
1 vote

what graphics card features effect NVIDIA NVENC hardware encoding speed?

At the very top of your $800 budget, you can get a Quadro M4000 that does NOT have the license limitation of 2 concurrent transcodes. We use these cards to transcode 5-10 incoming live streams to 2-3 ...
Allan Jude's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible