2016-03-03 05:57:11 +03:00
|
|
|
#!/bin/bash -e
|
2016-04-12 10:49:50 +03:00
|
|
|
wget http://people.mozilla.org/~ajones/frame-drop-test/bbb-31.webm -O bbb-31.webm
|
|
|
|
ffmpeg -i bbb-31.webm -frames:v 8 -codec copy -map 0:0 sWebMSample.webm -y
|
2016-03-03 05:57:11 +03:00
|
|
|
mv sWebMSample.webm sWebMSample
|
2016-04-12 10:49:50 +03:00
|
|
|
xxd -i sWebMSample |head --lines=-1 | sed 's/unsigned char/static const uint8_t/' > ../WebMSample.h
|
2016-03-03 05:57:11 +03:00
|
|
|
rm sWebMSample
|
2016-04-12 10:49:50 +03:00
|
|
|
rm bbb-31.webm
|