Re: Possible To Get BBC R3 In FLAC using GiP?

2017-08-02 Thread Vangelis forthnet

On Wed Aug 2 18:43:49 BST 2017, C E Macfarlane wrote:


if it is possible to obtain the Proms iPlayer streams in FLAC,


Hello Charles, I do hope all's well with you!

The BBC do not provide AOD in flac, hence
it's impossible to acquire such files via GiP
(which currently only supports on-demand streams).
Recent Support Forum thread:
https://squarepenguin.co.uk/forums/thread-1463-post-6518.html


are only live broadcasts available as FLAC?


Precisely :-) Do note that this feature is only a
BBC Labs test; so it might not return after
Proms season is over.
There has been a relevant (albeit off-topic)
list thread back in April
http://lists.infradead.org/pipermail/get_iplayer/2017-April/010436.html
when the experiment first went live, but TBH
the choice of thread title isn't very
indicative of the thread's subject (so as
to spot it easily inside the list archives)... ;-(

The live flac stream is using MPEG-DASH
(unencrypted) type of delivery, the exact
mpd (media presentation description) URI is:

https://vs-dash-ww-rd-live.bbcfmt.hs.llnwd.net/al/lossless/client_manifest.mpd

(the -ww- part of the hostname, which belongs to
a Limelight CDN, indicates the stream is not geo-blocked,
so audiophiles from all over the world can test it,
provided their OS+Firefox version support it).

Back during the GiP 2.95-dev era (Jan 2016), the GiP coder
briefly experimented with supporting live radio dash streams:
https://github.com/get-iplayer/get_iplayer/commit/8a90279
but this feature never made it to a released version:
https://github.com/get-iplayer/get_iplayer/commit/9f6b8c6

Probably someone else with the required perl (or other)
expertise can conjure up a perl script to dump that live
DASH (but FLAC encoded) stream to file.

===
OT info (STOP HERE if bothered by OT content):

FWIW, a special patch for FFmpeg that only applies
to a special (previous) snapshot of FFmpeg
(commit git-20f7872) has been posted here:
https://patchwork.ffmpeg.org/patch/3346/
(or http://ffmpeg.org/pipermail/ffmpeg-devel/2017-April/210141.html)
but this initial DASH stream recording feature
hasn't made it to the official repo yet...

I have been successful in compiling a win32 FFmpeg build
(FFmpeg-n3.4-dev-301-git-20170409-N-85396-g20f7872+dash_demuxer_v14-libressl-win32)
that is able to capture this flac LIVE stream, unfortunately
it's a non-free build, as it uses libressl (openssl fork) as
the crypto lib; notice the stream uses HTTPS...

The RAW flac stream that is dumped to disk is not
a proper flac file, rather a "fragmented" flac file, the
product of dash streaming; so simply issuing

ffmpeg -v 16 -stats -re -i 
"https://vs-dash-ww-rd-live.bbcfmt.hs.llnwd.net/al/lossless/client_manifest.mpd; 
-t 00:30:00 -vn -c:a copy BBCR3LL.flac


will produce a non-seekable file with many
software players; better mux the stream to
the OGG container:

ffmpeg -v 16 -stats -re -i 
"https://vs-dash-ww-rd-live.bbcfmt.hs.llnwd.net/al/lossless/client_manifest.mpd; 
-t 00:30:00 -vn -c:a copy BBCR3LL.oga


or experimental mux to the MP4 container:

ffmpeg -v 16 -stats -re -i 
"https://vs-dash-ww-rd-live.bbcfmt.hs.llnwd.net/al/lossless/client_manifest.mpd; 
-t 00:30:00 -vn -c:a copy -strict -2 BBCR3LL_tmp.mp4
ffmpeg -v 32 -stats -i BBCR3LL_temp.mp4 -vn -c:a copy -strict -2 -movflags 
faststart BBCR3LL.mp4 && del BBCR3LL_tmp.mp4


for seekable files (needs recent versions of players);
or losslessly recode on-the-fly to flac:

ffmpeg -v 16 -stats -re -i 
"https://vs-dash-ww-rd-live.bbcfmt.hs.llnwd.net/al/lossless/client_manifest.mpd; 
-t 00:30:00 -vn -c:a flac BBCR3LL-rc.flac


BTW, if you plan to edit the recorded flac stream
further with FFmpeg, you'll bump on this bug:
https://trac.ffmpeg.org/ticket/4905
You'll have to
DECODE TO WAV => PIPE => EDIT => ENCODE TO FLAC
E.g. to cut out a segment from an hour's worth
of live stream, I used:

ffmpeg -v 8 -stats -i original.flac -vn -f wav - | ffmpeg -v 
8 -stats -i - -ss 00:42:19 -to 00:58:11 -vn -af aformat=s16:48000 cut.flac


If you can't compile for yourself that
special, DASH enabled, build of FFmpeg,
then your best bet is to try a recent nightly
build of VLC 3.0.0-git (win builds link):

http://nightlies.videolan.org/build/win32/last/

Often times, those nightly builds are unstable
(might even cause BSODs), but nothing evil
has happened to my system by running the latest
compiles (e.g. I'm on VLC 3.0.0-git-20170731-0258).
You'll have to tweak the GUI to make that red
Record button appear (not there by default), then
search on how to record a live stream with VLC;
use the mpd URI posted previously...
VLC 3.0.0-git muxes the segmented FLAC
stream inside the OGG container by default,
resulting in an .ogg file.

MediaInfo log:

Format   : Ogg
Format/Info  : Free Lossless Audio Codec
File size: 7.47 MiB
Duration : 1 min 21 s
Overall bit rate mode 

Re: Possible To Get BBC R3 In FLAC using GiP?

2017-08-02 Thread Owen Smith
Only the live R3 broadcast is available in FLAC.

-- 
Owen Smith 
Cambridge, UK

> On 2 Aug 2017, at 18:43, C E Macfarlane  wrote:
> 
> As per title, I was wondering if it is possible to obtain the Proms iPlayer
> streams in FLAC, and if so, how, or are only live broadcasts available as
> FLAC?
> --
> www.macfh.co.uk/MacFH.html
> 
> 
> ___
> get_iplayer mailing list
> get_iplayer@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread Alan Milewczyk

On 02/08/2017 21:44, C E Macfarlane wrote:

Just tried to use GiP on my XP machine for the first time in months, and am
getting a strange error that never used to occur:


XP is no longer supported although I think some users have found a way 
around the various problems. I'm sure it's in the archives but I don't 
have time to check it out.


Alan



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


RE: Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread C E Macfarlane
Thanks ...
-- 
www.macfh.co.uk/MacFH.html

> -Original Message-
> From: get_iplayer [mailto:get_iplayer-boun...@lists.infradead.org]On
> Behalf Of Ralph Corderoy
> Sent: 02 August 2017 22:02
> To: get_iplayer@lists.infradead.org
> Subject: Re: Strange CodePage Error in GiP2.99 On XP
> 
> 
> Hi C.E.,
> 
> > Cannot find encoding "cp850" at 
> C:\Programs\GetIPlayer\get_iplayer.pl
> > line 323.
> 
> Try using `--encoding-console-out cp1252' option at the start 
> of the options.
> Only a quick guess;  I don't have Windows.

But a very good one, that fixed it!

I'll add that to my options, but I'm still left wondering what has changed?

Thanks again
Regards

C E Macfarlane.


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread Ralph Corderoy
Hi C.E.,

> Cannot find encoding "cp850" at C:\Programs\GetIPlayer\get_iplayer.pl
> line 323.

Try using `--encoding-console-out cp1252' option at the start of the options.
Only a quick guess;  I don't have Windows.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread C E Macfarlane
Just tried to use GiP on my XP machine for the first time in months, and am
getting a strange error that never used to occur:

perl
C:\Programs\GetIPlayer\get_iplayer.pl --profile-dir=D:\CEM\GetIPlayer --type
tv --tvmode hafhd,hlshd --pid b007c0ys --file-prefix "Life Of Mammals, The -
01 A Winning Design" -g
Cannot find encoding "cp850" at C:\Programs\GetIPlayer\get_iplayer.pl line
323.

I'm using v3.01 successfully on a W7 64-bit machine, and was about to
experiment with what could be done to use a this version on an XP machine,
and found I couldn't even run a 2.9x version anymore!

Can anyone explain?

Also, the new FFMPEG fails on XP with:
The procedure entry point GetNumaNodeProcessorMaskEx could
not be located in the dynamic link library KERNEL32.dll

Regards ...
--
www.macfh.co.uk/MacFH.html


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Possible To Get BBC R3 In FLAC using GiP?

2017-08-02 Thread C E Macfarlane
As per title, I was wondering if it is possible to obtain the Proms iPlayer
streams in FLAC, and if so, how, or are only live broadcasts available as
FLAC?
--
www.macfh.co.uk/MacFH.html


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Generate .cue from timestamp for long program

2017-08-02 Thread RS

From: Live Musicfs
Sent: Wednesday, August 2, 2017 09:27


Radio 3 Iplayer provides timestamp and track title to seek each piece of 
music quickly, in long program like concert and “Throughout the Night".


The current Get_iplayer writes these timestamp to "Lyrics" embedded in .m4a 
file, it will be  very helpful to build a .cue file from it.


However, one problem is that the timestamp listed in webpage and audio 
player is different. Webpage timestamp is the planned time by editors, 
while >audio player time stamp is the actual time in live broadcast (the 
time for news and other broadcast is variable).


This doesn't seem to work for the Proms or opera, or is it only for some 
values of --radiomode?  For example Prom 3 with --radiomode=dafhigh has 
Lyrics: and Comment: strings which I cannot copy and paste either from 
Mediainfo or VLC.  They give the name of the conductor, orchestra, soloist, 
radio presenter and brief details of the works played, but no timing 
information.




___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Generate .cue from timestamp for long program

2017-08-02 Thread Live Musicfs
Hello get_iplayer team,

Radio 3 Iplayer provides timestamp and track title to seek each piece of music 
quickly, in long program like concert and “Throughout the Night".

The current Get_iplayer writes these timestamp to "Lyrics" embedded in .m4a 
file, it will be  very helpful to build a .cue file from it.

However, one problem is that the timestamp listed in webpage and audio player 
is different. Webpage timestamp is the planned time by editors, while audio 
player time stamp is the actual time in live broadcast (the time for news and 
other broadcast is variable).

Best,
Preluder
___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer