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

2017-08-04 Thread RS

From: CJB
Sent: Friday, August 4, 2017 09:15




More techie info. here:



http://mudcat.org/thread.cfm?threadid=161901


Thanks for the link but it’s a bit out of date.  Vangelis’s suggestion to 
use a recent nightly build of VLC works very easily.  Choose 64 bit or 32 
bit.  Just unzip the .zip file to its own directory and call vlc.exe in that 
directory.  See my earlier comments about the problems I had and how I 
solved them.


As for the FLAC not being processed, the FLAC Brahms 2nd Symphony last night 
was about 2½min behind the Radio 3 satellite broadcast.


Please can the mailing list software be sorted out so it works without 
having to jump through hoops.




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


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

2017-08-04 Thread CJB
More techie info. here:

http://mudcat.org/thread.cfm?threadid=161901

CJB

On 03/08/2017, C E Macfarlane  wrote:
> Thanks Vangelis for a very complete explanation ... Further points below
> ...
> --
> www.macfh.co.uk/MacFH.html
>
>> -Original Message-
>> From: get_iplayer [mailto:get_iplayer-boun...@lists.infradead.org]On
>> Behalf Of Vangelis forthnet
>> Sent: 03 August 2017 00:13
>> To: get_iplayer@lists.infradead.org
>>     Subject: Re: Possible To Get BBC R3 In FLAC using GiP?
>>
>> 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!
>
> Thanks, not too bad, and you I hope.
>
>>  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
>
> Ah, a 'CEM standard'* W7 build I'm creating for my newer PCs already has a
> recent version of VLC installed, I wonder if that might be able to download
> the FLAC stream?  I'll look into it.
>
> * I use builds to my own standards on all my PCs, so that as far as
> possible
> regardless of age they all have the same suite of programmes installed.
>
>> > 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/01
>> 0436.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)... ;-(
>
> Too right.  No wonder I didn't find it!  It was obviously a great mistake
> to
> search each month's thread titles for something relevant, like 'flac' for
> example :-)
>
>>  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/cli
>> ent_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_demuxe
>> r_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/cl
>> ient_manifest.mpd"
>>  -t 00:30:00 -vn -c:a copy BBCR3LL.flac
>>
>> will produce a non-seek

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

2017-08-03 Thread RS

Sent: Thursday, August 3, 2017 20:08  I wrote


What I can't work out is how to record or save it.  There is a record 
button but I can't see where that is recording to.  I searched in Google 
for vlc record and it told me to View Advanced Controls , Open Capture 
Device, and set Capture Device to Desktop.  All that seems to do is to stop 
it playing.



Any thoughts?


Sorry I should have read further.  The answer is
Tools Preferences Input & Codecs
Record directory or filename
Save

It creates a FLAC file with the .ogg suffix.

The first time I tried to play it I got silence.  I restarted VLC and it 
then played alright.  When I tried to start playing the stream again it told 
me it couldn't play it.  I tried again and it worked.




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


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

2017-08-03 Thread RS

From: Vangelis forthnet Sent: Thursday, August 3, 2017 16:19


As outlined in my previous post, you'd have to definitely go for the 
nightly VLC-3.0.0-git branch, and from there select a fairly recent build 
(mid-July and newer).


Thanks Vangelis, your detailed explanations are much appreciated.  Even if I 
don’t go ahead and do it, they add to my education.


Sorry if I am being obtuse.  I have unzipped
vlc-3.0.0-20170731-0458-git-win64.zip

I checked I could play nomal video and audio files.  Open Network Stream 
didn't work, and I couldn't find the log to see why.  Open Location from 
Clipboard has worked, and it is playing at the moment.  What I can't work 
out is how to record or save it.  There is a record button but I can't see 
where that is recording to.  I searched in Google for vlc record and it told 
me to View Advanced Controls , Open Capture Device, and set Capture Device 
to Desktop.  All that seems to do is to stop it playing.


Any thoughts?

Best wishes
Richard




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


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

2017-08-03 Thread Vangelis forthnet
On Thu Aug 3 12:38:53 BST 2017, C E Macfarlane wrote: 

already has a recent version of VLC installed, 
I wonder if that might be able to download
the FLAC stream? 


Latest released version of VLC is 2.2.6; 
unfortunately, the 2.2.x branch is uncapable 
of playing back/recording the live MPEG-DASH 
R3 flac stream (plus, it's plagued by a still unresolved 
bug that causes extensive CPU usage on Windows OSes 
during playback/recording of AppleHLS streams...).
As outlined in my previous post, you'd have to 
definitely go for the nightly VLC-3.0.0-git branch, 
and from there select a fairly recent build (mid-July and 
newer).


wtf are you wasting holiday time on the likes of me?! 
Enjoy it while you can!


... I can assure you you have not been treated in any 
special way just because it was "the likes of" you! 
As for holiday time, already had a week's escape 
in July to a friend's house in a village by the sea, no 
more holiday time is scheduled for me... 
We've been hit (northern Greece) several times already 
by severe heatwaves (the likes of which we had more 
than 10 years to sustain), all this heat (coupled with 
high humidity) has a toll on you; 30 C at night breaks 
your sleeping patterns, one can't always rely upon A/C, 
it's too bad for one's health, the environment and wallet!


I very rarely discuss politics in this list, but thanks to 
an 8 year long recession (which is unlikely to end soon) 
and the wills of our international creditors, "holiday" 
has become a taboo word for native middle-class Greeks; 
the majority are on permanent "holiday", due to lengthy unemployment, 
inside their homes, unable to cope with their bills 
and debts; losing their houses to banks and the state 
is what they fight against, am afraid no money is available 
for summer holidays to the islands and to other "hot" 
locations chosen by tourists :-( 

Best wishes, 
Vangelis.


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


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

2017-08-03 Thread C E Macfarlane
Thanks Vangelis for a very complete explanation ... Further points below ...
--
www.macfh.co.uk/MacFH.html

> -Original Message-
> From: get_iplayer [mailto:get_iplayer-boun...@lists.infradead.org]On
> Behalf Of Vangelis forthnet
> Sent: 03 August 2017 00:13
> To: get_iplayer@lists.infradead.org
> Subject: Re: Possible To Get BBC R3 In FLAC using GiP?
>
> 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!

Thanks, not too bad, and you I hope.

>  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

Ah, a 'CEM standard'* W7 build I'm creating for my newer PCs already has a
recent version of VLC installed, I wonder if that might be able to download
the FLAC stream?  I'll look into it.

* I use builds to my own standards on all my PCs, so that as far as possible
regardless of age they all have the same suite of programmes installed.

> > 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/01
> 0436.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)... ;-(

Too right.  No wonder I didn't find it!  It was obviously a great mistake to
search each month's thread titles for something relevant, like 'flac' for
example :-)

>  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/cli
> ent_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_demuxe
> r_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/cl
> ient_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/cl
> ient_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/cl
> ient_manifest.mpd"
>  -t 00:

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


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