VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Hello guys! I would like to know, somehow it is possible to capture m3u8/vod with multiply audio options??
    Does anyone know of any method or code??

    I'm trying to record a livestreming that has two audio options. When I open m3u8 with PotPlayer, I can select which audio I want to watch, but when I download with some method that I found as the livestreamer or ffmpeg, i only get the video with only one of these two options... I wanted to be able to capture the video with all audios.
    Last edited by Derel; 26th Jun 2019 at 08:22.
    Quote Quote  
  2. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    FFMPEG has always downloaded with all audio streams for me. Make sure to give console the master/playlist .m3u8 that has both audio URLs in it.
    If it's still failing for you for some reason you can try "recording" the stream through VLC player - it will also capture all audio streams.
    Quote Quote  
  3. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by Sviests View Post
    FFMPEG has always downloaded with all audio streams for me. Make sure to give console the master/playlist .m3u8 that has both audio URLs in it.
    If it's still failing for you for some reason you can try "recording" the stream through VLC player - it will also capture all audio streams.
    Well... actually im using Youtube-DL to record. For you to understand... im recording a tv show from Comedy Central. When i open the m3u8 link with PotPlayer they give me option to choose audio and CC... audio i mean, portuguese and english.


    But like i said, i trying get the video with both audios, but im always get only one. When i try ffmpeg, i get in English, and Youtube-dl, streamlink / livestreamer in portuguese. But look, maybe im using the wrong code. If u can explain which one do you use, maybe will be helpfull.

    Main M3U8 (the link expire seconds later).

    Code:
    https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561803560&rn=1411277117&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=5c3a2a0882ba05677ca980cf525a2ff133b2c04c44657c5ad3c2a9e9afc0366e

    And M3U8 Code (they still working after saved the file)

    Code:
    #EXTM3U
    #EXT-X-VERSION:5
    #EXT-UPLYNK-LIVE
    #EXT-X-START:TIME-OFFSET=0.00
    #EXT-X-INDEPENDENT-SEGMENTS
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Portuguese",LANGUAGE="pt",AUTOSELECT=YES,DEFAULT=YES
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",LANGUAGE="en",AUTOSELECT=YES,DEFAULT=NO,URI="https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/a.m3u8?alttrack=0&lang=en&ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561802401&rn=-771849966&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=c89e49f7e23d6ac68961e05c89eb535afeb5e43fa8743361642e8fd37f43a72a&pbs=f1717fc0eea34f14b2f3ae8d79369517"
    #UPLYNK-MEDIA0:640x360x30,main-30,2x48000
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=640x360,BANDWIDTH=942543,CODECS="mp4a.40.5,avc1.4d001e",FRAME-RATE=30.000,AUDIO="aac",AVERAGE-BANDWIDTH=751864
    https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/c.m3u8?ct=c&...f3ae8d79369517
    #UPLYNK-MEDIA0:416x234x30,main-13,2x48000
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=416x234,BANDWIDTH=500585,CODECS="mp4a.40.5,avc1.4d000d",FRAME-RATE=30.000,AUDIO="aac",AVERAGE-BANDWIDTH=414478
    https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/b.m3u8?ct=c&...f3ae8d79369517
    #UPLYNK-MEDIA0:960x540x30,main-31,2x48000
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=960x540,BANDWIDTH=2140623,CODECS="mp4a.40.5,avc1.4d001f",FRAME-RATE=30.000,AUDIO="aac",AVERAGE-BANDWIDTH=1651275
    https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/d.m3u8?ct=c&...f3ae8d79369517
    #UPLYNK-MEDIA0:1280x720x30,high-31,2x48000
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=1280x720,BANDWIDTH=3381301,CODECS="mp4a.40.5,avc1.64001f",FRAME-RATE=30.000,AUDIO="aac",AVERAGE-BANDWIDTH=2600466
    https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/e.m3u8?ct=c&...f3ae8d79369517
    #EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,RESOLUTION=1280x720,BANDWIDTH=58416,CODECS="avc1.64001f",URI="https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/ifo.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561802401&rn=-771849966&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=c89e49f7e23d6ac68961e05c89eb535afeb5e43fa8743361642e8fd37f43a72a&pbs=f1717fc0eea34f14b2f3ae8d79369517"
    #UPLYNK-MEDIA0:1920x1080x30,high-40,2x48000
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=1920x1080,BANDWIDTH=4845621,CODECS="mp4a.40.5,avc1.640028",FRAME-RATE=30.000,AUDIO="aac",AVERAGE-BANDWIDTH=3719202
    https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/f.m3u8?ct=c&...f3ae8d79369517
    Last edited by Derel; 29th Jun 2019 at 06:00.
    Quote Quote  
  4. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    All links expired to me.Do you have a link to embeded video on CC?
    Quote Quote  
  5. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by Sviests View Post
    All links expired to me.Do you have a link to embeded video on CC?
    I don't know if I understand your question very well.

    Well... it's not really a video, it's actually the broadcasting of the live channel, and It is necessary to have a cable tv login.

    But look, the m3u8 is not encrypted... because they opens in players (like pot/vlc), and like i said before, the file is only available for a set time.
    m3u8 link only for a few seconds, and the downloaded .m3u8 file for a longer time (I do not know how much ... but it still works for at least 10 minutes after saved).

    Well, if you can specify a time that you will be online, I can send you fresh links for you to try.
    Quote Quote  
  6. A particular audio stream can probably be recorded separately using the a.m3u8 directly with the desired variables alttrack=0&lang=en or alttrack=1&lang=pt

    But then it would have to be muxed later.
    Last edited by ponens; 30th Jun 2019 at 15:01.
    Quote Quote  
  7. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by ponens View Post
    A particular audio stream can probably be recorded separately using the a.m3u8 directly with the desired variables alttrack=0&lang=en or alttrack=1&lang=pt

    But then it would have to be muxed later.
    Oh yeah, I believe this ^ can be done.

    But i still would like to see if there is any method that can capture all channels at the same time.
    Quote Quote  
  8. Originally Posted by Derel View Post
    Originally Posted by ponens View Post
    A particular audio stream can probably be recorded separately using the a.m3u8 directly with the desired variables alttrack=0&lang=en or alttrack=1&lang=pt

    But then it would have to be muxed later.
    Oh yeah, I believe this ^ can be done.

    But i still would like to see if there is any method that can capture all channels at the same time.
    Can't check that right now. Because, like I said, the live program playing right now (talk show w/guest) seems to have the same audio on both channels.
    Quote Quote  
  9. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    Originally Posted by Derel View Post

    I don't know if I understand your question very well.

    Well... it's not really a video, it's actually the broadcasting of the live channel, and It is necessary to have a cable tv login.
    I was wondering where exactly do you get the master.m3u8 link from. Did you exctract locally from the cable service or it's a live feed embeded in a online website.

    Anyway, f.e. if your master/playlist.m3u8 contains something like this as you pasted:
    Code:
    #EXTM3U
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Portuguese",LANGUAGE="pt",AUTOSELECT=YES,DEFAULT=YES
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",LANGUAGE="en",AUTOSELECT=YES,DEFAULT=NO,URI="http://link.m3u8"
    
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=640x360,BANDWIDTH=942543,CODECS="mp4a...
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=416x234,BANDWIDTH=500585,CODECS="mp4a...
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=960x540,BANDWIDTH=2140623,CODECS="mp4a...
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=1280x720,BANDWIDTH=3381301,CODECS="mp4a...
    #EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=1920x1080,BANDWIDTH=4845621,CODECS="mp4a...
    I assume when you paste the master/playlist url in FFMPEG it displays something similar like this:
    Code:
    ffmpeg -i http://master.m3u8
    
        Stream #0:0(por): Video: h264 (High), yuv420p, 640x360, 25 fps, 25 tbr, 1k tbn, 47.95 tbc (default)
        Stream #0:1(por): Video: h264 (High), yuv420p, 416x234, 25 fps, 25 tbr, 1k tbn, 47.95 tbc 
        Stream #0:2(por): Video: h264 (High), yuv420p, 960x540, 25 fps, 25 tbr, 1k tbn, 47.95 tbc 
        Stream #0:3(por): Video: h264 (High), yuv420p, 1280x720, 25 fps, 25 tbr, 1k tbn, 47.95 tbc 
        Stream #0:4(por): Video: h264 (High), yuv420p, 1920x1080, 25 fps, 25 tbr, 1k tbn, 47.95 tbc 
        Stream #0:5(por): Audio: aac, 48000 Hz, 192kb/s (default)
        Stream #0:6(eng): Audio: aac, 48000 Hz, 192kb/s
    Then you just retype input with map IDs and select both audio streams.E.g. if i want 1920x1080 + both audios:
    Code:
    ffmpeg -i http://master.m3u8 -map 0:4 -map 0:5 -map 0:6 -c:copy outputfile.ts
    I havent done this in a while,but i hope it works for you
    Quote Quote  
  10. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by Sviests View Post
    I havent done this in a while,but i hope it works for you
    Yesss!! This is exacly the command what i want!! But.. i get a error in the end

    "At least one output file must be specified" but i dont know why... Can u check all the log

    Code:
    ffmpeg -i "https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80" -map 0:0 -map 0:13 -map 0:14: -c:copy outputfile.ts
    ffmpeg version N-92462-g529debc987 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 8.2.1 (GCC) 20181017
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 23.101 / 56. 23.101
      libavcodec     58. 39.100 / 58. 39.100
      libavformat    58. 22.100 / 58. 22.100
      libavdevice    58.  6.100 / 58.  6.100
      libavfilter     7. 44.100 /  7. 44.100
      libswscale      5.  4.100 /  5.  4.100
      libswresample   3.  4.100 /  3.  4.100
      libpostproc    55.  4.100 / 55.  4.100
    Trailing options were found on the commandline.
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/a.m3u8?alttrack=0&lang=en&ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [https @ 000002a72b1d9300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [https @ 000002a72b1d9300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/b.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [https @ 000002a72b1d9300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/d.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [https @ 000002a72b1d9300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/e.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [https @ 000002a72b1d9300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/f.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=a&c=8790953821a540c78eceafc3e1b7ae7c&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/A00000008D0.aac?pbs=548be59f70a3412d9cfcd1445432a167&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=c&c=8790953821a540c78eceafc3e1b7ae7c&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/C000008D0.ts?pbs=548be59f70a3412d9cfcd1445432a167&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=b&c=8790953821a540c78eceafc3e1b7ae7c&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/B000008D0.ts?pbs=548be59f70a3412d9cfcd1445432a167&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=d&c=8790953821a540c78eceafc3e1b7ae7c&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/D000008D0.ts?pbs=548be59f70a3412d9cfcd1445432a167&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=e&c=8790953821a540c78eceafc3e1b7ae7c&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/E000008D0.ts?pbs=548be59f70a3412d9cfcd1445432a167&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=f&c=8790953821a540c78eceafc3e1b7ae7c&pbs=548be59f70a3412d9cfcd1445432a167' for reading
    [hls,applehttp @ 000002a72ac3a580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/F000008D0.ts?pbs=548be59f70a3412d9cfcd1445432a167&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    Input #0, hls,applehttp, from 'https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561839451&rn=-1550323932&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=01dd97b103f221356daa3a88d066cd57049a31bc27a02cd9971498b96aa36c80':
      Duration: N/A, start: 9240.576000, bitrate: N/A
      Program 0
        Metadata:
          variant_bitrate : 942541
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 150 kb/s
        Metadata:
          variant_bitrate : 4899252
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x001\x92\x00\x00
          comment         : English
        Stream #0:1(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 942541
          comment         : Portuguese
        Stream #0:2: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 640x360, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 942541
        Stream #0:3: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 942541
      Program 1
        Metadata:
          variant_bitrate : 500582
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 150 kb/s
        Metadata:
          variant_bitrate : 4899252
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x001\x92\x00\x00
          comment         : English
        Stream #0:4(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 500582
          comment         : Portuguese
        Stream #0:5: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 416x234, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 500582
        Stream #0:6: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 500582
      Program 2
        Metadata:
          variant_bitrate : 2140621
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 150 kb/s
        Metadata:
          variant_bitrate : 4899252
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x001\x92\x00\x00
          comment         : English
        Stream #0:7(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 2140621
          comment         : Portuguese
        Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 960x540, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 2140621
        Stream #0:9: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 2140621
      Program 3
        Metadata:
          variant_bitrate : 3381299
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 150 kb/s
        Metadata:
          variant_bitrate : 4899252
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x001\x92\x00\x00
          comment         : English
        Stream #0:10(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 3381299
          comment         : Portuguese
        Stream #0:11: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 3381299
        Stream #0:12: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 3381299
      Program 4
        Metadata:
          variant_bitrate : 4899252
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 150 kb/s
        Metadata:
          variant_bitrate : 4899252
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x001\x92\x00\x00
          comment         : English
        Stream #0:13(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 4899252
          comment         : Portuguese
        Stream #0:14: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 4899252
        Stream #0:15: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 4899252
    At least one output file must be specified
    Quote Quote  
  11. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    I see an extra colon after -map 0:14 in your code:

    -map 0:14: -c:copy
    Remove it and try again.
    Quote Quote  
  12. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by Sviests View Post
    I see an extra colon after -map 0:14 in your code:

    -map 0:14: -c:copy
    Remove it and try again.
    Oh... my bad. I tried again, but stills the same

    Code:
    ffmpeg -i "https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856" -map 0:0 -map 0:13 -map 0:14 -c:copy outputfile.ts
    ffmpeg version N-92462-g529debc987 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 8.2.1 (GCC) 20181017
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 23.101 / 56. 23.101
      libavcodec     58. 39.100 / 58. 39.100
      libavformat    58. 22.100 / 58. 22.100
      libavdevice    58.  6.100 / 58.  6.100
      libavfilter     7. 44.100 /  7. 44.100
      libswscale      5.  4.100 /  5.  4.100
      libswresample   3.  4.100 /  3.  4.100
      libpostproc    55.  4.100 / 55.  4.100
    Trailing options were found on the commandline.
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/a.m3u8?alttrack=0&lang=en&ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [https @ 000001bbed239300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [https @ 000001bbed239300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/b.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [https @ 000001bbed239300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/d.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [https @ 000001bbed239300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/e.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [https @ 000001bbed239300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/f.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=a&c=8790953821a540c78eceafc3e1b7ae7c&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/A0000000DC7.aac?pbs=e011037d8358430787b0355255e8cc5e&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=c&c=8790953821a540c78eceafc3e1b7ae7c&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/C00000DC7.ts?pbs=e011037d8358430787b0355255e8cc5e&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=b&c=8790953821a540c78eceafc3e1b7ae7c&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/B00000DC7.ts?pbs=e011037d8358430787b0355255e8cc5e&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=d&c=8790953821a540c78eceafc3e1b7ae7c&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/D00000DC7.ts?pbs=e011037d8358430787b0355255e8cc5e&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=e&c=8790953821a540c78eceafc3e1b7ae7c&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/E00000DC7.ts?pbs=e011037d8358430787b0355255e8cc5e&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [https @ 000001bbed239300] Opening 'https://content-asab2.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/f.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'https://content-asab2.uplynk.com/check2?b=8c71752b79f248d4af8aaf1312116afc&v=8790953821a540c78eceafc3e1b7ae7c&r=f&c=8790953821a540c78eceafc3e1b7ae7c&pbs=e011037d8358430787b0355255e8cc5e' for reading
    [hls,applehttp @ 000001bbeb2da580] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/8c7/ccc958034db04235b1e90e769d230296/8c71752b79f248d4af8aaf1312116afc/F00000DC7.ts?pbs=e011037d8358430787b0355255e8cc5e&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    Input #0, hls,applehttp, from 'https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1561844824&rn=800655912&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=e7e57762d34a4ecef930cc5074989196814e31051487bd381febc4778d9ac856':
      Duration: N/A, start: 14446.592000, bitrate: N/A
      Program 0
        Metadata:
          variant_bitrate : 942541
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 127 kb/s
        Metadata:
          variant_bitrate : 5204752
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00M\x7f`\x00
          comment         : English
        Stream #0:1(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 942541
          comment         : Portuguese
        Stream #0:2: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 640x360, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 942541
        Stream #0:3: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 942541
      Program 1
        Metadata:
          variant_bitrate : 500582
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 127 kb/s
        Metadata:
          variant_bitrate : 5204752
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00M\x7f`\x00
          comment         : English
        Stream #0:4(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 500582
          comment         : Portuguese
        Stream #0:5: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 416x234, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 500582
        Stream #0:6: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 500582
      Program 2
        Metadata:
          variant_bitrate : 2140621
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 127 kb/s
        Metadata:
          variant_bitrate : 5204752
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00M\x7f`\x00
          comment         : English
        Stream #0:7(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 2140621
          comment         : Portuguese
        Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 960x540, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 2140621
        Stream #0:9: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 2140621
      Program 3
        Metadata:
          variant_bitrate : 3381299
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 127 kb/s
        Metadata:
          variant_bitrate : 5204752
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00M\x7f`\x00
          comment         : English
        Stream #0:10(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 3381299
          comment         : Portuguese
        Stream #0:11: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 3381299
        Stream #0:12: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 3381299
      Program 4
        Metadata:
          variant_bitrate : 5204752
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 127 kb/s
        Metadata:
          variant_bitrate : 5204752
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00M\x7f`\x00
          comment         : English
        Stream #0:13(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 5204752
          comment         : Portuguese
        Stream #0:14: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 5204752
        Stream #0:15: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 5204752
    At least one output file must be specified
    Quote Quote  
  13. streamlink 1.1.1 will also mux multiple hls audio streams. See stream.hls: change --hls-audio-select to take a list and wildcard #1591

    Example command line using --hls-audio-select with wildcard:
    Code:
    streamlink "hlsvariant://h..ps://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?<auth params>" best --hls-audio-select * -o output.ts
    Edit: Above streamlink command line works perfectly with OP's content.

    While ffmpeg may occasionally skip segments or otherwise produce an inferior output file.
    Last edited by ponens; 30th Jun 2019 at 15:00.
    Quote Quote  
  14. Average video editor Sviests's Avatar
    Join Date
    Sep 2018
    Location
    USA,Sweden
    Search Comp PM
    Originally Posted by Derel View Post
    Oh... my bad. I tried again, but stills the same
    Weird. Make sure you have the latest FFMPEG version.
    I double checked my dreambox local stream that has 2 audios,it worked fine.
    Log:

    Code:
    ffmpeg -i "http://192.168.0.103:8001/1:0:3:1534:14C2:21DC:EEEE0000:0:0:0:" -map 0:0 -map 0:1 -map 0:2 -c copy testfile.ts
    
        Stream #0:0[0x1524]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 25 tbr, 90k tbn, 50 tbc
        Stream #0:1[0x1525](nor): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 160 kb/s
        Stream #0:2[0x1526](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 160 kb/s
      Program 5420
    
    
    Output #0, mpegts, to 'testfile.ts':
      Metadata:
        encoder         : Lavf58.20.100
        Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, top first), 720x576 [SAR 16:11 DAR 20:11], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
        Stream #0:1(nor): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 160 kb/s
        Stream #0:2(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 160 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
      Stream #0:2 -> #0:2 (copy)
    
    frame=  972 fps= 32 q=-1.0 size=   13056kB time=00:00:36.50 bitrate=2929.9kbits/s speed=1.19x
    Quote Quote  
  15. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by ponens View Post
    streamlink 1.1.1 will also mux multiple hls audio streams. See stream.hls: change --hls-audio-select to take a list and wildcard #1591

    Example command line using --hls-audio-select with wildcard:
    Code:
    streamlink "hlsvariant://h..ps://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?<auth params>" best --hls-audio-select * -o output.ts
    Edit: Above streamlink command line works perfectly with OP's content.

    While ffmpeg may occasionally skip segments or otherwise produce an inferior output file.
    Sorry my late guys. Yes!! This one worked!!! But... the second audio (Ensligh) have delay Is that common ??
    Quote Quote  
  16. Member
    Join Date
    Jan 2019
    Location
    Brazil
    Search PM
    Originally Posted by Sviests View Post
    Weird. Make sure you have the latest FFMPEG version.
    I double checked my dreambox local stream that has 2 audios,it worked fine.
    Hey Sviest, Sorry my late. Yes i have the last version. But look, I try your method again... and now THEY WORKED It's totally fine and dont have delay in the audio like happened with steamlink. I dont know why in the another day this one dont worked... But I still don't understand why it did not work the other day.

    Code:
    C:\Users\Derel>ffmpeg -i "https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0" -map 0:0 -map 0:13 -map 0:14 -c copy testfile.ts
    ffmpeg version N-92462-g529debc987 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 8.2.1 (GCC) 20181017
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 23.101 / 56. 23.101
      libavcodec     58. 39.100 / 58. 39.100
      libavformat    58. 22.100 / 58. 22.100
      libavdevice    58.  6.100 / 58.  6.100
      libavfilter     7. 44.100 /  7. 44.100
      libswscale      5.  4.100 /  5.  4.100
      libswresample   3.  4.100 /  3.  4.100
      libpostproc    55.  4.100 / 55.  4.100
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/a.m3u8?alttrack=0&lang=en&ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/b.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/d.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/e.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/f.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/check2?b=34b7d390a97840af94a89501140db0f3&v=8790953821a540c78eceafc3e1b7ae7c&r=a&c=8790953821a540c78eceafc3e1b7ae7c&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/A00000019D3.aac?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/check2?b=34b7d390a97840af94a89501140db0f3&v=8790953821a540c78eceafc3e1b7ae7c&r=c&c=8790953821a540c78eceafc3e1b7ae7c&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/C000019D3.ts?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/check2?b=34b7d390a97840af94a89501140db0f3&v=8790953821a540c78eceafc3e1b7ae7c&r=b&c=8790953821a540c78eceafc3e1b7ae7c&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/B000019D3.ts?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/check2?b=34b7d390a97840af94a89501140db0f3&v=8790953821a540c78eceafc3e1b7ae7c&r=d&c=8790953821a540c78eceafc3e1b7ae7c&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/D000019D3.ts?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/check2?b=34b7d390a97840af94a89501140db0f3&v=8790953821a540c78eceafc3e1b7ae7c&r=e&c=8790953821a540c78eceafc3e1b7ae7c&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/E000019D3.ts?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'https://content-asab1.uplynk.com/check2?b=34b7d390a97840af94a89501140db0f3&v=8790953821a540c78eceafc3e1b7ae7c&r=f&c=8790953821a540c78eceafc3e1b7ae7c&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/F000019D3.ts?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    Input #0, hls,applehttp, from 'https://content.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0':
      Duration: N/A, start: 27078.656000, bitrate: N/A
      Program 0
        Metadata:
          variant_bitrate : 942543
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 175 kb/s
        Metadata:
          variant_bitrate : 5680629
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x91B\xe0\x00
          comment         : English
        Stream #0:1(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 942543
          comment         : Portuguese
        Stream #0:2: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 640x360, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 942543
        Stream #0:3: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 942543
      Program 1
        Metadata:
          variant_bitrate : 500585
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 175 kb/s
        Metadata:
          variant_bitrate : 5680629
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x91B\xe0\x00
          comment         : English
        Stream #0:4(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 500585
          comment         : Portuguese
        Stream #0:5: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 416x234, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 500585
        Stream #0:6: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 500585
      Program 2
        Metadata:
          variant_bitrate : 2140623
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 175 kb/s
        Metadata:
          variant_bitrate : 5680629
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x91B\xe0\x00
          comment         : English
        Stream #0:7(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 2140623
          comment         : Portuguese
        Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 960x540, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 2140623
        Stream #0:9: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 2140623
      Program 3
        Metadata:
          variant_bitrate : 3381301
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 175 kb/s
        Metadata:
          variant_bitrate : 5680629
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x91B\xe0\x00
          comment         : English
        Stream #0:10(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 3381301
          comment         : Portuguese
        Stream #0:11: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 3381301
        Stream #0:12: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 3381301
      Program 4
        Metadata:
          variant_bitrate : 5680629
        Stream #0:0(en): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 175 kb/s
        Metadata:
          variant_bitrate : 5680629
          id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x91B\xe0\x00
          comment         : English
        Stream #0:13(pt): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
        Metadata:
          variant_bitrate : 5680629
          comment         : Portuguese
        Stream #0:14: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn, 96k tbc
        Metadata:
          variant_bitrate : 5680629
        Stream #0:15: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 5680629
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:13 -> #0:1 (copy)
      Stream #0:14 -> #0:2 (copy)
    Press [q] to stop, [?] for help
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/a.m3u8?alttrack=0&lang=en&ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740] Opening 'crypto+https://x-viacom-stgec.uplynk.com/ause/slices/34b/ccc958034db04235b1e90e769d230296/34b7d390a97840af94a89501140db0f3/A00000019D4.aac?pbs=295c2023fce348c5a09667df79454f1f&_jt=l&chid=8790953821a540c78eceafc3e1b7ae7c&si=0' for reading
    [hls,applehttp @ 00000163fa30a740] No longer receiving playlist 1
    [hls,applehttp @ 00000163fa30a740] No longer receiving playlist 2te=4139.1kbits/s speed=4.54x
    [hls,applehttp @ 00000163fa30a740] No longer receiving playlist 3
    [hls,applehttp @ 00000163fa30a740] No longer receiving playlist 4
    [https @ 00000163faa3a880] Opening 'https://content-asab1.uplynk.com/channel/8790953821a540c78eceafc3e1b7ae7c/f.m3u8?ct=c&ad.cust_params=_fw_ae%3D40fa73c9d0083043c6576dd2b40511e4%26_vmn_ar%3Dtrue&expand=simulcast_standard&ad.kv=_fw_ae,40fa73c9d0083043c6576dd2b40511e4,_vmn_ar,true&exp=1562030259&rn=209927549&cid=8790953821a540c78eceafc3e1b7ae7c&tc=1&sig=76dbf57b9a82397d8dc67c7d3d999c0702dc977f2f09c503c4c88272aab19bd0&pbs=295c2023fce348c5a09667df79454f1f' for reading
    [hls,applehttp @ 00000163fa30a740].....

    Finally, I would like to thank you for your help and your support Sviests. And Many thanks to Ponens too, I will save both methods for the future.
    Quote Quote  



Similar Threads