How can I generate encoded HEVC bitstream using ffmpeg? -
i able encoded yuv file mp4 using hevc:
ffmpeg.exe -f rawvideo -s 1920x1080 -pix_fmt yuv420p -i input.yuv -c:v hevc -r 30 -x265-params crf=27 -vframes 300 -an -y test.mp4
here mp4box -info test.mp4 shows:
* film info * timescale 1000 - duration 00:00:10.000 1 track(s) fragmented file: no file suitable progressive download (moov before mdat) file brand isom - version 512 created: unknown date modified: unknown date file has no mpeg4 iod/od itunes info: encoder software: lavf56.11.100 track # 1 info - trackid 1 - timescale 15360 - media duration 00:00:10.000 track has 1 edit lists: track duration 00:00:10.000 media info: language "undetermined" - type "vide:hev1" - 300 samples visual track layout: x=0 y=0 width=1920 height=1080 mpeg-4 config: visual stream - objecttypeindication 0x23 hevc video - visual size 1920 x 1080 hevc info: profile main @ level 5 - chroma format 1 nal unit length bits: 32 - general profile compatibility 0x60000000 parameter sets: 1 vps 1 sps 1 pps sps resolution 1920x1080 bit depth luma 8 - chroma 8 - 1 temporal layers
but how can decodeble bit stream? tried
mp4box -raw 1 test.mp4 -out out.bin
it gives:
extracting mpeg-h hevc stream hevc
but out.bin couldn't decoded hm or elecard.
thanks
use
ffmpeg -i input.mp4 -c:v hevc -f hevc out.bin
to generate annex b bytestream. can fed decoder.
ffmpeg hevc bitstream
No comments:
Post a Comment