Currently Viewing Posts Tagged video

How to make a slow motion video with Yi Action Camera

I have a Yi Action Camera. It is a low-end GoPro alternative.

  • Ambarella A7LS chipset, low-power digital signal processing (DSP) technology, high-definition (HD) H.264/ MJPEG video engine and a 700-MHz ARM11 applications processor. 
  • Sony IMX206, 1/2.3″, 16MP CMOS image sensor with Exmor R ability / Panasonic MN34120PA, 1/2.3″, 16MP CMOS image sensor 
  • 1080P/60FPS, 720P/120FPS, 848*480/240FPS 
  • Bluetooth (4.0BLE low power consumption) and Built-in (802.11 bgn) Single band 2.4G Wi-Fi 

 

I tried to use video capture function of this camera at the followin settings:

1280×720 @120fps

I took 10 seconds video and move the video to the computer. It just has a higher frame rate, but not slow motion.

 

Then I tried to find the software, which can help me convert the video to slow motion one.

At last, I found the free tool, ffmpeg.

Download the ffmpeg windows bin file.

https://ffmpeg.zeranoe.com/builds/

I chose the latest static windows 64bit build. It is a package. I only need the ffmpeg.exe file. Find it in the package and extract it to the working directory.

Put the original video file in the same folder.

Run the following command in the command window.

ffmpeg -i ydxj1364.mp4 -filter:v "setpts=5*PTS" -r 25 test-1364.mp4

ydxj1364.mp4 is the original video file.
test-1364.mp4 is the output file name.
-filter:v “setpts=5*PTS” is to slow down the video by 5 times.
-r 25 is to force the output file to 25fps.

The command I run above has the following output.

 

ffmpeg version N-93217-ga899b3b3c5 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20190212
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 47.102 / 58. 47.102
libavformat 58. 26.101 / 58. 26.101
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b9fce99cc0] unsupported color_parameter_type aclc
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ydxj1364.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 2019-02-22T12:55:06.000000Z
Duration: 00:00:11.91, start: 0.000000, bitrate: 18107 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 18063 kb/s, 119.88 fps, 119.88 tbr, 120k tbn, 239.76 tbc (default)
Metadata:
creation_time : 2019-02-22T12:55:06.000000Z
handler_name :
: XiaoYi AVC
encoder : XiaoYi AVC encoder
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001b9fceb9840] using SAR=1/1
[libx264 @ 000001b9fceb9840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001b9fceb9840] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 000001b9fceb9840] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test-1364.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
encoder : Lavf58.26.101
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
creation_time : 2019-02-22T12:55:06.000000Z
handler_name :
: XiaoYi AVC
encoder : Lavc58.47.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 1488 fps= 45 q=-1.0 Lsize= 25879kB time=00:00:59.40 bitrate=3569.0kbits/s dup=60 drop=0 speed=1.79x
video:25860kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.071957%
[libx264 @ 000001b9fceb9840] frame I:6 Avg QP:20.70 size:167506
[libx264 @ 000001b9fceb9840] frame P:381 Avg QP:23.36 size: 54533
[libx264 @ 000001b9fceb9840] frame B:1101 Avg QP:28.55 size: 4267
[libx264 @ 000001b9fceb9840] consecutive B-frames: 0.6% 1.9% 1.0% 96.5%
[libx264 @ 000001b9fceb9840] mb I I16..4: 17.5% 24.0% 58.5%
[libx264 @ 000001b9fceb9840] mb P I16..4: 0.4% 1.3% 1.6% P16..4: 41.6% 22.2% 18.2% 0.0% 0.0% skip:14.8%
[libx264 @ 000001b9fceb9840] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 48.7% 3.8% 1.5% direct: 2.2% skip:43.9% L0:53.8% L1:43.2% BI: 3.0%
[libx264 @ 000001b9fceb9840] 8x8 transform intra:34.9% inter:28.4%
[libx264 @ 000001b9fceb9840] coded y,uvDC,uvAC intra: 95.7% 40.8% 0.3% inter: 18.4% 7.4% 0.0%
[libx264 @ 000001b9fceb9840] i16 v,h,dc,p: 6% 11% 61% 21%
[libx264 @ 000001b9fceb9840] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 21% 23% 5% 7% 5% 12% 5% 11%
[libx264 @ 000001b9fceb9840] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 20% 20% 7% 7% 6% 9% 6% 11%
[libx264 @ 000001b9fceb9840] i8c dc,h,v,p: 71% 17% 11% 1%
[libx264 @ 000001b9fceb9840] Weighted P-Frames: Y:18.1% UV:0.0%
[libx264 @ 000001b9fceb9840] ref P L0: 55.6% 11.3% 22.8% 8.3% 2.0%
[libx264 @ 000001b9fceb9840] ref B L0: 92.5% 7.1% 0.4%
[libx264 @ 000001b9fceb9840] ref B L1: 96.3% 3.7%
[libx264 @ 000001b9fceb9840] kb/s:3559.20

Trendnet TV IP501W

Got a TrendNet TV-IP501W from Dell.ca. It costed me $82.31 Canadian dollors.
It is DISCONTINUED PRODUCT, based on TRENDnet official site.
Here is the feature list:
Wi-Fi compliant with IEEE 802.11b/g standards
Compatible with 802.11n wireless networks when set to 802.11n/g/b mixed mode
Wireless encryption support for WEP, WPA-PSK and WPA2-PSK standards
45 degree horizontal and 35 degree vertical viewing angle
4.57mm focal length and 1.9 F/No
4x digital zoom
Option to provide a hardwire network connection with the 1x 10/100Mbps Fast Ethernet port
High quality MJPEG video recording with up to 30 frames per second
Resolution up to VGA: 640 x 480 pixels
Included camera mounting kit
Hear sound from the built in microphone
Supports TCP/IP networking, SMTP Email, HTTP and other Internet protocols
Motion detection triggered email alerts and image upload via FTP
Multiple adjustable motion detection windows with just-in-time snapshot
Quick Universal Plug and Play (UPnP) installation
Complimentary IPView Pro 2.0 software: manage up to 32 IP View cameras *
Complimentary IPView software: supports Windows XP andVista operating systems
3-year limited warranty

Continue reading “Trendnet TV IP501W”

Component vs Composite vs S-Video vs Coaxial

When we are shopping for a TV or DVD player, etc, we are always confusing by the different connection. Let me keep these comparison for reference.
S-Video (Separated-Video) is better than a composite video connection.
S-Video

300px-Close-up_of_S-video_female_connector

A standard 4-pin S-Video cable connector, with each signal pin paired with its own ground pin.

320px-S-video-connection

Standard S-Video connection.
Composite

composite-video-input

The old “AV” standard connector. The common RCA connector is color-coded Yellow for Composite video.
The term “yellow-plug video” is recommended to help cut down on confusion between “composite” and “component” (which sound alike).
300px-Composite-video-cable

On consumer products a yellow RCA connector is typically used for composite video.
Component (not composite) Video [aka Analog Component Video; Y – Pb – Pr; red-green-blue]:
Uses a three jack cluster of wires with the ends color coded green, blue, and red. (does not include audio cable).
Y-Pb-Pr, or what we nowadays refer to as component video or color difference video, was invented to simplify video electronics and reduce the overall bandwidth requirements for transmitting video compared with RGB. In practice it provides one luminance signal with full horizontal resolution and two color signals with reduced horizontal resolution.
Y = Luminance, Pb = Chrominance 1, Pr = Chrominance 2

220px-Component_video_jack
YPbPr component video out on a consumer electronics device.

Continue reading “Component vs Composite vs S-Video vs Coaxial”

Video card driver makes Windows 2008 R2 Blue Screen

Yes, it is true. I have see so many blue screens on a brand new PC server with Windows 2008 Server R2.
The hardware including following items:
Intel i5 2500 CPU
1TB SATA2 Hard Disk
ASUS P8P67 R3 mother board
Corsair DDR3 Memory 4GBX2
ASUS HD5450 512M Video card.
etc.
I installed Windows Server 2008 R2 on it. 64bit OS is my choice.
After few days running, it has blue screen randomly. Sometimes it happened 4 days up. Sometimes it is 10 days up.
It is not predicted.
Blue Screen error code is as blow:
STOP:0x0000000A
or
STOP:0x0000003B
I tried update Intel Chip set driver, update BIOS of mother board. Change SATA cable, chage SATA port.
Still has this kind of error when Blue Screen.

Continue reading “Video card driver makes Windows 2008 R2 Blue Screen”

Eye-Fi Explore X2 8GB

I bought a new toy which can work smoothly with the digital camera.
Eye-Fi Explore X2 8GB

Have photos & videos fly from my camera to your computer & favorite sharing site – and see them land already organized by date.
It is simple and easy to use.
Now, I take pictures or videos. Then all these photos and videos will transfer to my DNS-323 FTP server for backup, and if my computer is on, to the designated folder.
There are tons of features you will like.

Continue reading “Eye-Fi Explore X2 8GB”

Solve the problem of ffmpeg on Dreamhost

I have an website which is hosted on Dreamhost.
I has a script to convert video from any formats to flv file, which can be played as flash video.
When I look at the error which made is shown as below.
ffmpeg unknown encoder mp3
It looks like mp3 audio is not supported by ffmpeg on Dreamhost. I think it is supported when I first write this script.
I checked the support history under Dreamhost control panel. The log said the account is moved to a new server last month. It may make something different.
OK. I google it and got the answer

Continue reading “Solve the problem of ffmpeg on Dreamhost”

See Through

This carton is made by a Chinese boy, born in 1980.
The name is “See Through”. The Chinese name is Da, Da Ge Da Xi Gua, which means, Fight, Fight for a Watermelon.
It is a cool video. I think you will like it.

Gloria has the first poem book

My little daughter, Gloria, goes to kindergartem this year. She get the first poem book from school, same as her big sister three years ago.
The poem book is a blue binder actually. Teacher will put poem paper inside day by day.
Now, it is “Hello school”

  • Archives