<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Presto C++ mp4 file parser
In this notebook we will show how to use the presto mp4 file parser.
Note
Step1:  Lets see which files we have
Step2:  First step is to run the configure step (--bundle-path refers to where external dependencies are downloaded)
Step3:  You can see all the available options by running ./waf --help. 
After configuring the next step is to build the library.
Step4:  Parsing a mp4 file
Lets try to parse an mp4 file. First we need to download one
Step5:  To see the mp4 file content we can use the complete_parser example
<ASSISTANT_TASK:>
Python Code:
%%bash
rm -rf petro
git clone git@github.com:steinwurf/petro.git
Explanation: Presto C++ mp4 file parser
In this notebook we will show how to use the presto mp4 file parser.
Note: all cells starting with %% contains commands executed in the shell/terminal.
Building the library
The first thing we need to do is to build the library. The library is hosted on github https://github.com/steinwurf/petro. In case we already clone it we remove it first, this is only for the sake of this notebook.
End of explanation
%%bash 
ls petro
Explanation: Lets see which files we have:
End of explanation
%%bash 
cd petro
./waf configure --bundle-path=~/dev/bundle_dependencies
Explanation: First step is to run the configure step (--bundle-path refers to where external dependencies are downloaded):
End of explanation
%%bash
cd petro
./waf build
Explanation: You can see all the available options by running ./waf --help. 
After configuring the next step is to build the library.
End of explanation
%%bash
wget http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4
Explanation: Parsing a mp4 file
Lets try to parse an mp4 file. First we need to download one:
End of explanation
%%bash
./petro/build/linux/examples/complete_parser BigBuckBunny_320x180.mp4 
Explanation: To see the mp4 file content we can use the complete_parser example:
End of explanation
<END_TASK>