-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_ffmbc_from_ffmpeg_mp4.html
More file actions
45 lines (37 loc) · 1.45 KB
/
test_ffmbc_from_ffmpeg_mp4.html
File metadata and controls
45 lines (37 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html><head><title>Test Video</title>
<script type="text/javascript">
function seekToFrame( frame, framerate ) {
if ( ! framerate ) {
framerate = 29.97;
}
eps = 0.001;
player = document.getElementById('player');
player.currentTime = eps + frame/framerate;
}
</script>
</head>
<body>
<h2>ffmbc_from_ffmpeg.mp4</h2>
<pre>ffmbc -y -i outputs/ffmpeg_flower_h264_aac.mp4 -f mp4 -vcodec libx264 -pix_fmt yuv420p -vb 1M -acodec libfaac outputs/ffmbc_from_ffmpeg.mp4</pre>
<p><em>Note this re-transcodes a *failing* output from ffmpeg, and somehow manages to fix the timing issues.</em></p>
<p>Duration test: PASS. The video has expected duration of 0.53s<br/>
Seek test: PASS. Player seeks to expected frame.</p>
<video controls autoplay
id="player"
src="file:./outputs/ffmbc_from_ffmpeg.mp4"
width="600"
height="420"
>
</video>
<p>Seek to frame:
<a href="#" onclick="seekToFrame( 0 );return true;" >00:00:03:25</a>,
<a href="#" onclick="seekToFrame( 1 );return true;" >00:00:03:26</a>,
<a href="#" onclick="seekToFrame( 2 );return true;" >00:00:03:27</a>,
<a href="#" onclick="seekToFrame( 3 );return true;" >00:00:03:28</a>,
<a href="#" onclick="seekToFrame( 4 );return true;" >00:00:03:29</a>,
<a href="#" onclick="seekToFrame( 5 );return true;" >00:00:04:00</a>,
<a href="#" onclick="seekToFrame( 10 );return true;" >00:00:04:05</a>,
<a href="#" onclick="seekToFrame( 15 );return true;" >00:00:04:10</a>
</p>
</body>
</html>