Showing posts with label Linux PC. Show all posts

Attach webcam to VirtualBox



1. Download and install VirtualBox_Extension_Pack
Check version of installed VirtualBox and download extension pack for this VirtualBox version

root# vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.1.30-118389.vbox-extpack

2. Enable USB controller

3. List up camera by below command
user$ VBoxManage list webcams
Video Input Devices: 1
.1 "Integrated_Webcam_HD: Integrate"
/dev/video0

4. Start virtual machine (ex: pi)
5. Attach camera to started machine
user$ vboxmanage controlvm "pi" webcam attach .1

with:
- pi: virtual machine name
- .1 : camera device list up by step 3

Note: Using VLC to test on virtual machine "pi"


Tuesday, December 31, 2019
Tag :

FFmpeg


1. Merge files
Create a file mylist.txt with all the files you want to have concatenated in the following form (lines starting with a # are ignored):

 # this is a comment  
 file '/path/to/file1.mp4'  
 file '/path/to/file2.mp4'  
 file '/path/to/file3.mp4'  

Note that these can be either relative or absolute paths. Then you can stream copy or re-encode your files:

 ffmpeg -f concat -i mylist.txt -c copy output.mp4  

2. Split

 ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output1.avi  

3. Convert

 ffmpeg -i input.avi output1.mp3 

 find . -exec ffmpeg -i {} {}.mp3 \;

Sunday, December 6, 2015
Tag :

Tự động mount phân vùng ổ cứng trong Fedora

1. Cài đặt phần mềm quản lý disk cho Fedora

 yum install gnome-disk-utility  

2. Sử dụng
- Mở theo đường dẫn:
Applications > Accessories > Disks

- Chọn phân vùng ổ cứng muốn auto mount, ví dụ là Data (NTFS)
- Chọn More Actions > Edit Mount Actions
- Các options như hình thứ 2





- Từ đây, mỗi lần máy tính bootup lên phân vùng Data sẽ tự động được mount vào.


Saturday, September 19, 2015
Tag :

- Copyright © Lập trình hệ thống nhúng Linux . Powered by Luong Duy Ninh -