[FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

Reino Wijnsma rwijnsma at xs4all.nl
Wed Apr 13 02:42:39 EEST 2022

On 2022-04-12T14:35:39+0200, Bo Berglund <bo.berglund at gmail.com> wrote:
> I don't know from where this URL in the command came from (you say you can see
> it...):
> http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online
> But it is for the 2565 video...
> Maybe another is needed for 2308?

Apparently. Like I said, the videostream doesn't work in my browser, so I couldn't tell whether it was the same videostream.
Then I guess each channel / videostream need it's own approach in trying to recover the video-url.

I can only see...

$ xidel -s "http://www.freeintertv.com/view/id-2308" -e '(//iframe)[1]' --output-node-format=html
<iframe allowfullscreen="" width="510" height="480" src="http://www.freeintertv.com/modules/View/screen.php?nametv=NBC+%28USA%29&idtv=2308&TVSESS=cko6m4au4uea7vh5aqmoi0ec35" scrolling="no" frameborder="0"></iframe>

$ xidel -s "http://www.freeintertv.com/view/id-2308" -f '(//iframe)[1]' -e '(//script)[position() = (1,2)]' --output-node-format=html
<script type="text/javascript">var $config={"add":"","go":"TRB2UWBSCQMNUG","stream":"s1","add_1":""};</script>
<script type="text/javascript">
var videoid=3813;
var url_tv=true;
var outreg=/umain\('(http:\/\/[^']+)'/i;
var playlist=[{'file':$config['add']+'/hls/CH_R04_DOMASHNY/variant.m3u8?version=2'},{'file':'http://'+window.location.hostname+'/externals/tv-russia/smotret-tv3-online'},{'file':$config['add']+'hls/CH_R02_DOMASHNY/variant.m3u8?version=2'}];
var $params={top:"-80",left:"0",width:"500",height:"350",widthFr:"500",heightFr:"1500",timeout:1000,backgroundColor:"#000",backgroundPosition:"50% 60%"};

...and I don't understand how something like "" would translate to...

On 2022-04-12T17:54:32+0200, Bo Berglund <bo.berglund at gmail.com> wrote:
> https://nbcnews3.akamaized.net/hls/live/723429/NBCNewsNowa418c506/clear/hdntl=exp=1649865178~acl=%2f*~data=hdntl~hmac=5480897632ddf98d23bf870098333af5055752c54d28764b8c894711086d1266/VIDEO_1_4596000.m3u8

As the videostream doesn't work here, you're on your own on this one.

On 2022-04-12T17:54:32+0200, Bo Berglund <bo.berglund at gmail.com> wrote:
> Anyway, the command above used with the latest xidel yields an erroneous URL for
> the 2565 video:
> http://livedoc.cgtn.com/500d/prog_index.m3u8

That command was for Xidel 0.9.8, which you're not using anymore if I understand correctly.


More information about the ffmpeg-user mailing list