Re: I haven't been able to download using PID for ages....

2012-10-05 Thread Mark Rogers

On 01/10/2012 15:48, dinkypumpkin wrote:
A Linux shell interprets those literally as well when passing arguments to a 
script such as get_iplayer.  It's only when they're written to the console 
with echo, for example, that the magic happens.  Fear not the backslash.


You learn something new every day! Thanks for the correction.

Mark

--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER



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


Re: I haven't been able to download using PID for ages....

2012-10-01 Thread Mark Rogers

On 01/10/12 13:12, dinkypumpkin wrote:
Valid, but unnecessary.  The Windows command interpreter hands the path to 
get_iplayer as-is, without the need for escaped backslashes.

[...]

No luck involved.  The Windows command interpreter just passes the path to 
Perl as a string, where it is interpreted as a directory path.


So in other words Windows only interprets \ and \\ specially, and all the 
others (\r, \n, \t, etc) it treats literally? How limiting! :-)


It would work (at least for Perl apps), but there's no harm in supporting 
native Windows conventions as well.  Internally, get_iplayer uses File::Spec 
to handle paths portably.




Absolutely, I wasn't suggesting that \ shouldn't be supported, Windows users 
have it hard enough already


--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER


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


Re: I haven't been able to download using PID for ages....

2012-09-28 Thread Dave F.

On 27/09/2012 14:51, dinkypumpkin wrote:
Sorry - forgot to correct a typo in your example.  Remove the 
backslash after BBC:


get_iplayer -o C:\Downloads\BBC --modes=best --type radio --pid b01mxvr5


That's it! Thanks.

I have to say though that I'm surprised the last forward slash for the 
output option would prevent iplayer from a least finding  listing the 
desired program. Especially when it's not that strict on other 
formatting in the command line, the = sign for instance.


Cheers
Dave F.

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


Re: I haven't been able to download using PID for ages....

2012-09-28 Thread Dave F.

On 27/09/2012 18:01, Jon Davies wrote:

I'm kind of lost as to what you're actually trying to achieve.  If you
have a single specific programme you want to download, then finding
the pid and downloading it works, but seems like a hard way of solving
the problem.


See earlier post by dinky' who sorted me out.

In most cases downloading by searching for a programme name works
fine, and repeating the same command later will get later episodes of
the same programme.

So taking the command line you originally gave, something like

get_iplayer  --type radio The Comedy Club Interviews


I use my Humax to record series - it's just quicker  cheaper. I use 
iplayer for one off programs, clips of programs that the BBC often put 
up or if I happen to miss an episode.


Cheers
Dave F.

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


Re: I haven't been able to download using PID for ages....

2012-09-28 Thread dinkypumpkin

On 28/09/2012 12:32, Dave F. wrote:

On 27/09/2012 14:51, dinkypumpkin wrote:

Sorry - forgot to correct a typo in your example.  Remove the
backslash after BBC:

get_iplayer -o C:\Downloads\BBC --modes=best --type radio --pid
b01mxvr5


That's it! Thanks.

I have to say though that I'm surprised the last forward slash for the
output option would prevent iplayer from a least finding  listing the
desired program. Especially when it's not that strict on other
formatting in the command line, the = sign for instance.


The backslash escapes the quote character, so the value of the -o 
parameter isn't terminated.  That means that get_iplayer never sees any 
of the following arguments on the command line.  This means get_iplayer 
effectively runs without arguments and thus just returns the full list 
of available programmes.  That's just how command line parsing works - 
it's nothing to do with get_iplayer.  FWIW, since you don't have any 
spaces in that path, you don't need to surround it with quotes.  Without 
quotes, the trailing backslash would be OK.




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


Re: I haven't been able to download using PID for ages....

2012-09-28 Thread Dave F.

On 28/09/2012 12:44, dinkypumpkin wrote:


The backslash escapes the quote character, so the value of the -o 
parameter isn't terminated.  That means that get_iplayer never sees 
any of the following arguments on the command line.  This means 
get_iplayer effectively runs without arguments and thus just returns 
the full list of available programmes.  That's just how command line 
parsing works - it's nothing to do with get_iplayer. FWIW, since you 
don't have any spaces in that path, you don't need to surround it with 
quotes.


I see


Without quotes, the trailing backslash would be OK.


Thanks again.

Dave F.


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


Re: I haven't been able to download using PID for ages....

2012-09-27 Thread Dave F.

On 26/09/2012 16:55, dinkypumpkin wrote:

From your example, the command line should look like:

get_iplayer -o C:\Downloads\BBC\ --modes=best --type radio --pid
b01mxvr5


From the DOS prompt of a command window I get the same list of programs 
as described before. How are you running this command?


Cheers
Dave F.

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


Re: I haven't been able to download using PID for ages....

2012-09-27 Thread dinkypumpkin

On 27/09/2012 14:38, Dave F. wrote:

On 26/09/2012 16:55, dinkypumpkin wrote:

From your example, the command line should look like:

get_iplayer -o C:\Downloads\BBC\ --modes=best --type radio --pid
b01mxvr5


 From the DOS prompt of a command window I get the same list of programs
as described before. How are you running this command?


Sorry - forgot to correct a typo in your example.  Remove the backslash 
after BBC:


get_iplayer -o C:\Downloads\BBC --modes=best --type radio --pid b01mxvr5

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


I haven't been able to download using PID for ages....

2012-09-26 Thread Dave F.

Hi
I haven't been able to download using PID for ages but finally got some 
spare time to try  solve it.


I'm using Windows 7. I did an uninstall using iplayers own utility  
loaded the get_iplayer_setup_latest.exe (2.82)


I have a shortcut on my desktop with the Target command line:

C:\Program Files (x86)\get_iplayer\get_iplayer.cmd -o 
C:\Downloads\BBC\ 
--modes=flashaaclow,flashaacstd,rtspaaclow,rtspaacstd,wma --pid b012klt2


I've tried it without the --modes option, also with/out the --type=radio 
(is that required when using the specific --pid?).


Hope you can help

Cheers
Dave F.

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


Re: I haven't been able to download using PID for ages....

2012-09-26 Thread Dave F.



On 26/09/2012 13:42, Jon Davies wrote:

On 26 September 2012 12:59, Dave F. dave...@madasafish.com wrote:

I haven't been able to download using PID for ages but finally got some
spare time to try  solve it.
[...]
C:\Program Files (x86)\get_iplayer\get_iplayer.cmd -o C:\Downloads\BBC\
--modes=flashaaclow,flashaacstd,rtspaaclow,rtspaacstd,wma --pid b012klt2

You should read the messages that get_iplayer gives you, specifically
this one, which appears at the end after a long list of episodes:


I'm not getting any messages. The output file has the warranty 
disclaimer followed by a list of 'matched' programs  ends with INFO: 
974 Matching Programmes



INFO: Please run the command again using one of the above episode PIDs
or to get all programmes add the --pid-recursive option


I may have given you a wrong PID. I wasn't trying to record a whole 
series/brand, just one show.


Try this one:
C:\Program Files (x86)\get_iplayer\get_iplayer.cmd -o 
C:\Downloads\BBC\ --refresh --force -f --modes=best --pid b01mxvr5 --i -v


Which should be this: http://www.bbc.co.uk/programmes/b01mxvr5

I've added a couple of other options to hopefully help but didn't.

Cheers
Dave F.



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


Re: I haven't been able to download using PID for ages....

2012-09-26 Thread Chris Marriott



-Original Message- 
From: Dave F.

Sent: Wednesday, September 26, 2012 2:25 PM
To: get_iplayer@lists.infradead.org
Subject: Re: I haven't been able to download using PID for ages



Try this one:
C:\Program Files (x86)\get_iplayer\get_iplayer.cmd -o 
C:\Downloads\BBC\ --refresh --force -f --modes=best --pid b01mxvr5 --i -v


Surely it's pid= not, pid , is it not? That's what I always use 
and it works fine.


Eg,

get_iplayer --mode=flashhigh --pid=b01n1tbz

should download episode 2 of the BBC4 series Love and Marriage.

Cheers,

Chris


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


Re: I haven't been able to download using PID for ages....

2012-09-26 Thread dinkypumpkin

On 26/09/2012 14:25, Dave F. wrote:

Try this one:
C:\Program Files (x86)\get_iplayer\get_iplayer.cmd -o
C:\Downloads\BBC\ --refresh --force -f --modes=best --pid b01mxvr5 --i -v


From your example, the command line should look like:

get_iplayer -o C:\Downloads\BBC\ --modes=best --type radio --pid b01mxvr5




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


Re: I haven't been able to download using PID for ages....

2012-09-26 Thread Chris Marriott



-Original Message- 
From: dinkypumpkin

Sent: Wednesday, September 26, 2012 5:06 PM
To: get_iplayer@lists.infradead.org
Subject: Re: I haven't been able to download using PID for ages


On 26/09/2012 16:31, Chris Marriott wrote:

Surely it's pid= not, pid , is it not? That's what I always



Either form is OK for get_iplayer


Thanks for clarifying that - I didn't know!

The form of the command that I posted is what I use daily, and it always 
works for me.


Chris


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


RE: I haven't been able to download using PID for ages....

2012-09-26 Thread bat guano




 
 Using --raw obviates the transcoding (yeurgh). use FLVExtract to rip out 
 AAC from the FLVs and then use YAMB (or MP4Box if you're not lazy like 
 me) to remux as an M4A and get it seekable. For videos, I just leave as 
 FLV as MPC can parse and decode them fine natively; when I remuxed as 
 MP4 I had frame drift for whatever reason... and at that point I was 
 happy enough anyway with the H.264 FLVs. :-)
 
 

