Page 1 of 3 1 2 3 LastLast
Results 1 to 30 of 77

Thread: 2017 Live Stream Capture Tech Talk

  1. #1
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)

    2017 Live Stream Capture Tech Talk

    This thread is for the nerds to discuss and figure out how best to capture the live streams this year. Currently, that means just FYF Fest this weekend.

    Our collective knowledge during the last tour cycle is here.

    Anyone familiar with Twitter live stream format? I imagine there's an HLS stream available somewhere for iOS devices. I wonder if they'll use MPEG-DASH for the main stream. I think that's what YouTube is using these days, right? Anyone got any tips or tools? We'll have all day Saturday and Sunday to figure out and practice on the Twitter stream.

    Some tools:

    https://github.com/Viblast/hls-proxy
    https://github.com/osklil/hls-fetch

  2. #2
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    OK, well, I looked at one of the live streams listed here:

    https://twitter.com/twitterlive

    And while it's delivered via HLS, according to the manifest, it looks like it's AES encrypted. Bummer. I'll have to poke at this some more. I'd rather not have to resort to screen recording, but we may have no choice.

  3. #3
    Join Date
    Dec 2011
    Location
    Chicago, IL
    Posts
    318
    Mentioned
    9 Post(s)
    Quote Originally Posted by TheBang View Post
    OK, well, I looked at one of the live streams listed here:

    https://twitter.com/twitterlive

    And while it's delivered via HLS, according to the manifest, it looks like it's AES encrypted. Bummer. I'll have to poke at this some more. I'd rather not have to resort to screen recording, but we may have no choice.
    If it does come down to that... what's the currently preferred method for doing screen caps?

  4. #4
    Join Date
    Dec 2011
    Location
    San Jose, CA
    Posts
    317
    Mentioned
    3 Post(s)
    Did anyone test record the stream yet? any luck?

  5. #5
    Join Date
    Dec 2011
    Location
    US of A
    Posts
    2,217
    Mentioned
    51 Post(s)
    If nothing else, I'd strongly encourage someone to at least do an audio grab. (My internet is so bad here that I don't think I could pull it off, or else I'd just be doing it myself)

  6. #6
    Join Date
    Dec 2011
    Posts
    119
    Mentioned
    1 Post(s)
    I'll be screen recording with the GeForce Experience screen capture thing

  7. #7
    Join Date
    Dec 2011
    Posts
    119
    Mentioned
    1 Post(s)
    Watching the stream of some other bullshit right now, is there a trick to stream quality? No options in the player to set it and it looks very low, like 480p low.

  8. #8
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    Yes, enter fullscreen mode, and you should get something closer to 1080p, I think.

  9. #9
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)
    I only see a max of 1280x720 for the stream based on the info in the m3u8 file.

    Here's the URL: https://hlslive-l3cg3.med1.m.lv.twim...lide_twv1.m3u8
    Last edited by FULLMETAL; 07-23-2017 at 09:00 PM. Reason: added link

  10. #10
    Join Date
    Dec 2011
    Posts
    119
    Mentioned
    1 Post(s)
    The audio sounds like it's crowd mics - gonna be complete shit for NIN

  11. #11
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    Quote Originally Posted by FULLMETAL View Post
    I only see a max of 1280x720 for the stream based on the info in the m3u8 file.

    Here's the URL: https://hlslive-l3cg3.med1.m.lv.twim...lide_twv1.m3u8
    Yup, that's the highest bitrate, 3500. How are you getting the resolution? Decoding the fragments?

  12. #12
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)
    Downloaded the m3u8 and the following was listed:

    #EXTM3U
    #EXT-X-STREAM-INF:BANDWIDTH=2121091,RESOLUTION=896x504,CODECS="m p4a.40.2,avc1.4d001f"
    1800K/1800_slide_twv1.m3u8
    #EXT-X-STREAM-INF:BANDWIDTH=559938,RESOLUTION=400x224,CODECS="mp 4a.40.2,avc1.42c01e"
    450K/450_slide_twv1.m3u8
    #EXT-X-STREAM-INF:BANDWIDTH=985571,RESOLUTION=512x288,CODECS="mp 4a.40.2,avc1.42c01e"
    800K/800_slide_twv1.m3u8
    #EXT-X-STREAM-INF:BANDWIDTH=1425340,RESOLUTION=640x360,CODECS="m p4a.40.2,avc1.4d001f"
    1200K/1200_slide_twv1.m3u8
    #EXT-X-STREAM-INF:BANDWIDTH=2908735,RESOLUTION=960x540,CODECS="m p4a.40.2,avc1.4d001f"
    2500K/2500_slide_twv1.m3u8
    #EXT-X-STREAM-INF:BANDWIDTH=4023049,RESOLUTION=1280x720,CODECS=" mp4a.40.2,avc1.640029"
    3500K/3500_slide_twv1.m3u8

  13. #13
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    That's odd. I don't see that in the m3u8 that I get. This is what I get:

    https://pastebin.com/JxcH3hjC

    What does yours look like?

  14. #14
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)

  15. #15
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    Here's as far as I've gotten in decryption. The decryption key (https://media-api.m.lv.twimg.com/pro...ys/id/20307890) is always the same, in hex: 45F859D2B58D3507DEBCF807A6F79D3A. i.e. they are not rotating keys (which is a feature). So, only the initialization vector (IV) is changing, and that's listed in the m3u8.

    So, in my example m3u8 above, the IV should be CD08B15FC528B365A6365A74DDD6CC34 for fragment 02/30/03.ts.

    It should work if you decrypt with those values, like so:

    Code:
    $ openssl aes-128-cbc -d -K 45f859d2b58d3507debcf807a6f79d3a -iv CD08B15FC528B365A6365A74DDD6CC34 -nosalt -in 03.ts -out 03-dec.ts
    But I just get:

    Code:
    bad decrypt
    35490:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/evp/evp_enc.c:337:



  16. #16
    Join Date
    Aug 2013
    Posts
    94
    Mentioned
    1 Post(s)
    Crap. I can't see a thing on twitter, giving me some kind of error. It's probably geographically restricted.

  17. #17
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)
    Downloaded a different m3u8 from the feed in the URL I mentioned above. It looks like the one you posted. Here's a link: https://pastebin.com/mczHJ3W1

  18. #18
    Join Date
    Nov 2011
    Posts
    294
    Mentioned
    7 Post(s)
    Soooo what am I copying and pasting where to get the best stream?

  19. #19
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)
    Quote Originally Posted by Papagolash View Post
    Soooo what am I copying and pasting where to get the best stream?
    Does this one work for you? https://hlslive-l3cg3.med1.m.lv.twim...lide_twv1.m3u8

  20. #20
    Join Date
    Dec 2011
    Location
    San Jose, CA
    Posts
    317
    Mentioned
    3 Post(s)
    Quote Originally Posted by FULLMETAL View Post
    My PC is just opening a download window and asking what app to use to open the file... Am I doing something wrong?

  21. #21
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)
    Quote Originally Posted by LOVEANDZOMBIES View Post
    My PC is just opening a download window and asking what app to use to open the file... Am I doing something wrong?
    Sorry, no idea. I'm on OSX.

  22. #22
    Join Date
    May 2017
    Posts
    50
    Mentioned
    1 Post(s)
    Open it with VLC, Media Player Classic, or even try a browser.

  23. #23
    Join Date
    Nov 2011
    Posts
    294
    Mentioned
    7 Post(s)
    Quote Originally Posted by FULLMETAL View Post

    Crap not working, tried it on vlc and ace player

  24. #24
    Join Date
    Nov 2011
    Location
    Philadelphia, PA
    Posts
    1,814
    Mentioned
    281 Post(s)
    Chiming in, that URL is not working on VLC on Windows 10 for me, when I Open a Network Stream.
    gnutls debug: Winsock error 0 gnutls error: TLS handshake error: Internal error in memory allocation.
    main error: TLS client session handshake error
    gnutls debug: GnuTLS deinitialized
    access_http error: cannot establish HTTP/TLS session


  25. #25
    Join Date
    Dec 2011
    Location
    34.167488, -118.381863
    Posts
    762
    Mentioned
    25 Post(s)
    Fuck guys, I don't know how it's working for me and no one else. Here's a screen cap of my browser if that's any help: https://i.imgur.com/sZ9AiNW.png

  26. #26
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    The decryption key requires a cookie to be resident from the main Twitter site. Otherwise, the client will get a 401 Unauthorized message when trying to retrieve the key. Unless you're able to fake the cookie, or otherwise redirect your client to fetch/read the key elsewhere, a web browser is probably the only client that can stream it properly.

  27. #27
    Join Date
    Nov 2011
    Location
    Donegal, Ireland
    Posts
    2,825
    Mentioned
    82 Post(s)
    This is what I get. VLC on OSX:

    core debug: connection succeeded (socket = 24)securetransport debug: open TLS session for hlslive-l3cg3.med1.m.lv.twimg.com
    securetransport debug: handshake is blocked, try again later
    securetransport debug: handshake is blocked, try again later
    securetransport debug: handshake is blocked, try again later
    securetransport debug: cerfificate verification successful, result is 4
    securetransport debug: handshake completed successfully
    http debug: protocol 'HTTP' answer code 403
    http error: error: HTTP/1.1 403 Forbidden

  28. #28
    Join Date
    Nov 2011
    Posts
    1,017
    Mentioned
    46 Post(s)
    Quote Originally Posted by slave2thewage View Post
    http error: error: HTTP/1.1 403 Forbidden
    [/FONT][/COLOR]
    That's probably because you're out of the US.

  29. #29
    Join Date
    Dec 2011
    Location
    Illinois
    Posts
    1,104
    Mentioned
    34 Post(s)
    Quote Originally Posted by TheBang View Post
    The decryption key requires a cookie to be resident from the main Twitter site. Otherwise, the client will get a 401 Unauthorized message when trying to retrieve the key. Unless you're able to fake the cookie, or otherwise redirect your client to fetch/read the key elsewhere, a web browser is probably the only client that can stream it properly.
    So far the only success I've had with streaming on Windows 10 is Edge:


  30. #30
    Join Date
    Nov 2011
    Posts
    294
    Mentioned
    7 Post(s)
    trying Edge worked for me too. I had to log into Twitter 1st before trying the link. I've also learned tonight that Internet Explorer is now called Edge.

Posting Permissions