On 24/08/2017 16:17, Vangelis forthnet wrote:
> On Thu Aug 24 13:12:07 BST 2017, RS wrote:
> 
>> whether I am at risk of losing tags or metadata.
> 
> There is such a risk, but whenever FFmpeg has tagged files as input,
> it does its best to preserve (most) of the metadata present in the input
> file and carry it over to the output file, taking, of course, into account
> what metadata the output container has support for...
> 
>> The reason for my concern is that
>> there seems to be a lot of code in get_iplayer to process metadata,
>> although I can't pretend to understand what it all does.
> 
> Yes, there's a lot of code, but in a nutshell
> what it does is parse online BBC sources
> (currently e.g.
> http://www.bbc.co.uk/programmes/<pid>.json
> http://www.bbc.co.uk/programmes/<pid>/playlist.json )
> to harvest what metadata is needed,
> then use it to construct AtomicParsley commands
> to tag the downloaded->remuxed .M4A files.
> Using --verbose or --debug into your GiP commands
> will let you inspect in detail what's being actually done :-)
> 
>> What I still haven't worked out is
>> whether there is an equivalent of
>> -codec copy for metadata.
> 
> If my details above wrt ffmpeg still leave you in doubt,
> then please have a read of
> 
> http://www.ffmpeg.org/ffmpeg-formats.html#Metadata-1
> 
> This is a manual labour, metadata present in
> the input file is first extracted and backed-up,
> to be inserted to the output file at a second stage...
> But again, since it's GiP audio files we're discussing
> (or maybe not?), you can tag the edited .m4a file with
> GiP via:
> 
> get_iplayer --type=radio --pid=<pid> --tag-only --tag-podcast-radio
> --tag-only-filename="<filename>"
> 
> "<filename>" in this case is THE COMPLETE PATH
> to your edited audio file (whereas in normal GiP use
> "<filename>"="<dir>\<fileprefix>.EXT", "<dir>"
> being your "iPlayer Recordings" directory...
> 
> The tagging command works even after a radio
> programme has expired from iPlayer Radio,
> because the online sources stay there for good
> (tied to the unique pid string!).
> 
> All the best,
> Vangelis
> 
> _______________________________________________
> get_iplayer mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/get_iplayer
> 

Hi Vangelis,
Had to put this all on hold for a couple of years and now having another
look at tidying up where I have some downloads that are missing their
tagging.  I believe from when I forgot to install atomic parsley.
Anyhow I remembered and revisited your suggestion and thought I would
try and start work.

This is what I get:-

alastair@install:~> get_iplayer --type=radio --pid=b01r1vt2 --tag-only
--tag-podcast-radio
--tag-only-filename=/home/alastair/Working/Composer_of_the_Week_-_George_Frideric_Handel_1685-1759_1._Handel_and_his_Italian_Patrons_b01r1vt2_default.m4a
get_iplayer v3.22, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use
--warranty.
  This is free software, and you are welcome to redistribute it under
certain
  conditions; use --conditions for details.


Episodes:
Composer of the Week - George Frideric Handel (1685-1759), Handel and
his Italian Patrons, BBC Radio 3, b01r1vt2
INFO: 1 total programmes

WARNING: No media streams found for requested programme versions and
recording modes.
WARNING: The programme may no longer be available - check the iPlayer or
Sounds site.
WARNING: The programme may only be available in an unsupported format
(e.g., Flash) - check the iPlayer or Sounds site.
WARNING: If you use a VPN/VPS/Smart DNS/web proxy, it may have been blocked.
INFO: Processing radio: 'Composer of the Week: George Frideric Handel
(1685-1759) - 01. Handel and his Italian Patrons (b01r1vt2)'
INFO: No versions of this programme were selected (available versions: none)
WARNING: Cannot tag missing file:
/home/alastair/Working/Composer_of_the_Week_-_George_Frideric_Handel_1685-1759_1._Handel_and_his_Italian_Patrons_b01r1vt2_default.m4a
alastair@install:~>


Now there will be many reasons why this may not work but am I on the
right lines and could this ever work or is it from too long ago.  I
believe my original download was 05/03/2013!

Trust you are OK.
Regards,
Alastair.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
get_iplayer mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/get_iplayer

Reply via email to