2014-10-30 14 views
1

나는 HEVC 사용하여 MP4로 인코딩 된 YUV 파일 수 있어요 :ffmpeg를 사용하여 인코딩 된 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 

는 test.mp4 -info mp4box을 보여줍니다 :

* Movie Info * 
     Timescale 1000 - Duration 00:00:10.000 
     1 track(s) 
     Fragmented File: no 
     File suitable for 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 is 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 

하지만 어떻게 내가 decodeble 비트 스트림을받을 수 있나요?

Extracting MPEG-H HEVC stream to hevc 

그러나 out.bin는 HM 또는 Elecard의에 의해 디코딩 할 수 없습니다 나는 그것은 제공

mp4box -raw 1 test.mp4 -out out.bin 

을 시도했다.

감사

+0

그럼 HM에 더 문제가되지 않습니까? mp4box의 출력이 NALU 스트림인지 아니면 바이트 스트림인지 알고 있습니까? – slhck

+1

오, 당신은'ffmpeg -i input.mp4 ... -c : v hevc -f hevc out.bin'을 사용하여 Annex B bytestream을 생성 할 수 있어야합니다. – slhck

+0

이 작품! 감사. – jgmao

답변

3

사용

ffmpeg -i input.mp4 -c:v hevc -f hevc out.bin 

는 부속서 B의 바이트 스트림을 생성합니다. 이것은 다른 디코더에 공급 될 수 있습니다.