Debian Codegraph @

tools/ffmpeg/readme_run_tests.txt

raw
1 Running the tests
2 =================
3
4 preparation
5 -----------
6
7 1. You need to have ffmpeg binaries to get the dynamic link libraries,
8 Windows:
9 Download the binaries from http://ffmpeg.zeranoe.com/builds/ ; that page lets select Version / Architecture / Linking
10 We need to select
11 'shared' to get the dll's
12 'Architecture' according to the target machine (32/64bits)
13 'Version' I suggest the released, currently 3.3.1 (the other option seems to be a nightly build, complicates comparison between machines)
14 After download, unpack at some directory, by example prog/ffmpeg; then copy the dll's in prog/ffmpeg/bin to the directory with the pyglet ffmpeg player and test script; currently (pyglet repo)/examples/video_ffmpeg
15
16 Ubuntu:
17 Try in a terminal 'ffmpeg'; if it tells is not installed you can get it with
18 sudo apt install ffmpeg
19 For ubuntu 17.04 I got version 3.2.4-1build2
20 (note: if a sample looks bad in the pyglet player, you could run
21 ffplay.exe <sample>
22 in a console to see if it should play well)
23
24
25 Other OS: please add the relevant info.
26
27 2. You need to have the samples, download the .zip with highest version available in
28 https://www.dropbox.com/sh/1hz8lwy5utmg4p7/AADVEUEfKqPqlbizVMSBP4nHa?dl=0
29
30 Unzip the samples, better if outside the pyglet repo clone.
31
32 3. Ensure your local pyglet copy is at branch ffmpeg
33 cd repo_dir
34 hg update ffmpeg
35
36 4. ensure the pyglet in repo_dir is seen by python
37
38 Preparation is complete.
39
40 Running the tests
41 -----------------
42
43 cd repo_dir/examples/video_ffmpeg
44 python3 run_test_suite.py <samples dir>
45
46 Each sample will be played and the media_player state along the play will be recorded.
47 The raw info collected would be in <samples_dir>\testun_00\dbg (or _01, _02 ... for subsequent runs)
48 This is the info a developer may ask when troubleshooting an issue, it also includes info about the OS, python version, pyglet version.
49
50 Additionally, a preliminary results analysis is written to <samples_dir>/testrun_00/reports
51
52 For more detail and aptions look at the manual.
53
54 Windows note: In one machine has been observed that for each sample run it pop-ups an OS Message window with "C:\Windows\perf.dll not designed to run in Windows or it contains an error ..."; pressing the ok button will continue without noticeable problems. The same machine was running ok at some time; after a bunch of non-pyglet software updates this problem appeared. I will need some time to investigate this, but other than the annoying button click it seems to not cause problems.
55
56 Linux note: In one machine with Ubuntu 17.04 has been observed that for some testruns it pop-ups an OS Message window with "python3.5 crashed with SIGABRT in pa_mainloop_dispatch()", pressing the ok button testing continues at next sample.
57 Not always the same sample. Looks as a race condition, probably involving the code that sets a callback, because repeatdly playing a sample with media_player the console will eventually show a traceback with "Assertion 'c->callback' failed at pulsecore/socket-client.c:126, function do_call(). Aborting". The test_suite will retry to play crashed samples upto 5 times to get a clean debug reporting.