[FFmpeg-user] copy hls m3u8 stream with ffmpeg

Moritz Barsnick barsnick at gmx.net
Wed Apr 13 08:53:41 CEST 2016


> Yes, I also tried with ffmpeg 3.0.1 from the static builds here:
> http://johnvansickle.com/ffmpeg/

Perfect. That was just to go sure.

> When it did play, I got these messages, but then I tried again and it
> wouldn't play.

I think you can safely ignore those. ffmpeg can't make sense of stream
#0:2, probably a data stream.

> Neither work, seems to have just started happening I think its a
> problem with the stream.

Perhaps the service is having intermittent problems. Or your network?

> Did you try the same command I pasted?

Yes. (And the success is reproducible.)

barsnick at sunshine:~ > ffmpeg -i http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8 -c copy test.m3u8
ffmpeg version N-79341-g4c22441 Copyright (c) 2000-2016 the FFmpeg developers
  built with icc (ICC) 14.0.3 20140422
  configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2016-04-11 --cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-gnutls --enable-libcdio --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame --enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libzvbi --enable-libtesseract --enable-libzmq
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 33.100 / 57. 33.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 41.100 /  6. 41.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mpegts @ 0xbaf6840] Could not find codec parameters for stream 2 (Unknown: none ([134][0][0][0] / 0x0086)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[hls,applehttp @ 0xbaf0900] Could not find codec parameters for stream 2 (Unknown: none ([134][0][0][0] / 0x0086)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls,applehttp, from 'http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8':
  Duration: N/A, start: 45551.009156, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 100 kb/s
    Stream #0:2: Unknown: none ([134][0][0][0] / 0x0086)
    Stream #0:3: Data: timed_id3 (ID3  / 0x20334449)
[hls @ 0xbb1a480] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, hls, to 'test.m3u8':
  Metadata:
    encoder         : Lavf57.33.100
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 100 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1259 fps= 52 q=-1.0 Lsize=N/A time=00:00:42.07 bitrate=N/A speed=1.74x
video:16027kB audio:494kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Moritz


More information about the ffmpeg-user mailing list