Making Zeranoe builds work under XP & XP builds by rogerdpack

Any other question that don't fit into the other support categorizes.
minotech
Posts: 5
Joined: Sat Apr 09, 2016 10:05 pm

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by minotech » Sun Feb 26, 2017 11:06 pm

I found (GOOGLE) another source for FFMPEG.EXE that is WinXP compatible.

http://blog.k-tai-douga.com/category/359294-1.html
The 'AbeChin' version -- He seems to be located in China or Taiwan.

So, he has the FFMPEG.EXE file as an 'alone' download. Uses the word "LEGACY" as a reference for meaning WinXP compatible. The 'PROBE' and 'PLAYER' are listed as another download, and are also WinXP compatible.

Worked as a straight file replacement. I successfully extracted an MP3 from a MP4 (AAC = audio) AV source file. But I have not done much testing with it yet. But it looks okay.

Looks like 'AbeChin' is doing a monthly version of it. You might need to use GOOGLE TRANSLATOR to view the website. In any event, I was pleased to find this new source for FFMPEG.EXE that is WinXP compatible.

(Added as of October 2017)
AbeChin Main Website for FFMPEG.EXE compatible for WinXP.
http://blog.k-tai-douga.com
Still seems to be a reliable source (LEGACY = WinXP) as of Oct. 2017
Last edited by minotech on Sun Oct 29, 2017 1:14 pm, edited 2 times in total.

llogan
Posts: 332
Joined: Fri Mar 14, 2014 3:29 am

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by llogan » Wed Mar 08, 2017 7:45 pm

Out of curiosity, why are you still using XP?

manolito
Posts: 26
Joined: Wed Apr 20, 2016 4:02 pm

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by manolito » Thu Mar 09, 2017 3:09 am

You can find some pretty good reasons in this post:
viewtopic.php?f=2&t=2937&start=10#p11608

Cheers
manolito

CoRoNe
Posts: 24
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by CoRoNe » Mon Mar 20, 2017 1:53 pm

I'm still rather new to compiling FFMpeg, but with the help of rogerdpack's ffmpeg-windows-build-helpers I've created 2 WinXP compatible builds:
ffmpeg-x86-N-84013-g95a72ae.exe (GnuTLS)
ffmpeg-x86-N-84014-g9e6b269_openssl.exe (OpenSSL)

In return I was wondering if someone on WinXP could test something for me.
As many of you probably know, Windows XP only supports TLS 1.0 encryption. More and more websites start to use TLS 1.2 encryption, which is only supported as of Windows 7. Watching TLS 1.2 encrypted websites in your browser is no issue, because most of them have build-in support.
FFMpeg compiled with GnuTLS or OpenSSL should in theory also support TLS 1.2 encrypted urls. Perhaps my Windows XP install is compromised, or the FFMpeg builds I made aren't working properly, but at the moment I can't open them. I constantly get:

Code: Select all

[https @ 04cabfe0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tls @ 04cadea0] Received incomplete handshake, need more data
...
[tls @ 04cadea0] Failed to read handshake response
The url I'd like you to test is from a Dutch TLS 1.2 encrypted livestream and has to be generated on-the-fly, because of expiring tokens. There's a chance this url doesn't work abroad. In that case I'm just out of luck.
You can use Youtube-dl or Xidel for the url extraction:

Code: Select all

FOR /F %A IN ('youtube-dl.exe -g "http://www.npo.nl/live/npo-1"') DO ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -v debug -i "%A"

FOR /F %A IN ('youtube-dl.exe -g "http://www.npo.nl/live/npo-1"') DO ffmpeg-x86-N-84014-g9e6b269_openssl.exe -hide_banner -v debug -i "%A"
or

Code: Select all

