# Example: Creating a 3GP file from the outgoing stream

The following example assumes the linemon utility is used to record the outgoing data to a 3G-324M terminal to line.out file and the h324.log is the corresponding Video Access H.324M Middleware log file.

The following table describes two possible scenarios that assume the session is negotiated with H.263 video codec and AMR audio codec:

This command... | Sends output to...
h324Extract -3gp h324.log line.out | out.3gp (assuming the 3gpapp utility is accessible from the same directory)
h324Extract -3gp –o h324.log line.out test.3gp | test.3gp (assuming the 3gpapp utility is accessible from the same directory)