Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

unable to play watch.hgtv.com with ffmpeg

(http://stream-recorder.com/forum/showthread.php?t=20861)

utuxia 04-03-2016 12:39 AM

unable to play watch.hgtv.com with ffmpeg


 
Unable to play HGTV stream.

I can login via cable to watch.hgtv.com and I I paste this url in Safari it plays fine, but I'm unable to play it in ffmpeg for some reason.


ffmpeg -re -i 'http://play-prod1.live.anvato.net/server/play/sni-hgtvx-ctg/1326000/prog.m3u8?hdnea=st=1459664225~exp=1459667225~acl=/*~hmac=914b9fdcbf201b7d584edc16cb3e22ccafc8517cb4a 74f23932d797ac7467c31&fw_mvpd=d8b58f7bfce28eefcc1c dd5b95c3b663&anv_user=bf41da85d64722a03cbc1e02b9fd 9b3a17522&fw_mvpd_id=Comcast_SSO&fw_sdk_flag=%2Bsl cb%2Bvicb&fw_metr=7&_dev=web&fw_sdk_flag_safe=%252 Bslcb%252Bvicb&_tkx_anvack=anvato_scripps_app_web_ prod_0837996dbe373629133857ae9eb72e740424d80a&_tkx _callsign=hgtv&anvauth=tb=0~te=1459664425~sgn=5025 0220fa7ab28c2093a85a27c855bbbb5e5ce443c1a269ee02b9 7176b4c79d&t=1459664335&X-Anvato-Adst-Auth=RKAvzq7jqKKdTQPkCEB8kO4G/UZN/ueImX+Z+dT2v1WEjLLvwuUAlD0o8uIwNsRM' -header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A' -c copy test.m3u8
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 @ 0x7fea58c19120] No trailing CRLF found in HTTP header.
[http @ 0x7fea58c19120] HTTP error 403 Forbidden
[hls,applehttp @ 0x7fea59010600] Failed to open segment of playlist 0
[http @ 0x7fea58c19120] No trailing CRLF found in HTTP header.
[http @ 0x7fea58c19120] HTTP error 403 Forbidden
[hls,applehttp @ 0x7fea59010600] Failed to open segment of playlist 0
[http @ 0x7fea58d01700] No trailing CRLF found in HTTP header.
[http @ 0x7fea58d01700] HTTP error 403 Forbidden
[hls,applehttp @ 0x7fea59010600] Failed to open segment of playlist 0
[hls,applehttp @ 0x7fea59010600] Error when loading first segment 'http://hgtv-i.akamaihd.net/hls/live/221952/LIVEHGTV/1296k/IFpwE13arPq/145966/segment_145966565.ts'
http://play-prod1.live.anvato.net/se...AlD0o8uIwNsRM: Immediate exit requested
Exiting normally, received signal 2.

nyancat 04-03-2016 03:20 AM

Re: unable to play watch.hgtv.com with ffmpeg


 
Don't know anything about HGTV but 403s from M3U8 can indicate missing cookies. You'll need to grab the cookie from your browser and attach it to the header (though, adding a new-line via FFMPEG can be problematic). Maybe try omitting the User-Agent and just putting the cookie instead.

ehurdler 04-03-2016 02:16 PM

Re: unable to play watch.hgtv.com with ffmpeg


 
When you say play in ffmpeg what do you mean? Are you trying to capture an episode, or actually restream to vlc or something?

stream_monkey 04-03-2016 04:23 PM

Re: unable to play watch.hgtv.com with ffmpeg


 
Get a fresh m3u8 link, then use livestreamer, which will stream to vlc or use the -o file.ts handle to save to file.

Also, it's best to post code inside of code boxes, rather than in the body of the post.


All times are GMT -6. The time now is 03:21 PM.