2017-09-01 19:20 GMT+08:00 Jeyapal, Karthick <kjeya...@akamai.com>: > Please find the patch attached. > > Regards, > Karthick > > > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel >
FFmpeg has support it yet, you can use http method. Input #0, hls,applehttp, from 'http://192.168.0.202/stream999_low.m3u8': Duration: 00:00:06.00, start: 49320.000000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0, 41, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 0 Stream #0:1, 21, 1/90000: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 320x240 [SAR 4:3 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn, 50 tbc Metadata: variant_bitrate : 0 Successfully opened the file. Parsing a group of options: output url a.ts. Applying option c (codec name) with argument copy. Applying option f (force format) with argument mpegts. Successfully parsed a group of options. Opening an output file: a.ts. File 'a.ts' already exists. Overwrite ? [y/N] y [file @ 0x7fe779d08420] Setting default whitelist 'file,crypto' Successfully opened the file. [mpegts @ 0x7fe77a81c600] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'a.ts': Metadata: encoder : Lavf57.79.100 Stream #0:0, 0, 1/90000: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 320x240 (0x0) [SAR 4:3 DAR 16:9], 0/1, q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Metadata: variant_bitrate : 0 Stream #0:1, 0, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 0 Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:0 -> #0:1 (copy) 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 27 times [AVIOContext @ 0x7fe779e002c0] Statistics: 109416 bytes read, 0 seeks [hls,applehttp @ 0x7fe77a003200] HLS request for url 'http://192.168.0.202/stream999_low-20170810191439.ts', offset 0, playlist 0 [hls,applehttp @ 0x7fe77a003200] Opening 'http://192.168.0.202/stream999_low-20170810191439.ts' for reading [http @ 0x7fe779d07200] request: GET /stream999_low-20170810191439.ts HTTP/1.1 User-Agent: StevenLiu Accept: */* Connection: close Host: 192.168.0.202 Icy-MetaData: 1 [AVIOContext @ 0x7fe779c154a0] Statistics: 104904 bytes read, 0 seeks [hls,applehttp @ 0x7fe77a003200] HLS request for url 'http://192.168.0.202/stream999_low-20170810191440.ts', offset 0, playlist 0 [hls,applehttp @ 0x7fe77a003200] Opening 'http://192.168.0.202/stream999_low-20170810191440.ts' for reading [http @ 0x7fe779d07200] request: GET /stream999_low-20170810191440.ts HTTP/1.1 User-Agent: StevenLiu Accept: */* Connection: close Host: 192.168.0.202 Icy-MetaData: 1 [AVIOContext @ 0x7fe779f09020] Statistics: 105468 bytes read, 0 seeks No more output streams to write to, finishing. frame= 142 fps=0.0 q=-1.0 Lsize= 294kB time=00:00:05.98 bitrate= 402.6kbits/s speed=65.7x video:129kB audio:124kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 16.323072% Input file #0 (http://192.168.0.202/stream999_low.m3u8): Input stream #0:0 (audio): 281 packets read (126505 bytes); Input stream #0:1 (video): 150 packets read (140250 bytes); Total: 431 packets (266755 bytes) demuxed Output file #0 (a.ts): Output stream #0:0 (video): 142 packets muxed (132570 bytes); Output stream #0:1 (audio): 281 packets muxed (126505 bytes); Total: 423 packets (259075 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x7fe779f02680] Statistics: 0 seeks, 2 writeouts [AVIOContext @ 0x7fe779f000a0] Statistics: 242 bytes read, 0 seeks liuqideMBP:dash liuqi$ ./ffmpeg -v debug -user_agent "StevenLiu" -i http://192.168.0.202/stream999_low.m3u8 -c copy -f mpegts a.ts _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel