[FFmpeg-user] [ffplay] Trouble using concat protocol

Jian Guo aliezted at gmail.com
Mon Jan 16 13:09:01 EET 2017


Ok, this is the uncut console output after rerun the command:


aLIEzTeddeMBP:~ JianGuo$ ffplay -safe 0 -protocol_whitelist
concat,file,subfile,http,https,tcp,tls concat:
http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8|http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear0/prog_index.m3u8
-bash:
http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear0/prog_index.m3u8:
No such file or directory
ffplay version 3.2.2 Copyright (c) 2003-2016 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid
--enable-opencl --disable-lzma --enable-vda
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[hls,applehttp @ 0x7fdac1832a00] Failed to open segment of playlist 0
    Last message repeated 180 times
[hls,applehttp @ 0x7fdac1832a00] Error when loading first segment 'concat:
http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/fileSequence0.ts
'
concat:
http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8:
Invalid data found when processing input


I am aware that the concat: here may have broken the file url. But I think
there is a way to work out.

On Mon, Jan 16, 2017 at 6:37 PM Nicolas George <george at nsup.org> wrote:

> Le septidi 27 nivôse, an CCXXV, Jian Guo a écrit :
> > Recently I want to use the concat protocol to play multiple online
> videos,
> > I tried the command below:
> >
> > ffplay -safe 0 -protocol_whitelist concat,file,subfile,http,https,tcp,tls
> > concat:
> >
> http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8|http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear0/prog_index.m3u8
> >
> >
> > But it gives me an error:
> >
> > Error when loading first segment 'concat:
> >
> http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/fileSequence0.ts
> > '
> > concat:
> >
> http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8
> :
> > Invalid data found when processing input
>
> This is a subtle one. Using concat:a.m3u8|b.m3u8, you concatenate the
> contents of the files a.m3u8 and b.m3u8. Fortunately, m3u8 files are
> simple URL lists with comments, and therefore the concatenation works.
> If the files had been XML, for example, it would have failed.
>
> The result is that ffplay sees a single m3u8 file with URL starting as
> "concat:". Then it tries to read the first file in the list, i.e.
> "fileSequence0.ts". Since it is a relative URL, it must be turned into
> an absolute one. Normally, the base would have been
> http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/
> ;
> but since you concatenated the m3u8 files first, the base is considered
> to be
> "concat:
> http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8|http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear0/
> ",
> and the name of the segment is appended to it.
>
> Note that you did not quote the error message correctly. This is why we
> request full uncut console output.
>
> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list