livestreamer --yes-run-as-root -O http://www.ustream.tv/channel/iss-hdev-payload best | ffmpeg -i - -c copy -map 0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mp4 -y "out%03d.mp4" ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 53. 5.103 / 53. 5.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channel/iss-hdev-payload [cli][info] Available streams: 240p, 240p_alt_fstl, 240p_alt_highwinds, 360p, 360p_alt_fstl, 360p_alt_highwinds, 480p, 480p_alt_fstl, 480p_alt_highwinds, 720p+ (best), 720p+_alt_fstl, 720p+_alt_highwinds, mobile_240p (worst), mobile_360p, mobile_480p [cli][info] Opening stream: 720p+ (uhs) [flv @ 0x11508c0] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'pipe:': Duration: N/A, start: 0.017000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 tbr, 1k tbn, 60 tbc Output #0, segment, to 'out%03d.mp4': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 90k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (copy)