pdftk book.pdf dump_data output report.txt
Now edit "report.txt" and save the changes.
Update the PDF with this new info:
pdftk book.pdf update_info report.txt output bookcopy.pdf
pdftk book.pdf dump_data output report.txt
Now edit "report.txt" and save the changes.
Update the PDF with this new info:
pdftk book.pdf update_info report.txt output bookcopy.pdf
We have already inspected the file, so let's extract the streams:
mkvextract tracks video.mkv 1:video.h264 2:audio.ac3
Then, we need to transcode the audio stream to AAC (let's use high-quality VBR):
ffmpeg -i audio.ac3 -acodec libfaac -aq 255 -ar 44100 -ac 2 -async 1 -vsync 1 audio.aac
Now, we'll use MP4Box to remux the initial video stream and the new audio stream into an MP4 container:
MP4Box -new -add audio.aac -add video.h264 -fps 23.976 video.mp4
AAC import - sample rate 44100 - MPEG-4 audio - 2 channels
AVC-H264 import - frame size 1280 x 720 at 23.976 FPS
Import results: 60146 samples - Slices: 1027 I 36894 P 22225 B - 1 SEI - 968 IDR
Stream uses B-slice references - max frame delay 2
Saving video-ps3.mp4: 0.500 secs Interleaving
That's it :)
The following bash command adds Medibuntu's repository to Ubuntu. It also adds Medibuntu's GPG key to your keyring, which is needed to authenticate the Medibuntu packages.
This command should be run in the Terminal (Applications → Accessories → Terminal):
sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
Medibuntu's repository is deactivated by upgrading to a newer Ubuntu release, so you should run this command again after the release upgrade.
You may also wish to add the following packages. The first will cause many apps from the Medibuntu repository to appear in Ubuntu Software Center (Ubuntu 9.10+) or Add/Remove Applications (versions prior to 9.10). The second will allow users to generate crash reports against Medibuntu packages and submit them to the Medibuntu bugtracker.
sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu
The first time I tried this from Squidly back to stock Froyo, it worked. When it rebooted, I had to reactive my phone by dialing *228 and choosing option 1. Then I was able to receive the OTA Gingerbread update from Verizon.
The second time I needed to do this a few months later, before taking my phone in for possible warranty replacement, I got the "PASS" but when booting up normally, it always got stuck in a boot loop at the droid red light. I always had to pull the battery. Finally, I had to boot to the recovery menu by holding down the "x" key on the slide-out keyboard while powering up the phone. After booting that way, I saw a triangle with a "!" inside. At that screen, press the search key (I used the magnifying glass key on the slide-out). That brings it to the recovery menu where the volume keys can be used for navigation and the camera key to choose. I chose "factory data reset." It returned me to brand-new, out-of-the-box configuration with Froyo 2.2. I had to step through activating the phone, etc. just like when it was new. Then I went to Settings, About Phone, System Updates. That started the OTA Gingerbread update. After the long download, it installed and rebooted successfully to a stock OTA Gingerbread.
Now, if desired, it can be rooted with Pete's Droid 3 Linux root script, then install ROM Manager, then download and install whatever replacement ROM using ClockworkMod Recovery directly or simply using the option in ROM Manager.
ssh-keygen -b 2048 -C Droid2 -t rsa -f id_rsa_droid2cat id_rsa_droid2.pub >> .ssh/authorized_keys