Hello!
I've been recording some of my NES game playthroughs using an emulator called FCEUX. I found a nice tutorial for capturing and converting them here:
http://tasvideos.org/EncodingGuide/VideoDumping.html#FceuFceux
The settings are as follows:
In which the relevant part is:Code:fceux --subtitles 0 --slstart 0 --slend 239 --xscale 1 --yscale 1 --special 0 --pal 0 --sound 1 --soundq 1 --soundrate 48000 --volume 150 --trianglevol 256 --square1vol 256 --square2vol 256 --noisevol 256 --pcmvol 256 --mute 1 --nospritelim 1 --no-config 1 --videolog "ffmpeg -f s16le -ar 48000 -channels 1 -i /path/to/soundpipe/s.log -f rawvideo -r 60.0998 -s 256x224 -pix_fmt bgr24 -i - -c:a pcm_s16le -c:v libx264rgb -qp 0 -pix_fmt rgb24 output.mkv" --playmov movie.fm2 rom.nes
And of course as many have switched to begin using x265, I decided that I would too. So I tried to convert those options for the libx265 codec:Code:ffmpeg -f s16le -ar 48000 -channels 1 -i /path/to/soundpipe/s.log -f rawvideo -r 60.0998 -s 256x224 -pix_fmt bgr24 -i - -c:a pcm_s16le -c:v libx264rgb -qp 0 -pix_fmt rgb24 output.mkv
So the first error was:Code:ffmpeg -f s16le -ar 48000 -channels 1 -i /path/to/soundpipe/s.log -f rawvideo -r 60.0998 -s 256x224 -pix_fmt bgr24 -i - -c:a pcm_s16le -c:v libx265rgb -qp 0 -pix_fmt rgb24 output.mkv
So I simply changed it to "libx265".Unknown encoder 'libx265rgb'".
The next error was:
I have no idea how to fix this. Even after some serious google-fu.Incompatible pixel format 'rgb24' for codec 'libx265', auto-selecting format 'gbrp'".
The next error was:
I have no idea about this either. What does this mean?[rawvideo @ 0x257a440] Invalid buffer size, packet size 65536 < expected frame_size 172032
Error while decoding stream #1:0: Invalid argument
The final question is about quality. Previously with x264 I used the option "qp 0", but now I'm beginning to think it is way overkill for my purpose. So I'm thinking along these lines:
The preset veryslow is fine for me, since I don't care about speed. But what would you suggest for the CRF value for an emulation content such as this? For audio I'm recoding the mono wav using neroAacEncoder -q 4, since that is a good middle ground in my opinion.Code:ffmpeg -f s16le -ar 48000 -channels 1 -i /path/to/soundpipe/s.log -f rawvideo -r 60.0998 -s 256x224 -pix_fmt bgr24 -i - -c:a pcm_s16le -c:v libx265 -crf 14 -preset veryslow -pix_fmt rgb24 output.mkv
Thanks in advance!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
Code:
Incompatible pixel format 'rgb24' for codec 'libx265', auto-selecting format 'gbrp'".
Calling:
Code:ffmpeg -h encoder=libx265
Code:Encoder libx265 [libx265 H.265 / HEVC]: General capabilities: dr1 delay threads Threading capabilities: other Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p gbrp yuv420p10le yuv422p10le yuv444p10le gbrp10le yuv420p12le yuv422p12le yuv444p12le gbrp12le gray gray10le gray12le libx265 AVOptions: -crf <float> E..V....... set the x265 crf (from -1 to FLT_MAX) (default -1) -qp <int> E..V....... set the x265 qp (from -1 to INT_MAX) (default -1) -forced-idr <boolean> E..V....... if forcing keyframes, force them as IDR frames (default false) -preset <string> E..V....... set the x265 preset -tune <string> E..V....... set the x265 tune parameter -profile <string> E..V....... set the x265 profile -x265-params <dictionary> E..V....... set the x265 configuration using a :-separated list of key=value parameters
-> so if you want to get rid of the warning, use '-pix_fmt gbrp' at the end not '-pix_fmt rgb24'.
Code:[rawvideo @ 0x257a440] Invalid buffer size, packet size 65536 < expected frame_size 172032 Error while decoding stream #1:0: Invalid argument
But what would you suggest for the CRF value for an emulation content such as this?users currently on my ignore list: deadrats, Stears555 -
Ok, thank you very much for your reply. This clears things. And I think you are spot on about the quality issue, I will just have to do comparisons
Similar Threads
-
Switch to x265 or stick with x264?
By nick1977 in forum Video ConversionReplies: 20Last Post: 12th Aug 2023, 05:44 -
convert x265 to x264
By xchcui in forum Video ConversionReplies: 4Last Post: 18th Feb 2021, 05:51 -
Encode x264 to x265?
By BlurayHD in forum Video ConversionReplies: 7Last Post: 7th Jan 2019, 08:30 -
x264 and x265 - Difference
By THRobinson in forum Video ConversionReplies: 60Last Post: 9th Nov 2016, 13:43 -
Transcoding x265 to x264
By therock003 in forum Video ConversionReplies: 3Last Post: 27th Oct 2016, 01:19