Skip to content

Commit 5c675f3

Browse files
committed
ffmpeg good ogv command
1 parent b6d4a5b commit 5c675f3

File tree

4 files changed

+80
-21
lines changed

4 files changed

+80
-21
lines changed

buildroot.md

+12
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ Tested on Ubuntu 16.04.
3232
# cat board/qemu/x86_64/readme.txt
3333
qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user
3434

35+
### QEMU x86 nographic
36+
37+
https://www.hiroom2.com/2016/05/20/ubuntu-16-04-build-buildroot-and-run-qemu/
38+
39+
`qemu -nographic -append 'console=ttyS0'`
40+
41+
At Buildroot 7e85734709e0da78cc399c1b85655528e2d5f209 requires:
42+
43+
sed -i -e 's/BR2_TARGET_GENERIC_GETTY_PORT="tty1"/BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"/g' .config
44+
45+
TODO: but why does it work on: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/b8f190cc24b4f7474894b68a5510a8f3d767843d even without changing it? Buildroot version difference?
46+
3547
## ARM
3648

3749
Full QEMU command documented under `board/qemu/*/readme.txt`.

docker/README.md

+53-20
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,46 @@ Docker was developed by a company called dotCloud Inc, and open sourced. dotClou
2121

2222
## Getting started
2323

24-
List all commands:
24+
Download Ubuntu image, and create a new container from it named `ub16`:
2525

26-
sudo docker help
26+
sudo docker run --name ub16 -it ubuntu:16.04 bash
2727

28-
Get help on one command:
28+
Write a file there:
2929

30-
sudo docker help build
30+
date >f
3131

32-
Good info on the manpages:
32+
Ctrl + D kills the VM, as can be seen by the empty:
3333

34-
man docker
35-
man docker-run
34+
sudo docker ps
3635

37-
Status of the currently running VMs:
36+
which lists all containers. To get turn it back on:
3837

39-
sudo docker info
38+
sudo docker start -ai ub16
39+
40+
To detach without turning it off enter `Ctrl-P Ctrl-Q`: <https://stackoverflow.com/questions/19688314/how-do-you-attach-and-detach-from-dockers-process>
41+
42+
To open a new shell in a running container <https://stackoverflow.com/questions/39794509/how-to-open-multiple-terminals-in-docker> run:
43+
44+
sudo docker exec -it bash
45+
46+
And check that `f` is present:
47+
48+
cat f
49+
50+
## Help
51+
52+
List all commands:
4053

41-
Run a hello world and exit:
54+
sudo docker help
4255

43-
docker run hello-world
56+
Get help on one command:
4457

45-
Run Ubuntu shell: TODO which is the default version:
58+
sudo docker help build
4659

47-
sudo docker run -it ubuntu bash
48-
sudo docker run -it ubuntu:16.04 bash
60+
Good info on the manpages:
4961

50-
Ctrl + D exits shell, `sudo docker info` says it is still running, how to exit?
62+
man docker
63+
man docker-run
5164

5265
## Images
5366

@@ -178,13 +191,33 @@ Same goes for a bare `CMD nginx`, since by default Nginx turns itself into a bac
178191

179192
Share directory between guest and host:
180193

181-
sudo docker run -v /tmp ubuntu date > /tmp/docker
182-
cat /tmp/docker
194+
sudo docker run -v path/in/host:/full/path/in/guest ubuntu date > /full/path/in/guest/mydate
195+
cat path/in/host/mydate
196+
197+
It gets updated immediately.
198+
199+
Can only take absolute paths on guest. Efficient for large files, unlike some VM schemes. The paths get created if they don't exist.
200+
201+
Only works for new containers: <https://stackoverflow.com/questions/28302178/how-can-i-add-a-volume-to-an-existing-docker-container>
202+
203+
### GUI apps
204+
205+
https://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker-container
206+
207+
sudo docker run --net=host
208+
209+
Then in guest:
210+
211+
apt-get install x11vnc xvfb
212+
213+
Then in host:
214+
215+
sudo apt-get install vinagre
216+
vinagre localhost:5900
183217

184-
date > /tmp/docker
185-
sudo docker run -v /tmp ubuntu cat /tmp/docker
218+
## Port forwarding
186219

187-
Can only take absolute paths. Efficient for large files, unlike some VM schemes.
220+
https://stackoverflow.com/questions/17770902/forward-host-port-to-docker-container
188221

189222
## ps
190223

ffmpeg.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,14 @@ Best command:
199199
- <http://ffmpeg.org/faq.html#How-can-I-concatenate-video-files>
200200
- <http://stackoverflow.com/questions/7333232/concatenate-two-mp4-files-using-ffmpeg>
201201

202-
Best command:
202+
Did not upload correctly to YouTube in 2018:
203203

204204
ffmpeg -i concat:"in1.ogv|in2.ogv" -c copy out.ogv
205205

206+
but the other method did:
207+
208+
ffmpeg -i in1.ogv -i in2.ogv -filter_complex "[0:v] [0:a] [1:v] [1:a] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" out.ogv
209+
206210
## Merge audio and video
207211

208212
<http://superuser.com/questions/277642/how-to-merge-audio-and-video-file-in-ffmpeg>

qemu.md

+10
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ How to access the QEMU monitor there (Ctrl + Alt + 1/2 on GUI): <http://stackove
117117

118118
quit
119119

120+
## Display
121+
122+
### vnc
123+
124+
./qemu-system-x86_64 -vnd :0
125+
126+
Then on host:
127+
128+
vinagre localhost:5900
129+
120130
## Increase screen size
121131

122132
TODO

0 commit comments

Comments
 (0)