Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds macosx build instruction #15

Merged
merged 1 commit into from
Nov 30, 2016
Merged

Conversation

leandromoreira
Copy link
Contributor

No description provided.

@lheric lheric merged commit f590b63 into lheric:master Nov 30, 2016
@lheric
Copy link
Owner

lheric commented Nov 30, 2016

Thanks for your contribution.

@leandromoreira
Copy link
Contributor Author

@lheric hey, thank you for sharing this system. I was able to build the project on my mac but when I tried to load a yuv420 8bit it didn't work.

How I get an H265 file and then its yuv420 (8bit):

# converting the h264 to h265
ffmpeg -i big_buck_bunny_720p_10mb.mp4 -c:v libx265 -b:v 500K -c:a libvorbis sample_h265.mp4
# extracting the yuv420 (8bit) from it
ffmpeg -i sample_h265.mp4 -c:v rawvideo -pix_fmt yuv420p sample_h265.yuv

I tried to load the sample_h265.yuv but then this error showed up:

[Crit]: No Video Sequence Found..
[Debug]: "ReloadFiltersCommand Execution Success!"
[Crit]: No Video Sequence Found..
[Debug]: "RefreshScreenCommand Execution Failed!"
[Debug]: "SwitchThemeCommand Execution Success!"
[Debug]: "\"/Users/leandro.moreira/src/GitlHEVCAnalyzer/decoders/HM_100\" -b \"/Users/leandro.moreira/golang/src/github.com/globocom/redis-healthy/sample_h265.yuv\" -o decoder_yuv.yuv"
[Crit]: Bitstream decoding FAILED!
Following may be the reasons for this failure:
1. Corrupted HEVC bitstream?
2. Bitstream-decoder version mismatch?
3. Non-English characters in bitstream path or analyzer pat

What am I doing wrong? Just for your info, I ran the tool mediainfo to extract the data about the files I just used:

$ mediainfo sample_h265.yuv
General
Complete name                            : sample_h265.yuv
File size                                : 2.00 GiB

$ mediainfo sample_h265.mp4
General
Complete name                            : sample_h265.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 5.30 MiB
Duration                                 : 1 min 2 s
Overall bit rate                         : 713 kb/s
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00
Writing application                      : Lavf57.56.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : [email protected]@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 1 min 2 s
Bit rate                                 : 476 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.021
Stream size                              : 3.53 MiB (67%)
Writing library                          : x265 2.0:[Linux][GCC 5.4.0][64 bit] 8bit+10bit+12bit
Encoding settings                        : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rskip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=25 / scenecut=40 / rc-lookahead=20 / lookahead-slices=4 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / no-rd-refine / signhide / deblock=0:0 / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=abr / bitrate=500 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / ipratio=1.40 / pbratio=1.30
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00

Audio
ID                                       : 2
Format                                   : Ogg
Codec ID                                 : DD
Duration                                 : 1 min 2 s
Bit rate mode                            : Constant
Bit rate                                 : 230 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Stream size                              : 1.71 MiB (32%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00

@lheric
Copy link
Owner

lheric commented Dec 2, 2016

@leandromoreira you should directly load the h.265 bitstream (raw format without any container) in the analyzer. YUV is uncompressed format dose not contain any information about resolution, MVs... I have sent you an example bitstream. You can have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants