Movies¶
Movies in PS3's GTs uses PAMF, a Sony format.
Movie Playback¶
Decryption¶
Movies are normally encrypted using Salsa20. Assuming you've found the key in Base64 format (or hex), you can use GTToolsSharp to decrypt it.
Note
In GT6, the keys for movies can be found in the database/gt6/menudb.dat SQLite database, in the t_movie table.
GTToolsSharp cryptmovie -i <movie_file_path> -k <key as base64 string, or hex string>
If decrypted successfully the file header should show PAMF.
PAMF playback¶
PAMF Tools from PS3 SDK is required, you will have to find that yourself.
After that, you can use PS3StreamViewer to open and play a movie file.
Movie Creation¶
Requirements¶
- FFmpeg, used to convert a video to the appropriate pixel format
 - PAMF Tools from PS3 SDK (you will have to find that yourself)
 - A source video to convert to PAMF.
 
To convert to PAMF you will need to prepare your input video into specific formats.
Video¶
Video material file should be in .avi, in YUV2 format. This can be done in ffmpeg through the following command:
Where:
input_fileis your original video filebit_rateis the target video bit rate, which should match the original video file - this will control the quality of the converted video.Example: 2200kfor 2200 kbits- You can run 
ffprobe <input_file>to find out the original bit rate, example:"Duration: 00:00:42.66, start: 0.000000, bitrate: 2113 kb/s" <output_file>is the output file, which must ends by .avi. Example:output_video.avi
Audio Track¶
You also need to extract the audio track from the original video unless you already have it seperated. This is done with:
ffmpeg -i <input_file> -vn -acodec pcm_s16le -ar 48000 -ac 2 <output_file>
Where:
input_fileis your original video file<output_file>is the output file, which must ends by .wav. Example:output_audio.wav
Tip
You can (and should) also tweak the ffmpeg arguments to your requirements/liking.
Creating the PAM¶
Now that you (hopefully) have one AVI, and one WAV file, you can proceed to create the PAM file.
- Open PS3 Stream Composer.
 - In 
File, click onNew. - Fill in 
Clip NameandProject Namewith anything you want, then pressNext. Tweak anything if you need to after that, and/or just pressFinish. - On the left, you should see a pane named 
Clip Setting. ExpandVideo, then you should be able to seeStream #1. Right click on it, then click onVideo Source Setting. - Click 
Open, then select the AVI file you made earlier. If everything is correct your should be able to see the video lengths and some other details. PressOK. - Now in the 
Clip Settingpane, ExpandAudio, right click onStream #1and click onAudio Source Setting. - Same thing here, open then select your WAV file you made earlier, then 
OK. - Both should now display as 
Not Encoded. - At the top bar, look for 
Run, then click onEncode + Multiplex + PAMF Compose. This will create yourPAMFfile. Depending on your PC specs, this may take a while. - Once done, PAMF file should be created. In File Explorer, head to Documents, then 
PLAYSTATION(R)3 Stream Composer\MuxWork\<project_name>\<project_name>. If you see a PAM file, you're done. 
Encrypting the file¶
TODO