Last active
December 8, 2016 06:54
-
-
Save chianingwang/5e9b7206080d4d2a0b18f0eedcba98b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user@ubuntu:~/Desktop/K8S$ kubectl describe jobs/demo2 | |
Name: demo2 | |
Namespace: default | |
Image(s): chianingwang/ffmpeg_swift,chianingwang/ffmpeg_swift | |
Selector: controller-uid=d2a1963d-bd11-11e6-8e20-08002713bc21 | |
Parallelism: 1 | |
Completions: 1 | |
Start Time: Wed, 07 Dec 2016 22:44:52 -0800 | |
Labels: <none> | |
Pods Statuses: 1 Running / 0 Succeeded / 0 Failed | |
No volumes. | |
Events: | |
FirstSeen LastSeen Count From SubobjectPath Type Reason Message | |
--------- -------- ----- ---- ------------- -------- ------ ------- | |
1m 1m 1 {job-controller } Normal SuccessfulCreate Created pod: demo2-7pp9p | |
user@ubuntu:~/Desktop/K8S$ kubectl describe pods demo2-7pp9p | |
Name: demo2-7pp9p | |
Namespace: default | |
Node: ubuntu/10.0.2.15 | |
Start Time: Wed, 07 Dec 2016 22:44:52 -0800 | |
Labels: controller-uid=d2a1963d-bd11-11e6-8e20-08002713bc21 | |
job-name=demo2 | |
Status: Running | |
IP: 10.32.0.21 | |
Controllers: Job/demo2 | |
Containers: | |
demo2-1: | |
Container ID: docker://08bbbc5f1e71dc222e794a70db1c0004c6e8405b1aa6346ec9251d4ce084e050 | |
Image: chianingwang/ffmpeg_swift | |
Image ID: docker://sha256:077773661f73bc800b333fb0eae601e949f11a597d9ac075baba343baa75db9b | |
Port: | |
Command: | |
/bin/bash | |
-c | |
echo '===ffmpeg covert mp4===' && time ffmpeg -ss 00:00:00 -i http://172.28.128.12/v1/AUTH_ss/upload_1080/bbb_sunflower_1080_2min.mp4 -t 60 -vcodec libx264 -s 1280x720 -b 1750k -acodec libmp3lame -ac 2 -ab 160k -threads 4 output_1.mp4 && echo '===upload bucket===' && swift -A http://172.28.128.12/auth/v1.0 -U ss -K ss upload bucket output_1.mp4 | |
State: Running | |
Started: Wed, 07 Dec 2016 22:46:23 -0800 | |
Ready: True | |
Restart Count: 0 | |
Volume Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from default-token-28abn (ro) | |
Environment Variables: <none> | |
demo2-2: | |
Container ID: docker://d437444cb305760f47cb71a742fdf848fd3a152c70908a0ee7aff20fad4a4a39 | |
Image: chianingwang/ffmpeg_swift | |
Image ID: docker://sha256:077773661f73bc800b333fb0eae601e949f11a597d9ac075baba343baa75db9b | |
Port: | |
Command: | |
/bin/bash | |
-c | |
echo '===ffmpeg covert mp4===' && time ffmpeg -ss 00:01:00 -i http://172.28.128.12/v1/AUTH_ss/upload_1080/bbb_sunflower_1080_2min.mp4 -t 60 -vcodec libx264 -s 1280x720 -b 1750k -acodec libmp3lame -ac 2 -ab 160k -threads 4 output_2.mp4 && echo '===upload bucket===' && swift -A http://172.28.128.12/auth/v1.0 -U ss -K ss upload bucket output_2.mp4 | |
State: Running | |
Started: Wed, 07 Dec 2016 22:47:26 -0800 | |
Ready: True | |
Restart Count: 0 | |
Volume Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from default-token-28abn (ro) | |
Environment Variables: <none> | |
Conditions: | |
Type Status | |
Initialized True | |
Ready True | |
PodScheduled True | |
Volumes: | |
default-token-28abn: | |
Type: Secret (a volume populated by a Secret) | |
SecretName: default-token-28abn | |
QoS Class: BestEffort | |
Tolerations: <none> | |
Events: | |
FirstSeen LastSeen Count From SubobjectPath Type Reason Message | |
--------- -------- ----- ---- ------------- -------- ------ ------- | |
2m 2m 1 {default-scheduler } Normal Scheduled Successfully assigned demo2-7pp9p to ubuntu | |
2m 1m 2 {kubelet ubuntu} spec.containers{demo2-1} Normal Pulling pulling image "chianingwang/ffmpeg_swift" | |
1m 1m 1 {kubelet ubuntu} spec.containers{demo2-1} Normal Created Created container with docker id 08bbbc5f1e71; Security:[seccomp=unconfined] | |
1m 1m 1 {kubelet ubuntu} spec.containers{demo2-1} Normal Started Started container with docker id 08bbbc5f1e71 | |
1m 6s 2 {kubelet ubuntu} spec.containers{demo2-1} Normal Pulled Successfully pulled image "chianingwang/ffmpeg_swift" | |
6s 6s 1 {kubelet ubuntu} spec.containers{demo2-2} Normal Created Created container with docker id d437444cb305; Security:[seccomp=unconfined] | |
6s 6s 1 {kubelet ubuntu} spec.containers{demo2-2} Normal Started Started container with docker id d437444cb305 | |
user@ubuntu:~/Desktop/K8S$ kubectl logs demo2-7pp9p demo2-1 | |
===ffmpeg covert mp4=== | |
ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers | |
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609 | |
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv | |
libavutil 54. 31.100 / 54. 31.100 | |
libavcodec 56. 60.100 / 56. 60.100 | |
libavformat 56. 40.101 / 56. 40.101 | |
libavdevice 56. 4.100 / 56. 4.100 | |
libavfilter 5. 40.101 / 5. 40.101 | |
libavresample 2. 1. 0 / 2. 1. 0 | |
libswscale 3. 1.101 / 3. 1.101 | |
libswresample 1. 2.101 / 1. 2.101 | |
libpostproc 53. 3.100 / 53. 3.100 | |
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://172.28.128.12/v1/AUTH_ss/upload_1080/bbb_sunflower_1080_2min.mp4': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
title : Big Buck Bunny, Sunflower version | |
artist : Blender Foundation 2008, Janus Bager Kristensen 2013 | |
composer : Sacha Goedegebure | |
encoder : Lavf56.40.101 | |
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net | |
genre : Animation | |
Duration: 00:02:00.02, start: 0.023021, bitrate: 1858 kb/s | |
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1686 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default) | |
Metadata: | |
handler_name : VideoHandler | |
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) | |
Metadata: | |
handler_name : SoundHandler | |
Please use -b:a or -b:v, -b is ambiguous | |
[libx264 @ 0xb9ddc0] using SAR=1/1 | |
[libx264 @ 0xb9ddc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX | |
[libx264 @ 0xb9ddc0] profile High, level 3.2 | |
[libx264 @ 0xb9ddc0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=4 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=abr mbtree=1 bitrate=1750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 | |
Output #0, mp4, to 'output_1.mp4': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
title : Big Buck Bunny, Sunflower version | |
artist : Blender Foundation 2008, Janus Bager Kristensen 2013 | |
composer : Sacha Goedegebure | |
genre : Animation | |
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net | |
encoder : Lavf56.40.101 | |
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1750 kb/s, 60 fps, 15360 tbn, 60 tbc (default) | |
Metadata: | |
handler_name : VideoHandler | |
encoder : Lavc56.60.100 libx264 | |
Stream #0:1(und): Audio: mp3 (libmp3lame) (i[0][0][0] / 0x0069), 48000 Hz, stereo, s16p, 160 kb/s (default) | |
Metadata: | |
handler_name : SoundHandler | |
encoder : Lavc56.60.100 libmp3lame | |
Stream mapping: | |
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) | |
Stream #0:1 -> #0:1 (mp3 (native) -> mp3 (libmp3lame)) | |
Press [q] to stop, [?] for help | |
frame= 3600 fps= 21 q=-1.0 Lsize= 14378kB time=00:01:00.00 bitrate=1963.0kbits/s dup=1 drop=0 | |
video:13117kB audio:1172kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.619295% | |
[libx264 @ 0xb9ddc0] frame I:17 Avg QP:18.44 size:107393 | |
[libx264 @ 0xb9ddc0] frame P:1038 Avg QP:22.85 size: 8831 | |
[libx264 @ 0xb9ddc0] frame B:2545 Avg QP:28.54 size: 958 | |
[libx264 @ 0xb9ddc0] consecutive B-frames: 3.9% 3.1% 6.8% 86.1% | |
[libx264 @ 0xb9ddc0] mb I I16..4: 23.6% 53.3% 23.1% | |
[libx264 @ 0xb9ddc0] mb P I16..4: 1.2% 1.8% 0.2% P16..4: 27.7% 9.5% 6.5% 0.0% 0.0% skip:53.0% | |
[libx264 @ 0xb9ddc0] mb B I16..4: 0.2% 0.0% 0.0% B16..8: 25.5% 0.4% 0.0% direct: 0.6% skip:73.3% L0:44.6% L1:54.6% BI: 0.8% | |
[libx264 @ 0xb9ddc0] final ratefactor: 22.65 | |
[libx264 @ 0xb9ddc0] 8x8 transform intra:51.0% inter:71.2% | |
[libx264 @ 0xb9ddc0] coded y,uvDC,uvAC intra: 32.6% 52.0% 34.8% inter: 3.8% 4.8% 0.7% | |
[libx264 @ 0xb9ddc0] i16 v,h,dc,p: 65% 20% 5% 10% | |
[libx264 @ 0xb9ddc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 33% 4% 5% 5% 5% 5% 5% | |
[libx264 @ 0xb9ddc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 18% 14% 6% 9% 8% 7% 8% 6% | |
[libx264 @ 0xb9ddc0] i8c dc,h,v,p: 61% 20% 14% 6% | |
[libx264 @ 0xb9ddc0] Weighted P-Frames: Y:4.3% UV:4.3% | |
[libx264 @ 0xb9ddc0] ref P L0: 59.8% 16.1% 15.6% 8.4% 0.0% | |
[libx264 @ 0xb9ddc0] ref B L0: 90.1% 7.2% 2.7% | |
[libx264 @ 0xb9ddc0] ref B L1: 94.7% 5.3% | |
[libx264 @ 0xb9ddc0] kb/s:1790.79 | |
real 2m54.474s | |
user 3m33.408s | |
sys 0m7.692s | |
===upload bucket=== | |
output_1.mp4 | |
user@ubuntu:~/Desktop/K8S$ kubectl logs demo2-7pp9p demo2-2 | |
===ffmpeg covert mp4=== | |
ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers | |
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609 | |
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv | |
libavutil 54. 31.100 / 54. 31.100 | |
libavcodec 56. 60.100 / 56. 60.100 | |
libavformat 56. 40.101 / 56. 40.101 | |
libavdevice 56. 4.100 / 56. 4.100 | |
libavfilter 5. 40.101 / 5. 40.101 | |
libavresample 2. 1. 0 / 2. 1. 0 | |
libswscale 3. 1.101 / 3. 1.101 | |
libswresample 1. 2.101 / 1. 2.101 | |
libpostproc 53. 3.100 / 53. 3.100 | |
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://172.28.128.12/v1/AUTH_ss/upload_1080/bbb_sunflower_1080_2min.mp4': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
title : Big Buck Bunny, Sunflower version | |
artist : Blender Foundation 2008, Janus Bager Kristensen 2013 | |
composer : Sacha Goedegebure | |
encoder : Lavf56.40.101 | |
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net | |
genre : Animation | |
Duration: 00:02:00.02, start: 0.023021, bitrate: 1858 kb/s | |
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1686 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default) | |
Metadata: | |
handler_name : VideoHandler | |
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) | |
Metadata: | |
handler_name : SoundHandler | |
Please use -b:a or -b:v, -b is ambiguous | |
[libx264 @ 0x1425dc0] using SAR=1/1 | |
[libx264 @ 0x1425dc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX | |
[libx264 @ 0x1425dc0] profile High, level 3.2 | |
[libx264 @ 0x1425dc0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=4 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=abr mbtree=1 bitrate=1750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 | |
Output #0, mp4, to 'output_2.mp4': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
title : Big Buck Bunny, Sunflower version | |
artist : Blender Foundation 2008, Janus Bager Kristensen 2013 | |
composer : Sacha Goedegebure | |
genre : Animation | |
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net | |
encoder : Lavf56.40.101 | |
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1750 kb/s, 60 fps, 15360 tbn, 60 tbc (default) | |
Metadata: | |
handler_name : VideoHandler | |
encoder : Lavc56.60.100 libx264 | |
Stream #0:1(und): Audio: mp3 (libmp3lame) (i[0][0][0] / 0x0069), 48000 Hz, stereo, s16p, 160 kb/s (default) | |
Metadata: | |
handler_name : SoundHandler | |
encoder : Lavc56.60.100 libmp3lame | |
Stream mapping: | |
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) | |
Stream #0:1 -> #0:1 (mp3 (native) -> mp3 (libmp3lame)) | |
Press [q] to stop, [?] for help | |
frame= 3600 fps= 21 q=-1.0 Lsize= 13871kB time=00:01:00.00 bitrate=1893.8kbits/s | |
video:12610kB audio:1172kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.644413% | |
[libx264 @ 0x1425dc0] frame I:22 Avg QP:16.17 size:123773 | |
[libx264 @ 0x1425dc0] frame P:974 Avg QP:19.70 size: 6909 | |
[libx264 @ 0x1425dc0] frame B:2604 Avg QP:24.87 size: 1329 | |
[libx264 @ 0x1425dc0] consecutive B-frames: 2.2% 1.7% 7.3% 88.8% | |
[libx264 @ 0x1425dc0] mb I I16..4: 10.5% 63.8% 25.7% | |
[libx264 @ 0x1425dc0] mb P I16..4: 0.8% 2.7% 0.4% P16..4: 18.8% 6.5% 3.3% 0.0% 0.0% skip:67.4% | |
[libx264 @ 0x1425dc0] mb B I16..4: 0.0% 0.2% 0.1% B16..8: 12.0% 1.1% 0.2% direct: 0.4% skip:86.0% L0:38.4% L1:57.1% BI: 4.5% | |
[libx264 @ 0x1425dc0] final ratefactor: 19.50 | |
[libx264 @ 0x1425dc0] 8x8 transform intra:66.8% inter:78.8% | |
[libx264 @ 0x1425dc0] coded y,uvDC,uvAC intra: 62.9% 77.8% 44.5% inter: 3.5% 4.0% 0.3% | |
[libx264 @ 0x1425dc0] i16 v,h,dc,p: 11% 23% 5% 61% | |
[libx264 @ 0x1425dc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 20% 14% 7% 9% 8% 9% 8% 8% | |
[libx264 @ 0x1425dc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 12% 7% 11% 9% 9% 7% 6% | |
[libx264 @ 0x1425dc0] i8c dc,h,v,p: 47% 24% 18% 12% | |
[libx264 @ 0x1425dc0] Weighted P-Frames: Y:0.0% UV:0.0% | |
[libx264 @ 0x1425dc0] ref P L0: 65.6% 13.6% 16.5% 4.4% | |
[libx264 @ 0x1425dc0] ref B L0: 90.7% 8.1% 1.2% | |
[libx264 @ 0x1425dc0] ref B L1: 97.2% 2.8% | |
[libx264 @ 0x1425dc0] kb/s:1721.54 | |
real 2m50.227s | |
user 3m20.552s | |
sys 0m8.596s | |
===upload bucket=== | |
output_2.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment