[FFmpeg-user] Outputting ffmpeg's tee muxer content to a named pipe
Dennis Mungai
dmngaie at gmail.com
Thu Jul 26 23:04:46 EEST 2018
Hello there,
I'm trying to create a pair of outputs, one as a HLS output and the other,
as a fragmented mp4 in a named pipe on the filesystem with the snippet
shown below:
ffmpeg -re -stream_loop -1 -threads 2 -loglevel debug
-filter_complex_threads 2 \
-i '/home/brainiarc7/Desktop/src/mercyme.MKV' \
-filter_complex "[0:v]split=2[s0][s1]; \
[s0]yadif[v0]; \
[s1]yadif[v1]" \
-b:v:0 2250k -c:v h264_nvenc -a53cc 1 -profile:v high -aud 1 \
-b:v:1 1750k -c:v h264_nvenc -a53cc 1 -profile:v high -aud 1 \
-c:a aac -b:a 128k -ar 48000 -ac 2 \
-flags -global_header \
-map "[v0]" -map "[v1]" -map 0:a:0 \
-f tee -use_fifo 1
"[f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map="'v\\\:0,a\\\:0
v\\\:1,a\\\:0'":master_pl_name=master.m3u8]"/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8"|
\
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4"
Output:
ffmpeg version N-91482-g8aa6d9a8d3 Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/home/brainiarc7/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/brainiarc7/ffmpeg_build/include
--extra-ldflags=-L/home/brainiarc7/ffmpeg_build/lib
--bindir=/home/brainiarc7/bin --enable-cuda-sdk --enable-cuvid
--enable-libnpp --extra-cflags=-I/usr/local/cuda/include/
--extra-ldflags=-L/usr/local/cuda/lib64/ --nvccflags='-gencode
arch=compute_61,code=sm_61 -O2' --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libx264 --extra-libs=-lpthread
--enable-libx265 --enable-nvenc --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 21.105 / 58. 21.105
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Splitting the commandline.
Reading option '-re' ... matched as option 're' (read input at native frame
rate) with argument '1'.
Reading option '-stream_loop' ... matched as option 'stream_loop' (set
number of times input stream shall be looped) with argument '-1'.
Reading option '-threads' ... matched as AVOption 'threads' with argument
'2'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-filter_complex_threads' ... matched as option
'filter_complex_threads' (number of threads for -filter_complex) with
argument '2'.
Reading option '-i' ... matched as input url with argument
'/home/brainiarc7/Desktop/src/mercyme.MKV'.
Reading option '-filter_complex' ... matched as option 'filter_complex'
(create a complex filtergraph) with argument '[0:v]split=2[s0][s1];
[s0]yadif[v0]; [s1]yadif[v1]'.
Reading option '-b:v:0' ... matched as option 'b' (video bitrate (please
use -b:v)) with argument '2250k'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_nvenc'.
Reading option '-a53cc' ... matched as AVOption 'a53cc' with argument '1'.
Reading option '-profile:v' ... matched as option 'profile' (set profile)
with argument 'high'.
Reading option '-aud' ... matched as AVOption 'aud' with argument '1'.
Reading option '-b:v:1' ... matched as option 'b' (video bitrate (please
use -b:v)) with argument '1750k'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_nvenc'.
Reading option '-a53cc' ... matched as AVOption 'a53cc' with argument '1'.
Reading option '-profile:v' ... matched as option 'profile' (set profile)
with argument 'high'.
Reading option '-aud' ... matched as AVOption 'aud' with argument '1'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'aac'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '128k'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '48000'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-flags' ... matched as AVOption 'flags' with argument
'-global_header'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '[v0]'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '[v1]'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:a:0'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'tee'.
Reading option '-use_fifo' ... matched as AVOption 'use_fifo' with argument
'1'.
Reading option
'[f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map=v\\\:0,a\\\:0
v\\\:1,a\\\:0:master_pl_name=master.m3u8]/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8|
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4' ...
matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option filter_complex_threads (number of threads for
-filter_complex) with argument 2.
Applying option filter_complex (create a complex filtergraph) with argument
[0:v]split=2[s0][s1]; [s0]yadif[v0]; [s1]yadif[v1].
Successfully parsed a group of options.
Parsing a group of options: input url
/home/brainiarc7/Desktop/src/mercyme.MKV.
Applying option re (read input at native frame rate) with argument 1.
Applying option stream_loop (set number of times input stream shall be
looped) with argument -1.
Successfully parsed a group of options.
Opening an input file: /home/brainiarc7/Desktop/src/mercyme.MKV.
[NULL @ 0x562aa3ec3600] Opening '/home/brainiarc7/Desktop/src/mercyme.MKV'
for reading
[file @ 0x562aa3ec4180] Setting default whitelist 'file,crypto'
[matroska,webm @ 0x562aa3ec3600] Format matroska,webm probed with size=2048
and score=100
[matroska,webm @ 0x562aa3ec3600] Unknown entry 0x73C5
Last message repeated 1 times
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[matroska,webm @ 0x562aa3ec3600] Before avformat_find_stream_info() pos:
752 bytes read:32768 seeks:0 nb_streams:2
[vp9 @ 0x562aa3ec75c0] Format yuv420p chosen by get_format().
[matroska,webm @ 0x562aa3ec3600] All info found
[matroska,webm @ 0x562aa3ec3600] rfps: 23.750000 0.011872
Last message repeated 1 times
[matroska,webm @ 0x562aa3ec3600] rfps: 23.833333 0.004757
[matroska,webm @ 0x562aa3ec3600] rfps: 23.916667 0.000861
[matroska,webm @ 0x562aa3ec3600] rfps: 24.000000 0.000184
[matroska,webm @ 0x562aa3ec3600] rfps: 24.083333 0.002727
[matroska,webm @ 0x562aa3ec3600] rfps: 24.166667 0.008490
Last message repeated 1 times
[matroska,webm @ 0x562aa3ec3600] rfps: 24.250000 0.017472
Last message repeated 1 times
[matroska,webm @ 0x562aa3ec3600] rfps: 48.000000 0.000737
[matroska,webm @ 0x562aa3ec3600] rfps: 120.000000 0.004604
[matroska,webm @ 0x562aa3ec3600] rfps: 240.000000 0.018416
[matroska,webm @ 0x562aa3ec3600] rfps: 23.976024 0.000049
[matroska,webm @ 0x562aa3ec3600] rfps: 47.952048 0.000196
[matroska,webm @ 0x562aa3ec3600] Setting avg frame rate based on r frame
rate
[matroska,webm @ 0x562aa3ec3600] After avformat_find_stream_info() pos:
19216 bytes read:32768 seeks:0 frames:125
Input #0, matroska,webm, from '/home/brainiarc7/Desktop/src/mercyme.MKV':
Metadata:
COMPATIBLE_BRANDS: isomiso2avc1mp41
MAJOR_BRAND : isom
MINOR_VERSION : 512
ENCODER : IDMmkvlib0.1
LANGUAGE : und
HANDLER_NAME : AudioHandler
Duration: 00:04:46.22, start: 0.000000, bitrate: 997 kb/s
Stream #0:0, 41, 1/1000: Video: vp9 (Profile 0), 1 reference frame,
yuv420p(tv, bt709/unknown/unknown), 1920x1080, 0/1, SAR 1:1 DAR 16:9, 23.98
fps, 23.98 tbr, 1k tbn, 1k tbc (default)
Stream #0:1, 84, 1/1000: Audio: opus, 48000 Hz, stereo, fltp (default)
Successfully opened the file.
[Parsed_split_0 @ 0x562aa3f34540] Setting 'outputs' to value '2'
Parsing a group of options: output url
[f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map=v\\\:0,a\\\:0
v\\\:1,a\\\:0:master_pl_name=master.m3u8]/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8|
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4.
Applying option b:v:0 (video bitrate (please use -b:v)) with argument 2250k.
Applying option c:v (codec name) with argument h264_nvenc.
Applying option profile:v (set profile) with argument high.
Applying option b:v:1 (video bitrate (please use -b:v)) with argument 1750k.
Applying option c:v (codec name) with argument h264_nvenc.
Applying option profile:v (set profile) with argument high.
Applying option c:a (codec name) with argument aac.
Applying option b:a (video bitrate (please use -b:v)) with argument 128k.
Applying option ar (set audio sampling rate (in Hz)) with argument 48000.
Applying option ac (set number of audio channels) with argument 2.
Applying option map (set input stream mapping) with argument [v0].
Applying option map (set input stream mapping) with argument [v1].
Applying option map (set input stream mapping) with argument 0:a:0.
Applying option f (force format) with argument tee.
Successfully parsed a group of options.
Opening an output file:
[f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map=v\\\:0,a\\\:0
v\\\:1,a\\\:0:master_pl_name=master.m3u8]/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8|
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4.
Codec AVOption a53cc (Use A53 Closed Captions (if available)) specified for
output file #0
([f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map=v\\\:0,a\\\:0
v\\\:1,a\\\:0:master_pl_name=master.m3u8]/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8|
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4) has
not been used for any stream. The most likely reason is either wrong type
(e.g. a video option with no video streams) or that it is a private option
of some encoder which was not actually used for any stream.
Successfully opened the file.
Stream mapping:
Stream #0:0 (vp9) -> split (graph 0)
yadif (graph 0) -> Stream #0:0 (h264_nvenc)
yadif (graph 0) -> Stream #0:1 (h264_nvenc)
Stream #0:1 -> #0:2 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 1 times
[vp9 @ 0x562aa3f50c80] Format yuv420p chosen by get_format().
detected 12 logical cores
[graph_1_in_0_1 @ 0x562aa400d080] Setting 'time_base' to value '1/48000'
[graph_1_in_0_1 @ 0x562aa400d080] Setting 'sample_rate' to value '48000'
[graph_1_in_0_1 @ 0x562aa400d080] Setting 'sample_fmt' to value 'fltp'
[graph_1_in_0_1 @ 0x562aa400d080] Setting 'channel_layout' to value '0x3'
[graph_1_in_0_1 @ 0x562aa400d080] tb:1/48000 samplefmt:fltp
samplerate:48000 chlayout:0x3
[format_out_0_2 @ 0x562aa400d540] Setting 'sample_fmts' to value 'fltp'
[format_out_0_2 @ 0x562aa400d540] Setting 'sample_rates' to value '48000'
[format_out_0_2 @ 0x562aa400d540] Setting 'channel_layouts' to value '0x3'
[AVFilterGraph @ 0x562aa3f09f40] query_formats: 4 queried, 9 merged, 0
already done, 0 delayed
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 9234 times
[Parsed_split_0 @ 0x562aa40b4380] Setting 'outputs' to value '2'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] Setting 'video_size' to
value '1920x1080'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] Setting 'pix_fmt' to value
'0'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] Setting 'time_base' to
value '1/1000'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] Setting 'pixel_aspect' to
value '1/1'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] Setting 'frame_rate' to
value '24000/1001'
[graph 0 input from stream 0:0 @ 0x562aa40b6380] w:1920 h:1080
pixfmt:yuv420p tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2
[format @ 0x562aa4010180] Setting 'pix_fmts' to value
'yuv420p|nv12|p010le|yuv444p|p016le|yuv444p16le|bgr0|rgb0|cuda'
[format @ 0x562aa40b6f00] Setting 'pix_fmts' to value
'yuv420p|nv12|p010le|yuv444p|p016le|yuv444p16le|bgr0|rgb0|cuda'
[AVFilterGraph @ 0x562aa40b3b40] query_formats: 8 queried, 7 merged, 0
already done, 0 delayed
[h264_nvenc @ 0x562aa3f02600] Loaded lib: libcuda.so.1
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuInit
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuDeviceGetCount
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuDeviceGet
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuDeviceGetName
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuDeviceComputeCapability
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuCtxCreate_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuCtxSetLimit
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuCtxPushCurrent_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuCtxPopCurrent_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuCtxDestroy_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuMemAlloc_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuMemFree_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuMemcpy2D_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuMemcpy2DAsync_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGetErrorName
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGetErrorString
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuStreamCreate
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuStreamQuery
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuStreamSynchronize
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuStreamDestroy_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuStreamAddCallback
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuEventCreate
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuEventDestroy_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuEventSynchronize
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuEventQuery
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuEventRecord
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGLGetDevices_v2
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGraphicsGLRegisterImage
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGraphicsUnregisterResource
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGraphicsMapResources
[h264_nvenc @ 0x562aa3f02600] Loaded sym: cuGraphicsUnmapResources
[h264_nvenc @ 0x562aa3f02600] Loaded sym:
cuGraphicsSubResourceGetMappedArray
[h264_nvenc @ 0x562aa3f02600] Loaded lib: libnvidia-encode.so.1
[h264_nvenc @ 0x562aa3f02600] Loaded sym: NvEncodeAPICreateInstance
[h264_nvenc @ 0x562aa3f02600] Loaded sym: NvEncodeAPIGetMaxSupportedVersion
[h264_nvenc @ 0x562aa3f02600] Loaded Nvenc version 8.1
[h264_nvenc @ 0x562aa3f02600] Nvenc initialized successfully
[h264_nvenc @ 0x562aa3f02600] 1 CUDA capable devices found
[h264_nvenc @ 0x562aa3f02600] [ GPU #0 - < GeForce GTX 1070 with Max-Q
Design > has Compute SM 6.1 ]
[h264_nvenc @ 0x562aa3f02600] supports NVENC
[h264_nvenc @ 0x562aa3f036c0] Loaded lib: libcuda.so.1
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuInit
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuDeviceGetCount
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuDeviceGet
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuDeviceGetName
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuDeviceComputeCapability
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuCtxCreate_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuCtxSetLimit
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuCtxPushCurrent_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuCtxPopCurrent_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuCtxDestroy_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuMemAlloc_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuMemFree_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuMemcpy2D_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuMemcpy2DAsync_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGetErrorName
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGetErrorString
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuStreamCreate
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuStreamQuery
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuStreamSynchronize
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuStreamDestroy_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuStreamAddCallback
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuEventCreate
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuEventDestroy_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuEventSynchronize
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuEventQuery
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuEventRecord
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGLGetDevices_v2
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGraphicsGLRegisterImage
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGraphicsUnregisterResource
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGraphicsMapResources
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: cuGraphicsUnmapResources
[h264_nvenc @ 0x562aa3f036c0] Loaded sym:
cuGraphicsSubResourceGetMappedArray
[h264_nvenc @ 0x562aa3f036c0] Loaded lib: libnvidia-encode.so.1
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: NvEncodeAPICreateInstance
[h264_nvenc @ 0x562aa3f036c0] Loaded sym: NvEncodeAPIGetMaxSupportedVersion
[h264_nvenc @ 0x562aa3f036c0] Loaded Nvenc version 8.1
[h264_nvenc @ 0x562aa3f036c0] Nvenc initialized successfully
[h264_nvenc @ 0x562aa3f036c0] 1 CUDA capable devices found
[h264_nvenc @ 0x562aa3f036c0] [ GPU #0 - < GeForce GTX 1070 with Max-Q
Design > has Compute SM 6.1 ]
[h264_nvenc @ 0x562aa3f036c0] supports NVENC
[tee @ 0x562aa3ed9100]
filename:'/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8' format:fifo
[tee @ 0x562aa3ed9100] stream:0 codec:h264 type:video bsfs: null
[tee @ 0x562aa3ed9100] stream:1 codec:h264 type:video bsfs: null
[tee @ 0x562aa3ed9100] stream:2 codec:aac type:audio bsfs: null
[hls @ 0x562aa520f7c0] Number of variant streams 2
[tee @ 0x562aa3ed9100] filename:' pipe:1 > test_channel.mp4' format:fifo
[tee @ 0x562aa3ed9100] stream:0 codec:h264 type:video bsfs: null
[tee @ 0x562aa3ed9100] stream:1 codec:h264 type:video bsfs: null
[tee @ 0x562aa3ed9100] stream:2 codec:aac type:audio bsfs: null
Output #0, tee, to
'[f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map=v\\\:0,a\\\:0
v\\\:1,a\\\:0:master_pl_name=master.m3u8]/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8|
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4':
Metadata:
COMPATIBLE_BRANDS: isomiso2avc1mp41
MAJOR_BRAND : isom
MINOR_VERSION : 512
HANDLER_NAME : AudioHandler
LANGUAGE : und
encoder : Lavf58.17.101
[mp4 @ 0x562aa5219a80] Opening ' pipe:1 > test_channel.mp4' for writing
Stream #0:0, 0, 1001/24000Setting default whitelist 'file,crypto'
: Video: h264 (h264_nvenc) (High), 1 reference frame, yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], 0/1, q=-1--1, 2250 kb/s, 23.98 fps, 23.98 tbn, Opening
'/home/brainiarc7/Desktop/dest/vs0/manifest0.ts' for writing
23.98 tbc (default)
Metadata:
encoder : Lavc58.21.105 h264_nvenc
Side data:
cpb: bitrate max/min/avg: 0/0/2250000 buffer size: 4500000 vbv_delay:
-1
[mp4 @ 0x562aa5219a80] Empty MOOV enabled; disabling automatic bitstream
filtering
[file @ 0x7f078c005800] Setting default whitelist 'file,crypto'
Stream #0:1, 0, 1001/24000: Video: h264 (h264_nvenc) (High), 1
reference frame, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 0/1, q=-1--1, 1750
kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
Metadata:
encoder : Lavc58.21.105 h264_nvenc
Side data:
cpb: bitrate max/min/avg: 0/0/1750000 buffer size: 3500000 vbv_delay:
-1
Stream #0:2, 0, 1/48000: Audio: aac (LC), 48000 Hz, stereo, fltp, delay
1024, 128 kb/s (default)
Metadata:
encoder : Lavc58.21.105 aac
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 1 times
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs1/manifest0.ts' for writing
[file @ 0x7f078c048c80] Setting default whitelist 'file,crypto'
[mpegts @ 0x7f078c002a00] muxrate VBR, pcr every 2 pkts, sdt every
2147483647, pat/pmt every 2147483647 pkts
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 1 times
[mpegts @ 0x7f078c046080] muxrate VBR, pcr every 2 pkts, sdt every
2147483647, pat/pmt every 2147483647 pkts
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 1 times
Clipping frame in rate conversion by 0.000008
Last message repeated 1 times
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 11 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976me=00:00:00.42 bitrate=N/A
speed=0.843x
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981me=00:00:00.93 bitrate=N/A
speed=0.922x
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997me=00:00:01.47 bitrate=N/A
speed=0.964x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981me=00:00:01.98 bitrate=N/A
speed=0.971x
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997me=00:00:02.49 bitrate=N/A
speed=0.981x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981me=00:00:02.98 bitrate=N/A
speed=0.978x
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997me=00:00:03.49 bitrate=N/A
speed=0.982x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972me=00:00:04.01 bitrate=N/A
speed=0.985x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997me=00:00:04.50 bitrate=N/A
speed=0.982x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972me=00:00:05.01 bitrate=N/A
speed=0.986x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999me=00:00:05.52 bitrate=N/A
speed=0.986x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:06.03 bitrate=N/A
speed=0.988x
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999me=00:00:06.54 bitrate=N/A
speed=0.99x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:07.04 bitrate=N/A
speed=0.988x
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999me=00:00:07.55 bitrate=N/A
speed=0.99x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:08.06 bitrate=N/A
speed=0.991x
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999me=00:00:08.57 bitrate=N/A
speed=0.993x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:09.06 bitrate=N/A
speed=0.992x
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999me=00:00:09.57 bitrate=N/A
speed=0.993x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:10.09 bitrate=N/A
speed=0.992x
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
[AVIOContext @ 0x7f078c045c00] Statistics: 0 seeks, 14 writeoutsate=N/A
speed=0.992x
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs0/manifest1.ts' for writing
[file @ 0x7f078c08f980] Setting default whitelist 'file,crypto'
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs0/manifest.m3u8.tmp' for writing
[file @ 0x7f078c08fa40] Setting default whitelist 'file,crypto'
EXT-X-MEDIA-SEQUENCE:0
[AVIOContext @ 0x7f078c006800] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x7f078c088f40] Statistics: 0 seeks, 10 writeouts
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs1/manifest1.ts' for writing
[file @ 0x7f078c08fa40] Setting default whitelist 'file,crypto'
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs1/manifest.m3u8.tmp' for writing
[file @ 0x7f078c007dc0] Setting default whitelist 'file,crypto'
EXT-X-MEDIA-SEQUENCE:0
[AVIOContext @ 0x7f078c0076c0] Statistics: 0 seeks, 1 writeouts
[hls @ 0x562aa520f7c0] Opening '/home/brainiarc7/Desktop/dest/master.m3u8'
for writing
[file @ 0x7f078c007840] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x7f078c0076c0] Statistics: 0 seeks, 1 writeouts
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.017967
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.013969
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.016960
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972me=00:00:11.11 bitrate=N/A
speed=0.994x
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.012993
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.015984
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.018974
Last message repeated 1 times
Clipping frame in rate conversion by 0.011986
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.014977me=00:00:11.62 bitrate=N/A
speed=0.995x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.017967
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.013969
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.016960
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:12.11 bitrate=N/A
speed=0.993x
Last message repeated 1 times
Clipping frame in rate conversion by 0.012993
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.015984
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.018974
Last message repeated 1 times
Clipping frame in rate conversion by 0.011986
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.014977me=00:00:12.62 bitrate=N/A
speed=0.994x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.017967
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.013969
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.016960
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:13.12 bitrate=N/A
speed=0.993x
Last message repeated 1 times
Clipping frame in rate conversion by 0.012993
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.015984
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.018974
Last message repeated 1 times
Clipping frame in rate conversion by 0.011986
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.014977me=00:00:13.63 bitrate=N/A
speed=0.994x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.017967
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.013969
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.016960
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:14.12 bitrate=N/A
speed=0.993x
Last message repeated 1 times
Clipping frame in rate conversion by 0.012993
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.015984
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.018974
Last message repeated 1 times
Clipping frame in rate conversion by 0.011986
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.014977me=00:00:14.65 bitrate=N/A
speed=0.995x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.017967
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.013969
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.016960
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983me=00:00:15.18 bitrate=N/A
speed=0.997x
Last message repeated 1 times
Clipping frame in rate conversion by 0.012993
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974
Last message repeated 1 times
Clipping frame in rate conversion by 0.015984
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.018974
Last message repeated 1 times
Clipping frame in rate conversion by 0.011986
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.014977me=00:00:15.68 bitrate=N/A
speed=0.996x
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.017967
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.013969
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974me=00:00:16.19 bitrate=N/A
speed=0.997x
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988me=00:00:16.68 bitrate=N/A
speed=0.996x
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
Clipping frame in rate conversion by 0.005974me=00:00:17.19 bitrate=N/A
speed=0.997x
Last message repeated 1 times
Clipping frame in rate conversion by 0.008995
Last message repeated 1 times
Clipping frame in rate conversion by 0.001976
Last message repeated 1 times
Clipping frame in rate conversion by 0.004997
Last message repeated 1 times
Clipping frame in rate conversion by 0.007988me=00:00:17.68 bitrate=N/A
speed=0.997x
Last message repeated 1 times
Clipping frame in rate conversion by 0.000999
Last message repeated 1 times
Clipping frame in rate conversion by 0.010979
Last message repeated 1 times
Clipping frame in rate conversion by 0.003990
Last message repeated 1 times
Clipping frame in rate conversion by 0.006981
Last message repeated 1 times
Clipping frame in rate conversion by 0.009972
Last message repeated 1 times
Clipping frame in rate conversion by 0.002983
Last message repeated 1 times
[AVIOContext @ 0x7f078c08f700] Statistics: 0 seeks, 10 writeouts
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs0/manifest.m3u8.tmp' for writing
[file @ 0x7f078c08f6c0] Setting default whitelist 'file,crypto'
EXT-X-MEDIA-SEQUENCE:0
[AVIOContext @ 0x7f078c048d00] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x7f078c006800] Statistics: 0 seeks, 7 writeouts
[hls @ 0x562aa520f7c0] Opening
'/home/brainiarc7/Desktop/dest/vs1/manifest.m3u8.tmp' for writing
[file @ 0x7f078c048c40] Setting default whitelist 'file,crypto'
EXT-X-MEDIA-SEQUENCE:0
[AVIOContext @ 0x7f078c090380] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x7f0784041280] Statistics: 0 seeks, 40 writeouts
frame= 436 fps= 24 q=20.0 Lq=23.0 size=N/A time=00:00:18.24 bitrate=N/A
speed=0.998x
video:9096kB audio:264kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Input file #0 (/home/brainiarc7/Desktop/src/mercyme.MKV):
Input stream #0:0 (video): 438 packets read (1210811 bytes); 438 frames
decoded;
Input stream #0:1 (audio): 912 packets read (285142 bytes); 912 frames
decoded (875520 samples);
Total: 1350 packets (1495953 bytes) demuxed
Output file #0
([f=hls:hls_flags=+delete_segments:hls_time=2:hls_list_size=5:var_stream_map=v\\\:0,a\\\:0
v\\\:1,a\\\:0:master_pl_name=master.m3u8]/home/brainiarc7/Desktop/dest/vs%v/manifest.m3u8|
[f=mp4:movflags=frag_keyframe+empty_moov] pipe:1 > test_channel.mp4):
Output stream #0:0 (video): 436 frames encoded; 436 packets muxed
(5341855 bytes);
Output stream #0:1 (video): 436 frames encoded; 436 packets muxed
(3972459 bytes);
Output stream #0:2 (audio): 855 frames encoded (875520 samples); 856
packets muxed (270328 bytes);
Total: 1728 packets (9584642 bytes) muxed
1350 frames successfully decoded, 0 decoding errors
[h264_nvenc @ 0x562aa3f02600] Nvenc unloaded
[h264_nvenc @ 0x562aa3f036c0] Nvenc unloaded
[aac @ 0x562aa3f4ebc0] Qavg: 5826.013
[AVIOContext @ 0x562aa3ecc640] Statistics: 1507328 bytes read, 0 seeks
Exiting normally, received signal 2.
What I expected:
FFmpeg should output to the named pipe test_stream.
What I get:
FFmpeg outputs to a filesystem object, named ' pipe:1 > test_channel.mp4'.
Question is: Are there arguments I can pass to either FFmpeg OR the tee
muxer's underlying mechanism to make it understand that I want output
directed to the named, exisiting named pipe and not to create a new file
with the same name?
More information about the ffmpeg-user
mailing list