[libav-tools] Segmenting Output of Another Program

Quinn Wood mtcjayne at gmail.com
Mon Aug 10 01:11:56 CEST 2015


I have been unable to segment the output of another program to my disk and
don't understand why. The commands and output follow (the first and last
four lines of output are from the command providing avconv with input.)

$ livestreamer twitch.tv/riotgames high -O | /cygdrive/c/Users/Quinn\
Wood/Downloads/libav-11.3-win64/win64/usr/bin/avconv -i - -c copy -map 0:0
-map 0:1 -f segment -segment_time 60 -v verbose out%03d.mp4 [cli][info]
Found matching plugin twitch for URL twitch.tv/riotgames [cli][info]
Available streams: audio, high, low, medium, mobile (worst), source (best)
[cli][info] Opening stream: high (hls) avconv version 11.3, Copyright (c)
2000-2014 the Libav developers built on Mar 9 2015 02:12:20 with gcc 4.8.3
(Gentoo 4.8.3 p1.1, pie-0.5.9) configuration:
--cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--sysroot=/usr/x86_64-w64-mingw32/ --enable-runtime-cpudetect
--enable-shared --enable-cross-compile --enable-w32threads --prefix=/usr
--target-os=mingw32 --enable-memalign-hack --enable-gpl --enable-version3
--enable-libmp3lame --enable-libopus --enable-libvo-aacenc
--enable-libvorbis --enable-libvpx --enable-libx264 libavutil 54. 3. 0 /
54. 3. 0 libavcodec 56. 1. 0 / 56. 1. 0 libavformat 56. 1. 0 / 56. 1. 0
libavdevice 55. 0. 0 / 55. 0. 0 libavfilter 5. 0. 0 / 5. 0. 0 libavresample
2. 1. 0 / 2. 1. 0 libswscale 3. 0. 0 / 3. 0. 0 [mpegts @ 0000000000d9af00]
max_analyze_duration 5000000 reached [mpegts @ 0000000000d9af00] Estimating
duration from bitrate, this may be inaccurate Input #0, mpegts, from
'pipe:': Duration: N/A, start: 7122.766000, bitrate: 132 kb/s Program 1
Stream #0.0[0x100]: Audio: aac, 44100 Hz, stereo, fltp, 132 kb/s Stream
#0.1[0x101]: Video: h264 (Constrained Baseline), yuv420p, 1280x720, 30 fps,
90k tbn, 2k tbc Stream #0.2[0x102]: Data: [21][0][0][0] / 0x0015 [mp4 @
0000000002c10320] Using AVStream.codec.time_base as a timebase hint to the
muxer is deprecated. Set AVStream.time_base instead. [mp4 @
0000000002c10320] Tag [15][0][0][0]/0x0000000f incompatible with output
codec id '86018' Output #0, segment, to 'out%03d.mp4': Metadata: encoder :
Lavf56.1.0 Stream #0.0: Audio: libvo_aacenc, 44100 Hz, stereo, 132 kb/s
Stream #0.1: Video: libx264, yuv420p, 1280x720, q=2-31, 90k tbn, 90k tbc
Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could
not write header for output file #0 (incorrect codec parameters ?): Invalid
data found when processing input [cli][error] Error when writing to output:
[Errno 32] Broken pipe [cli][info] Stream ended Exception ignored in:
<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20150809/b4bbe571/attachment.html>


More information about the libav-tools mailing list