-------- Original Message -------- Subject: Re: [FFmpeg-user] hls_flag single_file not playing properly Local Time: January 10 2016 1:43 pm UTC Time: January 10 2016 9:43 pm From: [email protected] To: [email protected]
On Sun, Jan 10, 2016 at 15:53:27 -0500, chovy wrote: > I'm running this command and it starts ffmpeg, creates an index.m3u8 with a > single video.ts file...however when I open the stream in VLC it does not play > properly. > > It skips around and in other players it just stops. > > Did I mess something up in my ffmpeg arguments? Thanks for not showing us YOUR complete console output. You do realize that it contains information which may help in identifying issues? So I won't show mine, which could help (you) with comparing. Sorry about that. Must be frustrating. Here is my output: Command: ffmpeg -y -threads 8 -analyzeduration 10 -probesize 10000000 -user-agent 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12H143' -headers 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12H143' -headers 'Connection: keep-alive' -i http://rt-lh.akamaihd.net/i/ch_04@325608/index_720p_av-p.m3u8?sd=10\&rebase=on -copytb 1 -hls_time 10 -hls_list_size 10 -hls_flags single_file -hls_segment_filename video.ts -c copy index.m3u8 OUTPUT: ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [http @ 0x7f95295170a0] No trailing CRLF found in HTTP header. [hls,applehttp @ 0x7f9529810600] decoding for stream 0 failed Input #0, hls,applehttp, from 'http://rt-lh.akamaihd.net/i/ch_04@325608/index_720p_av-p.m3u8?sd=10&rebase=on': Duration: N/A, start: 4134.316822, bitrate: 72 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 72 kb/s Stream #0:2: Data: timed_id3 (ID3 / 0x20334449) Output #0, hls, to 'index.m3u8': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 72 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 41 fps=0.0 q=-1.0 size=N/A time=00:00:01.33 bitrate=N/A frame= 48 fps= 42 q=-1.0 size=N/A time=00:00:01.57 bitrate=N/A frame= 49 fps= 27 q=-1.0 size=N/A time=00:00:01.68 bitrate=N/A frame= 96 fps= 38 q=-1.0 size=N/A time=00:00:03.17 bitrate=N/A frame= 137 fps= 43 q=-1.0 size=N/A time=00:00:04.54 bitrate=N/A frame= 178 fps= 48 q=-1.0 size=N/A time=00:00:05.95 bitrate=N/A frame= 220 fps= 51 q=-1.0 size=N/A time=00:00:07.30 bitrate=N/A frame= 270 fps= 56 q=-1.0 size=N/A time=00:00:08.98 bitrate=N/A frame= 301 fps= 43 q=-1.0 size=N/A time=00:00:10.01 bitrate=N/A frame= 316 fps= 41 q=-1.0 size=N/A time=00:00:10.51 bitrate=N/A frame= 334 fps= 40 q=-1.0 size=N/A time=00:00:11.13 bitrate=N/A frame= 371 fps= 40 q=-1.0 Lsize=N/A time=00:00:12.35 bitrate=N/A video:2242kB audio:100kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Exiting normally, received signal 2. I will tell you though that it "works for me" with latest ffmpeg. This is what VLC says before playing very smoothly: [barsnick@host ~]$ vlc index.m3u8 VLC media player 2.2.2 Weatherwax (revision 2.2.1-161-g360f42e) [000000000165c118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00007f4118c01548] httplive stream: HTTP Live Streaming (/home/barsnick/index.m3u8) [00007f4118c01548] httplive stream error: #EXT-X-VERSION should be version 1, 2 or 3 iso 4 [000000000172c688] core playlist: stopping playback [00007f4118c03388] ts demux: MPEG-4 descriptor not found for pid 0x101 type 0xf [00007f4118c05a48] core demux error: option sub-original-fps does not exist [00007f4130005f98] core input error: no suitable demux module for `file/subtitle:///home/barsnick//blabla.txt' [00007f4118f05738] packetizer_mpeg4audio packetizer: AAC channels: 2 samplerate: 48000 Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory Cheers, Moritz _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
