Comments (17)
@waterflag0614 Thanks for posting the issue. We will investigate.
from svt-hevc.
@waterflag0614 Send please the yuv file (ore the original one) to the mega.nz service.
from svt-hevc.
I had sent yuv to the mega.nz service.
https://mega.nz/#!1kRhzSAS!sZtGH0y3_Resd0zcVU9BMRXwH-RoIVV2NM61NLnwKoY
from svt-hevc.
@waterflag0614 Seems to me your sample isn't valid.
1 - It looks damaged (see encoded file in the link below)
2 - Your sample is semi-planar NV12 https://wiki.videolan.org/YUV#NV12, NOT yuv420p
3 - See my link https://mega.nz/#F!fhdFnSCR!UMlZqkOUE_I508bjYpJ2bA with valid example (read txt inside).
4 - command to create valid raw yuv420p - ffmpeg.exe -i input -t 5 -c:v rawvideo -pix_fmt yuv420p outpuy.yuv, where -t 5 means 5 second of input.
from svt-hevc.
mobile-8bit-yuv420p-720p.yuv is yuv420p, and is created by ffmpeg -video_size 1280x720 -pix_fmt yuv420p10le -i input.YUV -pix_fmt yuv420p -vframes 250.
from svt-hevc.
https://mega.nz/#!Rl5XlCZD!xIc_snY9VyiM4EyoP2nZk0bnXIz7RvJxntnvIDqUsKM
play YUV:
ffplay -video_size 1280x720 -pixel_format yuv420p mobile_1280x720_yuv420p_288.yuv
from svt-hevc.
@waterflag0614
mobile-8bit-yuv420p-720p.yuv is yuv420p
If you are not shure, use yuvplayer (https://sourceforge.net/projects/raw-yuvplayer/), please. It allows you to select colorspace, resolution, etc.
Now your example looks good to me. 288 frames (not 400 as in previous example), video still start from 101 frame and colorspace is yuv420p.
from svt-hevc.
@waterflag0614 the solution is found - change the lad parameter as it is recommended in User Guide "When RateControlMode is set to 1 it's best to set this parameter to be equal to the Intra period value (such is the default set by the encoder)"
-lad 29 (for -intra-period 29).
For the latest sample I used command
SvtHevcEncApp -i mobile_1280x720_yuv420p_288.yuv -interlaced-video 1 -errlog -w 1280 -h 720 -profile 2 -fps-num 30 -fps-denom 1 -rc 1 -lad 29 -tbr 1000000 -intra-period 29 -tune 1 -encMode 1 -latency-mode 0 -irefresh-type 2 -n 250 -b outbitrate.hevc
973.29 kbit/s - without -interlaced-video option
1003.48 - with -interlaced-video 1 option
from svt-hevc.
Is it normal the setting of the value of '-lad' affected the value of BitRate, and caused that the value of Bitrate is abnormal?
from svt-hevc.
@waterflag0614 Yes, it is normal if developers implemented such prediction model for bitrate.
from svt-hevc.
Thanks for your answer.
I have another question. Can the value of '-lad' affect the value of PSNR? For example, the larger the value of '-lad', the larger the value of PSNR.
from svt-hevc.
@waterflag0614 Quatation from the x265 cli:
The longer the lookahead buffer the more accurate scenecut decisions will be, and the more effective cuTree will be at improving adaptive quant. Having a lookahead larger than the max keyframe interval is not helpful.
from svt-hevc.
Thanks very match.
Could I confirm one more question with you?
In VBR mode, when the same command line is executed, the value of real bit rate is different each time. Is the range of bit rate change limited? For example, The actual bit rate fluctuates by 10% over the required bit rate.
from svt-hevc.
@tianjunwork
Could you give me an answer to the above question.
from svt-hevc.
«when the same command line is executed, the value of real bit rate is different each time.»
1 – When run on the same yuv file?
If yes, it' s a bug, otherwise it's normal behaviour. There is no CONSTANT (such as for audio mpeg layer 3) bitrate mode neither ASP, nor AVC standards.
from svt-hevc.
yes, I run SvtHevcEncApp command line on the same yuv file.
sample:
I executed the following command line and repeated it three times.
SvtHevcEncApp -i mobile_1280x720_yuv420p_288.yuv -errlog -w 1280 -h 720 -profile 2 -fps-num 30 -fps-denom 1 -rc 1 -tbr 1000000 -intra-period 29 -tune 1 -encMode 1 -irefresh-type 2 -n 250 -b outbitrate.hevc
first time:
Byte Count: 1043419
Bitrate: 1001.68kbps
second time:
Byte Count: 1016863
Bitrate: 976.19kbps
three time:
Byte Count: 1038338
Bitrate: 996.80kbps
This happens to any input stream.
from svt-hevc.
@waterflag0614 for VBR mode, there is no setting for min/max bitrate yet in SVT.
The VBR rate control is a demo only rate control for now, that’s why it does not have a max min rate. It is designed to keep the bitrate as close as possible to the target bitrate limiting the deviations on a best effort. It does not guarantee that the bitrate would be capped to a maximum bitrate.
from svt-hevc.
Related Issues (20)
- FFmpeg patch error HOT 3
- FFMPEG compile failing again HOT 3
- Could Not Allocate Enough Memory For Channel 1 HOT 2
- Methods to improve the coding quality of SVtheVC encoder HOT 3
- [BUILD FAILED] Looking for some alternatives about `immintrin.h` HOT 1
- Is it possible to control bitrate by frame or window level? HOT 2
- Patching ffmpeg failed -> solution HOT 2
- Whether or not, at most only *two* pictures can be referenced by a frame?
- Whether or not, at most only *two* pictures can be referenced by a frame? HOT 2
- memory exhaustion when encodig 4K UHD 4:4:4 10-bit video HOT 3
- Reading from stdin don't work for me
- Reading from stdin doesn't work HOT 2
- The output stream of test using the same parameters inconsistent HOT 2
- the derivation of lambdaModeDecisionLdSad
- FFmpeg SVT-HEVC stress test failed HOT 1
- how obtain the YUV media files? HOT 1
- How to use ffmpeg svt-hevc encoding to start TileSliceMode mode, can you give an example of the command
- Can't apply patch on FFmpeg 6.0 HOT 10
- Feature request: log callback
- FFMPEG: Couldn't apply patch for SVT-HEVC encoder while building FFMPEG for 64 bit Windows. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svt-hevc.