Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.26 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.26 KB

Notes on Test Videos

1. Synthetic Videos

Just some synthetic videos with some minor color changes.

From here

See the Makefile file for details.

2. Test-Clip Testing

We got some clips (from test-videos.co.uk and h264info.com), and ran the tools/h264nal tool on them to make sure it does not crash. Then, we compared the results with those produced by ffmpeg BSF mode.

The process (per-video) is as follows:

# convert mp4 to Annex-B format
$ ffmpeg -y -i clip.mp4 -codec:v copy clip.mp4.264

# get bsf data
$ ffmpeg -i clip.mp4.264 -c:v copy -bsf:v trace_headers -f null - >& clip.mp4.264.bsf

# get h264nal parsed data
$ ./h264nal/build/tools/h264nal --noas-one-line --add-offset --add-length --add-parsed-length clip.mp4.264 > clip.mp4.264.txt

And then we do manual comparison of clip.mp4.264.bsf and clip.mp4.264.txt.

3. Codec Testing

Idea is to test the most common FOSS encoders (x264, OpenH264, and others), using different encoder values, and compare the results with those of ffmpeg BSF mode.