Skip to content

Instantly share code, notes, and snippets.

sudo apt-get install vmfs6-tools parallel
find /dev/sd*1 -print0 | parallel -0 "sudo vmfs6-fuse {} /mnt/vmfs-{/}"
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/bash.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/coreutils.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/libnl.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/linux-3.18.18.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/glibc.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/debianutils_4.8.1.tar.xz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/grep.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/ifupdown.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/iproute2.tar.gz
http://scw3sr02elb001-529496401.ap-northeast-1.elb.amazonaws.com/oss/dsc/DC-BGH1/iptables-1.6.1.tar.bz2
ffmpeg -y -raw_format yuv422p10 -timecode_format rp188any -video_input hdmi -f decklink -i 'UltraStudio Recorder 3G' -c:a aac_at -c:v hevc_videotoolbox -profile:v main10 -realtime:v true -b:v 8M -aac_at_mode cbr -b:a 256K -color_primaries bt2020 -color_trc arib-std-b67 -color_range tv -colorspace bt2020_ncl -movflags frag_keyframe+empty_moov -tag:v hvc1 -f hls -hls_time 1 -hls_list_size 4 -hls_allow_cache 0 -hls_segment_options mpegts_flags=+pat_pmt_at_frames+resend_headers -hls_flags delete_segments+append_list -http_persistent 1 -method POST 'https://a.upload.youtube.com/http_upload_hls?cid=KEYHERE&copy=0&file=master.m3u8'
Decoding success! CMSampleBuffer 0x147106370 retainCount: 3 allocator: 0x1fb27c000
invalid = NO
dataReady = YES
makeDataReadyCallback = 0x0
makeDataReadyRefcon = 0x0
buffer-level attachments:
EditBoundary(P) = true
formatDescription = (null)
sbufToTrackReadiness = 0x0
numSamples = 0
dave@mbp Downloads % ffprobe -probesize 42M -f avfoundation -framerate 29.970000 -i "1"
[avfoundation @ 0x12f6056b0] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x12f6056b0] Supported pixel formats:
[avfoundation @ 0x12f6056b0] uyvy422
[avfoundation @ 0x12f6056b0] yuyv422
[avfoundation @ 0x12f6056b0] nv12
[avfoundation @ 0x12f6056b0] 0rgb
[avfoundation @ 0x12f6056b0] bgr0
[avfoundation @ 0x12f6056b0] Overriding selected pixel format to use uyvy422 instead.
Input #0, avfoundation, from '1':
General
Complete name : /mnt/ios/NINJAV_S001_S001_T019.MOV
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 2005.03 (qt )
File size : 2.12 GiB
Duration : 13 s 680 ms
Overall bit rate mode : Variable
Overall bit rate : 1 331 Mb/s
Encoded date : UTC 2022-04-06 14:00:22
General
Complete name : NINJAV_S001_S001_T012.MOV
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 2005.03 (qt )
File size : 8.09 GiB
Duration : 31 s 114 ms
Overall bit rate mode : Variable
Overall bit rate : 2 235 Mb/s
Encoded date : UTC 2022-04-06 13:13:21
@Manouchehri
Manouchehri / dmesg.txt
Created April 4, 2022 12:28
ZimaBoard 216
casaos@CasaOS:~$ sudo dmesg
[ 0.000000] Linux version 5.10.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.106-1 (2022-03-17)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-13-amd64 root=UUID=c3914625-41ca-4c63-b2ec-b786700f468c ro quiet
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[3]: 576, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 640, xstate_sizes[4]: 64
[ 0.000000] x86/fpu: Enabled xstate features 0x1b, context size is 704 bytes, using 'compacted' format.
@Manouchehri
Manouchehri / gist:e06c1538427b3ee8cbaff36607d6e891
Created March 31, 2022 12:30
List of encoders on M1 Max (macOS 12.3 21E230)
Optional(<__NSArrayM 0x600003c48750>(
{
CodecName = "24-bit RGB";
CodecType = 24;
DisplayName = "24-bit RGB";
EncoderID = "com.apple.videotoolbox.videoencoder.24rgb";
EncoderName = "Apple 24-bit RGB";
PerformanceRating = 0;
},
{