Skip to content

Instantly share code, notes, and snippets.

@jiehanzheng
Created February 17, 2022 04:59
Show Gist options
  • Save jiehanzheng/462aed346474089ca0d593e7037c6f27 to your computer and use it in GitHub Desktop.
Save jiehanzheng/462aed346474089ca0d593e7037c6f27 to your computer and use it in GitHub Desktop.
ffmpeg command: /homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -loglevel level+debug -hide_banner -f mp4 -i pipe:0 -map 0:v -vcodec h264_v4l2m2m -pix_fmt yuv420p -profile:v 77 -level:v 4.0 -preset veryfast -b:v 2000k -bufsize 4000k -maxrate 2000k -force_key_frames expr:gte(t, n_forced * 4) -fflags +genpts -reset_timestamps 1 -movflags frag_keyframe+empty_moov+default_base_moof -map 0:a -acodec copy -f mp4 pipe:1
[debug] Splitting the commandline.
[debug] Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'level+debug'.
[debug] Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
[debug] Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
[debug] Reading option '-i' ... matched as input url with argument 'pipe:0'.
[debug] Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:v'.
[debug] Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_v4l2m2m'.
[debug] Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
[debug] Reading option '-profile:v' ... matched as option 'profile' (set profile) with argument '77'.
[debug] Reading option '-level:v' ... matched as AVOption 'level:v' with argument '4.0'.
[debug] Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
[debug] Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '2000k'.
[debug] Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '4000k'.
[debug] Reading option '-maxrate' ...
matched as AVOption 'maxrate' with argument '2000k'.
[debug] Reading option '-force_key_frames' ... matched as option 'force_key_frames' (force key frames at specified timestamps) with argument 'expr:gte(t, n_forced * 4)'.
[debug] Reading option '-fflags' ... matched as AVOption 'fflags' with argument '+genpts'.
[debug] Reading option '-reset_timestamps' ... matched as AVOption 'reset_timestamps' with argument '1'.
[debug] Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'frag_keyframe+empty_moov+default_base_moof'.
[debug] Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:a'.
[debug] Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
[debug] Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
[debug] Reading option 'pipe:1' ... matched as output url.
[debug] Finished splitting the commandline.
[debug] Parsing a group of options: global .
[debug] Applying option loglevel (set logging level) with argument level+debug.
[debug] Applying option hide_banner (do not show program banner) with argument 1.
[debug] Successfully parsed a group of options.
[debug] Parsing a group of options: input url pipe:0.
[debug] Applying option f (force format) with argument mp4.
[debug] Successfully parsed a group of options.
[debug] Opening an input file: pipe:0.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] Opening 'pipe:0' for reading
[pipe @ 0xaaaac05d0450] [debug] Setting default whitelist 'crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] ISO: File Type Major Brand: avc1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] ISO: File Type Major Brand: dash
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516771450, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875616609, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] Before avformat_find_stream_info() pos: 1449 bytes read:33977 seeks:0 nb_streams:2
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] Format yuvj420p chosen by get_format().
[h264 @ 0xaaaac05d20f0] [verbose] Reinit context to 1920x1088, pix_fmt: yuvj420p
[h264 @ 0xaaaac05d20f0] [debug] Frame num gap 57 55
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516782250, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875624801, using it for dts
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516793051, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875628897, using it for dts
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug]
nal_unit_type: 5(IDR), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516803851, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875636065, using it for dts
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516814650, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875641185, using it for dts
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05d20f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516825450, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875645281, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516836251, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875653473, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.416667 0.018094
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.416667 0.018094
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.500000 0.013293
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.583333 0.009230
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.666667 0.005906
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.666667 0.005906
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.750000 0.003321
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.833333 0.001475
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.833333 0.001475
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.916667 0.000368
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 24.916667 0.000368
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.000000 0.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.000000 0.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.083333 0.000371
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.083333 0.000371
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.166667 0.001480
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.250000 0.003329
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.250000 0.003329
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.333333 0.005916
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.416667 0.009242
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.500000 0.013308
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.500000 0.013308
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 25.583333 0.018112
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 50.000000 0.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] rfps: 50.000000 0.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] After avformat_find_stream_info() pos: 556287 bytes read:567375 seeks:0 frames:57
[info] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':
[info] Metadata:
[info] minor_version : 0
[info] major_brand : dash
[info] compatible_brands: iso6avc1mp41
[info] creation_time : 2022-02-17T04:50:18.000000Z
[info] Duration: 473:49:02.97, start: 1705741.905000, bitrate: N/A
[info] Stream #0:0(und), 21, 1/90000: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuvj420p(pc, bt709, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
[info] Metadata:
[info] creation_time : 2022-02-17T04:50:18.000000Z
[info] handler_name : VideoHandler
[info] encoder : EvoStream Media Server
[info] Stream #0:1(und), 36, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)
[info] Metadata:
[info] creation_time : 2022-02-17T04:50:18.000000Z
[info] handler_name : SoundHandler
[debug] Successfully opened the file.
[debug] Parsing a group of options: output url pipe:1.
[debug] Applying option map (set input stream mapping) with argument 0:v.
[debug] Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_v4l2m2m.
[debug] Applying option pix_fmt (set pixel format) with argument yuv420p.
[debug] Applying option profile:v (set profile) with argument 77.
[debug] Applying option b:v (video bitrate (please use -b:v)) with argument 2000k.
[debug] Applying option force_key_frames (force key frames at specified timestamps) with argument expr:gte(t, n_forced * 4).
[debug] Applying option map (set input stream mapping) with argument 0:a.
[debug] Applying option acodec (force audio codec ('copy' to copy stream)) with argument copy.
[debug] Applying option f (force format) with argument mp4.
[debug] Successfully parsed a group of options.
[debug] Opening an output file: pipe:1.
[pipe @ 0xaaaac06636b0] [debug] Setting default whitelist 'crypto,data'
[debug] Successfully opened the file.
[debug] detected 4 logical cores
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 8(PPS), nal_ref_idc: 3
[info] Stream mapping:
[info] Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_v4l2m2m))
[info] Stream #0:1 -> #0:1 (copy)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] Format yuvj420p chosen by get_format().
[h264 @ 0xaaaac06d9700] [verbose] Reinit context to 1920x1088, pix_fmt: yuvj420p
[h264 @ 0xaaaac06d9700] [debug] Frame num gap 57 55
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac05dd9a0]
[debug]
nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 5(IDR), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[debug] cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[graph 0 input from stream 0:0 @ 0xaaaac05d0280] [debug] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0xaaaac05d0280] [debug] Setting 'pix_fmt' to value '12'
[graph 0 input from stream 0:0 @ 0xaaaac05d0280] [debug] Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:0 @ 0xaaaac05d0280] [debug] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0xaaaac05d0280] [debug] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0xaaaac05d0280] [verbose] w:1920 h:1080 pixfmt:yuvj420p tb:1/90000 fr:25/1 sar:1/1
[format @ 0xaaaac067dd00] [debug] Setting 'pix_fmts' to value 'yuv420p'
[auto_scaler_0 @ 0xaaaac06d5a60] [debug] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0xaaaac06d5a60] [verbose] w:iw h:ih flags:'bicubic' interl:0
[format @ 0xaaaac067dd00] [verbose] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0xaaaac06c0820] [debug] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[swscaler @ 0xaaaac06db4b0] [warning] deprecated pixel format used, make sure you did set range correctly
[auto_scaler_0 @ 0xaaaac06d5a60] [verbose] w:1920 h:1080 fmt:yuvj420p sar:1/1 -> w:1920 h:1080 fmt:yuv420p sar:1/1 flags:0x4
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] probing device /dev/video16
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] driver 'bcm2835-isp' on card 'bcm2835-isp' in unknown mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] probing device /dev/video15
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] driver 'bcm2835-isp' on card 'bcm2835-isp' in splane mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] v4l2 output format not supported
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] probing device /dev/video14
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] driver 'bcm2835-isp' on card 'bcm2835-isp' in splane mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] v4l2 output format not supported
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] probing device /dev/video13
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] driver 'bcm2835-isp' on card 'bcm2835-isp' in splane mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] v4l2 capture format not supported
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] probing device /dev/video12
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] driver 'bcm2835-codec' on card 'bcm2835-codec-isp' in mplane mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] v4l2 capture format not supported
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] probing device /dev/video11
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] driver 'bcm2835-codec' on card 'bcm2835-codec-encode' in mplane mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [info] Using device /dev/video11
[h264_v4l2m2m @ 0xaaaac06d7cc0] [info] driver 'bcm2835-codec' on card 'bcm2835-codec-encode' in mplane mode
[h264_v4l2m2m @ 0xaaaac06d7cc0] [info] requesting formats: output=YU12 capture=H264
[h264_v4l2m2m @ 0xaaaac06d7cc0]
[debug] output: YU12 16 buffers initialized: 1920x1080, sizeimage 03110400, bytesperline 00001920
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] capture: H264 04 buffers initialized: 1920x1080, sizeimage 00786432, bytesperline 00000000
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Failed to set number of B-frames: Invalid argument
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Failed to get number of B-frames
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Failed to set header mode: Invalid argument
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Encoder: bit rate = 2000000
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Failed to set frame level rate control: Invalid argument
[h264_v4l2m2m @ 0xaaaac06d7cc0] [warning] Failed to set gop size: Invalid argument
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Encoder Context: id (27), profile (77), frame rate(25/1), number b-frames (0), gop size (12), bit rate (2000000), qmin (-1), qmax (-1)
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Encoder: h264 profile = 2
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Failed to set minimum video quantizer scale: Invalid argument
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Failed to set maximum video quantizer scale: Invalid argument
[mp4 @ 0xaaaac05e0c10] [verbose] Empty MOOV enabled; disabling automatic bitstream filtering
[verbose] Not writing 'clli' atom. No content light level info.
[verbose] Not writing 'mdcv' atom. Missing mastering metadata.
[info] Output #0, mp4, to 'pipe:1':
[info] Metadata:
[info] minor_version : 0
[info] major_brand : dash
[info] compatible_brands: iso6avc1mp41
[info] encoder : Lavf58.45.100
[info] Stream #0:0(und), 0, 1/12800: Video: h264 (h264_v4l2m2m) (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, q=-1--1, 2000 kb/s, 25 fps, 12800 tbn, 25 tbc (default)
[info] Metadata:
[info] creation_time : 2022-02-17T04:50:18.000000Z
[info] handler_name : VideoHandler
[info] encoder : Lavc58.91.100 h264_v4l2m2m
[info] Stream #0:1(und), 0, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)
[info] Metadata:
[info] creation_time : 2022-02-17T04:50:18.000000Z
[info] handler_name : SoundHandler
[verbose] *** 8 dup!
[debug] Forced keyframe at time 0.000000
[h264_v4l2m2m @ 0xaaaac06d7cc0] [debug] Encoder: force key frame = 0
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516847050, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875657569, using it for dts
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516857852, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug]
found tfdt time 81875665761, using it for dts
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875669857, using it for dts
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516879450, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875678049, using it for dts
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516890250, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875682145, using it for dts
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516901051, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875686241, using it for dts
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516911851, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug]
found tfdt time 81875694433, using it for dts
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516922652, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875698529, using it for dts
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516933451, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875702625, using it for dts
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516944251, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug]
found tfdt time 81875710817, using it for dts
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516955050, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875714913, using it for dts
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516965851, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875722081, using it for dts
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516976650, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875727201, using it for dts
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516987451, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875733345, using it for dts
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153516998252, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875739489, using it for dts
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517009050, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875743585, using it for dts
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517019851, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug]
found tfdt time 81875751777, using it for dts
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517030651, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875755873, using it for dts
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517041450, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875759969, using it for dts
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517052251, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875768161, using it for dts
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875772257, using it for dts
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517073850, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug]
found tfdt time 81875780449, using it for dts
[h264 @ 0xaaaac06096f0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06d9700] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac06c1fa0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 153517084651, using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaac05d0a90] [debug] found tfdt time 81875784545, using it for dts
[h264 @ 0xaaaac0600490] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 0xaaaac05dd9a0] [debug] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
HomeKit Secure Video has recorded a 8 second motion event.
HomeKit Secure Video event recording ended abnormally: An unexpected protocol failure has occured.
[error] Error writing trailer of pipe:1: Broken pipe
[info] video:653kB audio:26kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[verbose] Input file #0 (pipe:0):
[verbose] Input stream #0:0 (video): 89 packets read (1804187 bytes); 78 frames decoded;
[verbose] Input stream #0:1 (audio): 164 packets read (26899 bytes);
[verbose] Total: 253 packets (1831086 bytes) demuxed
[verbose] Output file #0 (pipe:1):
[verbose] Output stream #0:0 (video): 85 frames encoded; 85 packets muxed (669141 bytes);
[verbose] Output stream #0:1 (audio): 164 packets muxed (26899 bytes);
[verbose] Total: 249 packets (696040 bytes) muxed
[debug] 78 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0xaaaac05e0370] [verbose] Statistics: 0 seeks, 26 writeouts
[AVIOContext @ 0xaaaac05d9440] [verbose] Statistics: 1845327 bytes read, 0 seeks
[info] Exiting normally, received signal 15.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment