Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

video - what happen to B-frames?! MP4Box evalvid , JM .264

I encode an HD video (Beauty.yuv) by JM with IBBBPBBBPBBBP... pattern.

then to convert output.264 to out.mp4 by MP4Box do this:

MP4Box -profile high -hint -mtu 1024 -fps 30 -add output.264 out.mp4

then I make .st file:

./mp4trace -f -s 192.168.0.2 12346 out.mp4 > st_a01.st

but my st file look like:

1 I 142647 140 0.075

2 P 82493 81 0.202

3 P 24373 24 0.204

4 P 29224 29 0.204

5 P 23495 23 0.204

6 P 76393 75 0.331

7 P 22832 23 0.331

8 P 25367 25 0.336

9 P 22635 23 0.336

10 P 120039 118 0.469

11 P 24255 24 0.469

12 P 26783 27 0.469

13 P 23338 23 0.469

14 P 96223 94 0.596

15 P 22626 23 0.602

16 P 25306 25 0.602

17 P 26856 27 0.602

18 P 99348 98 0.729

19 P 25576 25 0.735

20 P 32550 32 0.736

21 P 28752 29 0.736

22 P 110795 109 0.869

23 P 23601 24 0.869

24 P 25118 25 0.869

25 P 24258 24 0.869

26 P 87966 86 0.991

27 P 21435 21 1.002

there is no B-frame or B-slice in packets ! why that happen ? what is wrong here ?

thanks for your attention

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you execute MP4Box -info out.mp4, you'll get some general information on the file.

If you execute MP4Box -info 1 out.mp4, you'll get some more specific information about the track 1 of the file.

If you execute MP4Box -diso out.mp4, you'll get a detailed XML (including the timings) of your MP4 file structure.

Maybe another precision about "I/P/B-frames". Since H264 (2003), there are only I/P/B slices, which makes your verification a little harder (since you need to check slices and not frames).

Also MP4Box is only a muxer, it won't modify the semantics of your encoded content.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...