FOR /F %A IN ('xidel.exe -s --color=never "http://www.npo.nl/live/npo-1" -e "json(concat('http://ida.omroep.nl/app.php/',//@data-prid,'?token=',json('http://ida.omroep.nl/app.php/auth')/token))//url ! json(replace(.,'jsonp','json'))"') DO ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -v debug -i "%A"

FOR /F %A IN ('xidel.exe -s --color=never "http://www.npo.nl/live/npo-1" -e "json(concat('http://ida.omroep.nl/app.php/',//@data-prid,'?token=',json('http://ida.omroep.nl/app.php/auth')/token))//url ! json(replace(.,'jsonp','json'))"') DO ffmpeg-x86-N-84014-g9e6b269_openssl.exe -hide_banner -v debug -i "%A"
Could you then please tell me if you can open the url with these FFMpeg builds?

manolito
Posts: 26
Joined: Wed Apr 20, 2016 4:02 pm

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by manolito » Wed Mar 22, 2017 11:25 am

Tested all 4 possibilities, here are the results:

Note: I had to modify the command line by adding "usebackq" to it. I am under WinXP SP3 and my CPU does not support SSE2 (this is often an issue with XP compatible builds of FFmpeg).
F:\Download>ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -v debug -i "youtube-dl.exe"
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'youtube-dl.exe'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url youtube-dl.exe.
Successfully parsed a group of options.
Opening an input file: youtube-dl.exe.
[file @ 0540bba0] Setting default whitelist 'file,crypto'
youtube-dl.exe: No such file or directory
F:\Download>ffmpeg-x86-N-84014-g9e6b269_openssl.exe -hide_banner -v debug -i "youtube-dl.exe"
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'youtube-dl.exe'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url youtube-dl.exe.
Successfully parsed a group of options.
Opening an input file: youtube-dl.exe.
[file @ 0540bbe0] Setting default whitelist 'file,crypto'
youtube-dl.exe: No such file or directory
F:\Download>ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -v debug -i "xidel.exe"
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'xidel.exe'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url xidel.exe.
Successfully parsed a group of options.
Opening an input file: xidel.exe.
[file @ 0540bbc0] Setting default whitelist 'file,crypto'
xidel.exe: No such file or directory
F:\Download>ffmpeg-x86-N-84014-g9e6b269_openssl.exe -hide_banner -v debug -i "xidel.exe"
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'xidel.exe'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url xidel.exe.
Successfully parsed a group of options.
Opening an input file: xidel.exe.
[file @ 0540bbe0] Setting default whitelist 'file,crypto'
xidel.exe: No such file or directory

Cheers
manolito

CoRoNe
Posts: 24
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by CoRoNe » Wed Mar 22, 2017 6:10 pm

Hello manolito,

I'm on WinXP SP3 with a non-SSE2 cpu as well, but I never have to use usebackq.
F:\Download>ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -v debug -i "youtube-dl.exe"
You forgot the very important /F switch! Without it "youtube-dl.exe -g "http://www.npo.nl/live/npo-1"" will be parsed as a string instead of a command. Obviously FFMpeg can't open "youtube-dl.exe" as input.

manolito
Posts: 26
Joined: Wed Apr 20, 2016 4:02 pm

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by manolito » Thu Mar 23, 2017 10:54 am

Damn, I had totally misinterpreted your post. I had not downloaded youtube-dl.exe and xidel.exe before running the command...

Repeated all 4 tests with the two files present in the same folder. The TLS versions both seem to work, at the end they display this:
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0542b040] Statistics: 21432 bytes read, 0 seeks
[AVIOContext @ 0544ab60] Statistics: 34302 bytes read, 0 seeks
[AVIOContext @ 05485000] Statistics: 34302 bytes read, 0 seeks
[AVIOContext @ 05468c20] Statistics: 34302 bytes read, 0 seeks
[AVIOContext @ 054160e0] Statistics: 555 bytes read, 0 seeks
Both OpenSSL versions fail because OpenSSL is not installed on my machine.
F:\Download>FOR /F %A IN ('xidel.exe -s --color=never "http://www.npo.nl/live/np
o-1" -e "json(concat('http://ida.omroep.nl/app.php/',//@data- ... ken=',json
('http://ida.omroep.nl/app.php/auth')/token))//url ! json(replace(.,'jsonp','jso
n'))"') DO ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -v debug -i "%A"
Error:
Internet Error: -2 Couldn't load ssl libraries: libopenssl and libcrypto
They must be installed separately.
On Debian/Ubuntu install libssl-dev.
On Fedora/CentOS install openssl-devel.
On Windows install OpenSSL from https://slproweb.com/products/Win32OpenSSL.html
when talking to: https://www.npo.nl/live/npo-1

Cheers
manolito

CoRoNe
Posts: 24
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by CoRoNe » Thu Mar 23, 2017 12:12 pm

To fix the Xidel error you can extract 'libeay32.dll' en 'ssleay32.dll' from https://indy.fulgan.com/SSL/openssl-1.0 ... -win32.zip to the same directory as xidel.exe. But let's forget about Xidel for now and stick to Youtube-dl.
manolito wrote:The TLS versions both seem to work
So are you saying...

Code: Select all

FOR /F %A IN ('youtube-dl.exe -g "http://www.npo.nl/live/npo-1"') DO ffmpeg-x86-N-84013-g95a72ae.exe -hide_banner -i "%A"

FOR /F %A IN ('youtube-dl.exe -g "http://www.npo.nl/live/npo-1"') DO ffmpeg-x86-N-84014-g9e6b269_openssl.exe -hide_banner -i "%A"
both work for you on WinXP SP3? They don't for me. I've actually discovered that with the default settings I've used to compile the OpenSSL build that it's not correctly implemented at all.

I've finally had succes with an OpenSSL build I just made: ffmpeg-x86-N-84439-g7e4ba77_openssl.exe

Code: Select all

FOR /F %A IN ('youtube-dl.exe -g "http://www.npo.nl/liv
e/npo-1"') DO FFmpeg\ffmpeg-x86-N-84439-g7e4ba77_openssl.exe -hide_banner -i "%A"

FFmpeg\ffmpeg-x86-N-84439-g7e4ba77_openssl.exe -hide_banner -i "https://pedgewarea22b.video.kpnstreaming.nl/session/f18c0f66-0fbe-11e7-bdfb-1458d04270a0/fqimjj/b2b/live/npo/live/npo/tvlive/npo1/npo1.isml/npo1-audio_nld=128000-video=1400000.m3u8"
[mpegts @ 04cbc660] Invalid timestamps stream=1, pts=1044904112, dts=1044907712, size=776
[mpegts @ 04cbc660] Invalid timestamps stream=1, pts=1044907712, dts=1044911312, size=880
...
[hls,applehttp @ 04c975a0] Invalid timestamps stream=1, pts=1044965312, dts=1044968912, size=1462
[hls,applehttp @ 04c975a0] Invalid timestamps stream=1, pts=1044968912, dts=1044972512, size=967
Input #0, hls,applehttp, from 'https://pedgewarea22b.video.kpnstreaming.nl/session/f18c0f66-0fbe-11e7-bdfb-1458d04270a0/fqimjj/b2b/live/npo/live/npo/tvlive/npo1/npo1.isml/npo1-audio_nld=128000-video=1400000.m3u8':
  Duration: N/A, start: 11610.005689, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
At least one output file must be specified

manolito
Posts: 26
Joined: Wed Apr 20, 2016 4:02 pm

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by manolito » Thu Mar 23, 2017 1:20 pm

Redid the tests for youtube-dl.exe only.
I used the TLS version of FFmpeg and BOTH OpenSSL versions. For me your older OpenSSL version seems to work just as well as the new one.

I redirected the FFmpeg output to files (disabled the debug option). See the attached file...


Cheers
manolito
Results.zip
(1.79 KiB) Downloaded 31 times

CoRoNe
Posts: 24
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: Making Zeranoe builds work under XP & XP builds by rogerdpack

Post by CoRoNe » Thu Mar 23, 2017 1:41 pm

N-84013-g95a72ae.txt:
Input #0, hls,applehttp, from 'http://adaptive-e10c1b.npostreaming.nl/urishieldv2/l27m159a12470c81cb8c0058d3ca26000000.3b10d61e41ca845fcf905f8bc7b77eb2/u/npo/status/vodgeodenied/vodgeodenied.ism/vodgeodenied.m3u8':
I see now why all builds work for you. Youtube-dl returns a non-encrypted http-url!
The reason is probably because you're (I take it) no resident of the Netherlands ;). But when I read 'vodgeodenied', I'm wondering... can you actually watch the livestream? Can you open the url with FFPlay, or VLC/MPC-HC?
Anyway, thanks for your time, manolito!

Post Reply