Newest 'x264' Questions - Stack Overflow
Les articles publiés sur le site
-
How to configure B-frames (no leading P-frames) in x265
5 mars 2020, par AlearnerI have been rolling around with my studies in x265 encoder for days. Guess now I get better click on how x265 works than my first day. I usually use the HEVC reference software, and so think I am too comfortable with its environment because now I cannot figure out how to set the x265 encoder to code only I- and B-frames as if the Random Access or Low-Delay-B configurations in HEVC.
I set my encoder with this CLI option to encode 500 frames of BasketballPass sequence:
--input BasketballPass_416x240_50.yuv --input-res 416x240 --fps 50 --frames 500 --rd 4 --no-lossless --csv-log-level 2 --csv infoQP37.csv --no-wpp --psnr --ssim -b 16 --b-pyramid 0 --b-adapt 0 --keyint 48
Instead of get only I- and B-frames encoded, P-frames also show up in my log file:
Enc.order Type POC 0 I-SLICE 0 **1 P-SLICE 17** 2 B-SLICE 9 3 b-SLICE 1 4 b-SLICE 2 5 b-SLICE 3 6 b-SLICE 4 7 b-SLICE 5 8 b-SLICE 6 9 b-SLICE 7 10 b-SLICE 8 11 b-SLICE 10 12 b-SLICE 11 13 b-SLICE 12 14 b-SLICE 13 15 b-SLICE 14 16 b-SLICE 15 17 b-SLICE 16 **18 P-SLICE 34** 19 B-SLICE 26 20 b-SLICE 18 21 b-SLICE 19 22 b-SLICE 20 23 b-SLICE 21 24 b-SLICE 22 25 b-SLICE 23 26 b-SLICE 24 27 b-SLICE 25 28 b-SLICE 27 29 b-SLICE 28 30 b-SLICE 29 31 b-SLICE 30 32 b-SLICE 31 33 b-SLICE 32 34 b-SLICE 33 35 i-SLICE 48 ......
My question is, can the x265 configure encoder as in RA or LDB of HEVC? If yes, I'd appreciate any guidance to do it. Or How can we encode only I- and B-frame only (without P-frame) in x265?
-
Decoded video gives different format from encoded one
24 février 2020, par CloyzI am trying to decode a h264 video that I encoded using FFMPEG. The encoder used is libx264rgb with a AV_PIX_FMT_BGR0 pixel format. The encoded video plays well inside ffplay.
When I decode the frames, I obtain a planar pixel format(AV_PIX_FMT_GBRP) which is different from the original. Is it normal? If yes is there a way to disable the planar format? (either at encoding or decoding). This would allow me to skip the packing overhead from planar at runtime.
I used this decoder sample with a AV_CODEC_ID_H264 decoder instead of AV_CODEC_ID_MPEG1VIDEO.
Thank you!
-
Using ffmpeg WITHOUT x264 or mpeg4
10 février 2020, par FunkyPizzaSo I've recently started implementing ffmpeg in an application that I do intend to distribute commercially. And I've had an hard time getting my head around the whole licensing process.
The most commonly answered question I've seen seems to be about x264 which requires a paid licence from x264.org in order to use it commercially (right?). I started to look into mpeg4 instead but that too seemed to be locked behind some licensing fee (https://www.mpegla.com/programs/mpeg-4-visual/license-agreement/).
I guess my question is the following, what video encoders compatible with FFMPEG are fully free to use?
-
Fix x264 dependency Error when Pacman Update [closed]
5 février 2020, par NIMA SEDAGHATwhen i want to remove x264 my manjaro i get some errors :
sudo pacman -R x264 [sudo] password for nima: checking dependencies... error: failed to prepare transaction (could not satisfy dependencies) :: removing x264 breaks dependency 'libx264.so=157-64' required by ffmpeg :: removing x264 breaks dependency 'libx264.so=157-64' required by ffmpeg2.8 :: removing x264 breaks dependency 'x264' required by gst-plugins-ugly
and when i update:
sudo pacman -Syu :: Synchronizing package databases... extra-alucryd is up to date core is up to date extra is up to date community is up to date multilib is up to date sublime-text is up to date :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... error: failed to prepare transaction (could not satisfy dependencies) :: installing x264 (3:0.159.r2991.1771b55-1) breaks dependency 'libx264.so=157-64' required by ffmpeg :: installing x264 (3:0.159.r2991.1771b55-1) breaks dependency 'libx264.so=157-64' required by ffmpeg2.8
how i fix this problem?
-
ffmpeg - cuda encode - OpenEncodeSessionEx failed : out of memory
31 janvier 2020, par VelDevI'm having a problem with ffmpeg video encoding using GPU (CUDA).
I have 2x nVidia GTX 1050 Ti
The problem comes when i try to do multiple parallel encodings. More than 2 processes and ffmpeg dies like this:
[h264_nvenc @ 0xcc1cc0] OpenEncodeSessionEx failed: out of memory (10)
The problem is nvidia-smi shows there are a lot of resources available on the gpu:
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 384.66 Driver Version: 384.66 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 105... Off | 00000000:41:00.0 Off | N/A | | 40% 37C P0 42W / 75W | 177MiB / 4038MiB | 30% Default | +-------------------------------+----------------------+----------------------+ | 1 GeForce GTX 105... Off | 00000000:42:00.0 Off | N/A | | 40% 21C P8 35W / 75W | 10MiB / 4038MiB | 0% Default | +-------------------------------+----------------------+----------------------+
the second GPU doesn't seem to be used at all, and there's more than enough memory left on the first one, to support the 3rd file.
Any ideas would be extremely helpful!