Git Product home page Git Product logo

Comments (17)

tianjunwork avatar tianjunwork commented on May 26, 2024

@waterflag0614 Thanks for posting the issue. We will investigate.

from svt-hevc.

Ilya87 avatar Ilya87 commented on May 26, 2024

@waterflag0614 Send please the yuv file (ore the original one) to the mega.nz service.

from svt-hevc.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

I had sent yuv to the mega.nz service.
https://mega.nz/#!1kRhzSAS!sZtGH0y3_Resd0zcVU9BMRXwH-RoIVV2NM61NLnwKoY

from svt-hevc.

Ilya87 avatar Ilya87 commented on May 26, 2024

@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.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

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.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

https://mega.nz/#!Rl5XlCZD!xIc_snY9VyiM4EyoP2nZk0bnXIz7RvJxntnvIDqUsKM

play YUV:
ffplay -video_size 1280x720 -pixel_format yuv420p mobile_1280x720_yuv420p_288.yuv

from svt-hevc.

Ilya87 avatar Ilya87 commented on May 26, 2024

@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.

Ilya87 avatar Ilya87 commented on May 26, 2024

@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.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

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.

Ilya87 avatar Ilya87 commented on May 26, 2024

@waterflag0614 Yes, it is normal if developers implemented such prediction model for bitrate.

from svt-hevc.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

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.

Ilya87 avatar Ilya87 commented on May 26, 2024

@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.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

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.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

@tianjunwork
Could you give me an answer to the above question.

from svt-hevc.

Ilya87 avatar Ilya87 commented on May 26, 2024

«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.

waterflag0614 avatar waterflag0614 commented on May 26, 2024

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.

tianjunwork avatar tianjunwork commented on May 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.