Hlo everyone,
Am getting error while doing 2 pass encoding with libx265(hevc) in ffmpeg cli
[Attachment 62584 - Click to enlarge]
Anyone have idea? Why am getting this?
And how I can solve this error?
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 20 of 20
Thread
-
Anonymous543Guest
-
Anonymous543Guest
codes which i used to encode was..
ffmpeg -y -i input.mp4 -c:v libx265 -b:v 160k -x265-params pass=1 -an -f null NUL && ^
ffmpeg -i input.mp4 -c:v libx265 -b:v 160k -x265-params pass=2 -an video.mp4
https://trac.ffmpeg.org/wiki/Encode/H.265 -
Code:
ffmpeg -i input.mp4 -c:v libx265 -b:v 160k -x265-params pass=1 -an -f mp4 NUL && ^ ffmpeg -i input.mp4 -c:v libx265 -b:v 160k -x265-params pass=2 -an -f mp4 video.mp4
-
Anonymous543Guest
-f specifies format for input or output file?
Last edited by Anonymous543; 28th Dec 2021 at 08:49.
-
Anonymous543Guest
Does different formats like .mp4 .mkv makes different CU-tree stats file?
Last edited by Anonymous543; 28th Dec 2021 at 08:49.
-
-
Anonymous543Guest
In pass 1 i put -f null
And in pass 2 I wanted output.mp4
So it gave me incomplete cu stats file error
But when i put -f mp4 in pass 1
Then I got output.mp4 in pass 2 without errors
So my question is in pass 1 should I put -f null
Or -f (output container of pass 2)mp4
And what if I put -f mkv in pass 1
And in pass 2 I put output.mp4? -
-
Anonymous543Guest
my source raw input video name is
cats.3gp
when i run h265 2 pass with codes
Code:ffmpeg -y -i cats.3gp -c:v libx265 -b:v 160k -x265-params pass=1 -f null NUL && ^ ffmpeg -i cats.3gp -c:v libx265 -b:v 160k -x265-params pass=2 outputcats.3gp
then i changed my raw input container 3gp to mp4 with this code
Code:ffmpeg -i cats.3gp -c:v copy cats.mp4
Code:ffmpeg -y -i cats.mp4 -c:v libx265 -b:v 160k -x265-params pass=1 -f null NUL && ^ ffmpeg -i cats.mp4 -c:v libx265 -b:v 160k -x265-params pass=2 outputcats.mp4
and this time i got that incomplete cu tree stats file error
and encoding failed.
changing container may be the reason of this error
because it worked when the container was 3gp
input has only video stream ,thats why i didnot specified audio codec. -
Most likely a bug. There are two bug reports on this specific error. https://trac.ffmpeg.org/ticket/6450 reported 5 years ago and closed by the reporter when they discover the work-around and https://trac.ffmpeg.org/ticket/8899 opened 16 months ago. Perhaps if you commented on the second bug report you may get a response.
-
Anonymous543Guest
I don't know how to comment on that site ,may be i have to register which I don't wanna do because i already have so much accounts on different different websites
-
If you don't want to create an account then you'll need to go with IRC, http://ffmpeg.org/contact.html#IRCChannels.
I don't think that any of the FFmpeg devs hang out on videohelp and they are likely the only ones who can tell you why it behaves that way. -
What OS ?
-f null for 1st pass works for me with mp4 input and output on windows -
Anonymous543Guest
I'll give you my input video stream in private msg, on that it doesn't works
-
For completeness - the issue was buggy timestamps for that specific MP4 the OP was using - the stats file does not match
MKV to MP4 uses a different container timebase and can introduce the issue (especially when the MKV timestamps to begin with are buggy to begin with)
An input CFR MP4 with good timestamps works ok with that commandline
In case anyone else has similar issue:
Easiest workaround is to use -f mp4 in the 1st pass
Or "fix" the timestamp interpretation using -vf fps=24000/1001 for both passes
Similar Threads
-
How to install ffmpeg cli in linux
By Anonymous543 in forum Newbie / General discussionsReplies: 3Last Post: 22nd Dec 2021, 10:45 -
Need help 2 pass encoding with ffmpeg cli in windows
By Anonymous543 in forum Newbie / General discussionsReplies: 28Last Post: 9th Dec 2021, 09:46 -
x265 2-pass error using FFmpeg Batch AV Converter
By pascor in forum Video ConversionReplies: 20Last Post: 19th May 2021, 07:40 -
Ffmpeg — Specific of libx265
By Drag in forum EditingReplies: 2Last Post: 13th Oct 2018, 07:30 -
Two-Pass Encoding using AVS2YUV with FFmpeg
By wwaag in forum Video ConversionReplies: 10Last Post: 9th Mar 2017, 17:33