Hi
Surely for m4a/mp4 files get_iplayer uses FFmpeg to do just what you're doing 
with FLVExtract and YAMB?
Not 'transcoding', only re-packaging.
  
___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: I haven't been able to download using PID for ages....

2012-09-26 Thread Christopher Woods (CM)

Some interesting comments all, thanks.

The reason I put --pid at the end of my string is partially to stop me 
from forgetting to change it ;-) And I only ever use get_iplayer to grab 
stuff for which I've already found the PID for, I always found its PVR 
features a little cumbersome for what I wanted.


My explicit SWFVfy declaration was after the default player URL was 
removed by the BBC so rtmpdump was having problems with dropped frames 
and corrupt downloads, particularly on the HD content.


I was under the impression get_iplayer still transcoded to MP3? I'm 
using 2.79 on Windows; I remember a lot of discussion a while back about 
the quality of the downloads and people asking how to stop it from 
transcoding. I left it as-is because I remember a few things being 
broken in updates pushed out - but if newer versions have those bugs 
squished and have a newer build of ffmpeg rolled in, I'll certainly give 
that a try. I'm a sucker for metadata. Undoubtedly YAMB is a bit long in 
the tooth now, I've only just got used to some of its UI quirks ;-)


On 26/09/2012 19:26, dinkypumpkin wrote:

On 26/09/2012 18:19, Christopher Woods (CM) wrote:

Some clarification for new users -


get_iplayer --raw --output G:\iplayer\raw\ --modes
flashaachigh,flashaac,flashaacstd,flashaudio,flashaaclow --rtmptvopts
--swfVfy http://www.bbc.co.uk/emp/revisions/18269_21576_10player.swf;
--rtmpradioopts --swfVfy
http://www.bbc.co.uk/emp/revisions/18269_21576_10player.swf; --force
--get --type=liveradio --pid=pidhere


The --swfvfy value is built into get_iplayer.  There is no need to use 
it on a command line unless you know of a case where the built-in 
value no longer works.  Also, you don't need --get if you specify 
--pid. Think of --pid as shortcut to download a specific programme 
when you already know its unique identifier.



a liveradio category result for the pid you enter. My golden rule is to
always have --pid or --url at the very end of the string. Specifying the
10player URL stopped frame drops in videos when rtmpdump couldn't swfvfy
properly.


There is no need to put --url or --pid at the end of your command 
line.  get_iplayer's argument parsing is not sensitive to entry order.



Using --raw obviates the transcoding (yeurgh). use FLVExtract to rip out
AAC from the FLVs and then use YAMB (or MP4Box if you're not lazy like
me) to remux as an M4A and get it seekable. For videos, I just leave as
FLV as MPC can parse and decode them fine natively; when I remuxed as
MP4 I had frame drift for whatever reason... and at that point I was
happy enough anyway with the H.264 FLVs. :-)


To echo SeƱor Guano: get_iplayer does not transcode.  You only need to 
re-mux files yourself if you wish to use a different tool or different 
parameters.  If you prefer to use --raw and stick with FLV files, 
that's fine.  But if you prefer to re-mux files to MP4 format and get 
metadata tags, etc., the combination of get_iplayer and ffmpeg works 
pretty well.


If you're using YAMB and consistently seeing drift in re-muxed video, 
get an up-to-date version of ffmpeg and let get_iplayer re-mux a few 
programmes and then compare the results.  No guarantee it will be 
better, but ffmpeg (as well as MP4Box) has come along a bit since YAMB 
was released a few years ago.



___
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: I haven't been able to download using PID for ages....

2012-09-26 Thread dinkypumpkin

On 26/09/2012 23:02, Christopher Woods (CM) wrote:

My explicit SWFVfy declaration was after the default player URL was
removed by the BBC so rtmpdump was having problems with dropped frames
and corrupt downloads, particularly on the HD content.


The BBC has gone through several generations of player URLs.  At one 
time they would delete or move old ones when a new ones came online, but 
that hasn't happened for quite a while.  You do need the player URL for 
HD programmes in order to avoid continual dropping/reconnecting while 
downloading, but the built-in value in get_iplayer 2.80+ has been 
working fine for the last 18 months or so.



I was under the impression get_iplayer still transcoded to MP3? I'm
using 2.79 on Windows; I remember a lot of discussion a while back about


MP3 transcoding was done for realaudio streams, but those are long dead, 
though the code remains in get_iplayer.  get_iplayer 2.80+ has the 
--aactomp3 to give you option of transcoding national radio programmes 
from AAC audio to MP3 (with metadata) if you prefer that to M4A.




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