Opened 8 years ago
Last modified 8 years ago
#6213 new enhancement
support for autodetecting the best program in hls
Reported by: | ponpon | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avformat |
Version: | git-master | Keywords: | hls |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
thank you for good apps and your work.
when treating with his, ffmpeg outputs,
as the below log,
Stream #0:1 -> #0:0 (copy) Stream #0:25 -> #0:1 (copy)
i think Program 9 is the best as long as seeing variant_bitrate, resolution and bit rate.
i request we can use the best Program, automatically.
source
https://developer.apple.com/streaming/examples/advanced-stream-ts.html
ffmpeg -y -i "https://tungsten.aaplimg.com/VOD/bipbop_adv_example_v2/master.m3u8" -codec copy -t 1 test.ts ffmpeg version N-83657-g7e4f32f Copyright (c) 2000-2017 the FFmpeg developers built with clang version 3.8.1 (tags/RELEASE_381/final) configuration: --prefix=/sw --disable-shared --enable-static --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --optflags=-Ofast --cc=clang-mp-3.8 --cxx=clang++-mp-3.8 --extra-cflags=' -march=native -I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib -L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib -static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-avresample --enable-libfdk-aac --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libfreetype --enable-openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp --enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray --enable-libdc1394 --enable-libschroedinger --enable-libmodplug --enable-lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-libvidstab --enable-libsoxr --enable-opengl --enable-opencl --pkg-config-flags=' --libs --static' libavutil 55. 47.100 / 55. 47.100 libavcodec 57. 81.100 / 57. 81.100 libavformat 57. 66.102 / 57. 66.102 libavdevice 57. 2.100 / 57. 2.100 libavfilter 6. 74.100 / 6. 74.100 libavresample 3. 2. 0 / 3. 2. 0 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 libpostproc 54. 2.100 / 54. 2.100 Input #0, hls,applehttp, from 'https://tungsten.aaplimg.com/VOD/bipbop_adv_example_v2/master.m3u8': Duration: 00:10:00.00, start: 9.956011, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 2227464 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 2227464 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 1 Metadata: variant_bitrate : 8178040 Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 8178040 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 2 Metadata: variant_bitrate : 6453202 Stream #0:2: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 6453202 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 3 Metadata: variant_bitrate : 5054232 Stream #0:3: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 5054232 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 4 Metadata: variant_bitrate : 3289288 Stream #0:4: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 3289288 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 5 Metadata: variant_bitrate : 1296989 Stream #0:5: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 768x432 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 1296989 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 6 Metadata: variant_bitrate : 922242 Stream #0:6: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 922242 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 7 Metadata: variant_bitrate : 553010 Stream #0:7: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 480x270 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 553010 Stream #0:24(en): Audio: aac (LC), 48000 Hz, stereo, fltp, 162 kb/s (default) Metadata: comment : English Program 8 Metadata: variant_bitrate : 2448841 Stream #0:8: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 2448841 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 9 Metadata: variant_bitrate : 8399417 Stream #0:9: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 8399417 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 10 Metadata: variant_bitrate : 6674579 Stream #0:10: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 6674579 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 11 Metadata: variant_bitrate : 5275609 Stream #0:11: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 5275609 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 12 Metadata: variant_bitrate : 3510665 Stream #0:12: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 3510665 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 13 Metadata: variant_bitrate : 1518366 Stream #0:13: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 768x432 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 1518366 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 14 Metadata: variant_bitrate : 1143619 Stream #0:14: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 1143619 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 15 Metadata: variant_bitrate : 774387 Stream #0:15: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 480x270 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 774387 Stream #0:25(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Program 16 Metadata: variant_bitrate : 2256841 Stream #0:16: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 2256841 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 17 Metadata: variant_bitrate : 8207417 Stream #0:17: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 8207417 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 18 Metadata: variant_bitrate : 6482579 Stream #0:18: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 6482579 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 19 Metadata: variant_bitrate : 5083609 Stream #0:19: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 5083609 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 20 Metadata: variant_bitrate : 3318665 Stream #0:20: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 60 fps, 60 tbr, 90k tbn, 120 tbc Metadata: variant_bitrate : 3318665 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 21 Metadata: variant_bitrate : 1326366 Stream #0:21: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 768x432 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 1326366 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 22 Metadata: variant_bitrate : 951619 Stream #0:22: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 951619 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Program 23 Metadata: variant_bitrate : 582387 Stream #0:23: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 480x270 [SAR 1:1 DAR 16:9], Closed Captions, 30 fps, 30 tbr, 90k tbn, 60 tbc Metadata: variant_bitrate : 582387 Stream #0:26(en): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s (default) Metadata: comment : English Output #0, mpegts, to 'test.ts': Metadata: encoder : Lavf57.66.102 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 60 fps, 60 tbr, 90k tbn, 90k tbc Metadata: variant_bitrate : 8178040 Stream #0:1(en): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: comment : English Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:25 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 58 fps= 34 q=-1.0 Lsize= 1120kB time=00:00:00.99 bitrate=9226.8kbits/s speed=0.587x video:984kB audio:45kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.754848%
Change History (1)
comment:1 by , 8 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | hls added |
Priority: | normal → wish |
Summary: | support for autodetecting the best Program in his → support for autodetecting the best program in hls |
Type: | defect → enhancement |
Version: | unspecified → git-master |
Note:
See TracTickets
for help on using tickets.
May be related to ticket #2886.