RadioShow/After the show

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
(clear code adapted)
(Importing)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== After the Show ==
 
== After the Show ==
Once the show is over make sure you have a Backup of the entire show so we can put it online on our [[LetzHack|LetzHack page]].
+
Once the show is over make sure you have a Backup of the entire show so we can put it online on the [http://podcast.ara.lu/blog/category/ara/letzhack/ radio ara podcast].
  
Keep in mind that commercial songs will have to be removed from the podcasts though!
+
No need to edit the show to remove commercial music as long as the podcast is hosted at radio Ara server.
 +
 
 +
Best is to upload the show's FLAC via a big file mail service like http://filemail.com/
 +
 
 +
 
 +
=== Encoding ===
  
=== Encoding===
 
 
* Cutting by Germain
 
* Cutting by Germain
 
If the show needs to be cut by Germain, encode it at 256 kb/s with '''CONSTANT BITRATE''', as otherwise he cannot properly use his toolset which does not support VBR. The replay gain option calculates the volume for radio transmission (AFAIK). (The recording device in Studio 2 is set to limit the recording to -2.0 dB, so it would be a good idea to amplify the recording to 0dB.)
 
If the show needs to be cut by Germain, encode it at 256 kb/s with '''CONSTANT BITRATE''', as otherwise he cannot properly use his toolset which does not support VBR. The replay gain option calculates the volume for radio transmission (AFAIK). (The recording device in Studio 2 is set to limit the recording to -2.0 dB, so it would be a good idea to amplify the recording to 0dB.)
Line 23: Line 27:
 
# -[0.0]dB
 
# -[0.0]dB
 
# [OK]
 
# [OK]
(this takes about 2 minutes on a good PC)
+
(this takes about 1 minute on a good PC)
  
 
'''When encoding for the podcast: use the artist, title and date flags!''' (is there a podcast genre now?--[[User:Tschew|Tschew]] 08:02, 1 October 2009 (UTC))
 
'''When encoding for the podcast: use the artist, title and date flags!''' (is there a podcast genre now?--[[User:Tschew|Tschew]] 08:02, 1 October 2009 (UTC))
  
 
Setting some variables will make the following steps just cut & paste into your bash prompt
 
Setting some variables will make the following steps just cut & paste into your bash prompt
<pre>
 
InputFile=        # mp3 or wav file with the ready cut show
 
MyName=""        # who are you, not filling this will simply use your current user login
 
EpisodeNumber=    # put episode number here, e.g. 65
 
EpisodeTitle=""  # title of the show, e.g. "Events Review" (write " as \")
 
EpisodeDate=      # date of broadcast, e.g. 20120414
 
  
# calc intermediate values
 
EpisodeYear=${EpisodeDate:1:4}
 
EpisodeMonth=${EpisodeDate:4:2}
 
EpisodeDay=${EpisodeDate:6:2}
 
MyName=${MyName:-$(id -un)}
 
FileName="LetzHack_ep${EpisodeNumber}_${EpisodeDate}_podcast"
 
TitleTag="Lët'z Hack! episode ${EpisodeNumber} - ${EpisodeTitle}"
 
  
# create ogg
+
You can also use ''[http://jak-linux.org/projects/dir2ogg/ dir2ogg]'' to convert mp3 files to ogg.<br/>
oggenc "$InputFile" -o "${FileName}".ogg -d ${EpisodeYear} -a syn2cat -t "${TitleTag}"
+
  
cat << EOF | vorbiscomment -w "${FileName}".ogg
+
=== Importing ===
ARTIST=syn2cat Hackerspace
+
Following tools are needed: ''sudo apt-get install flac puddletag python-mutagen ffmpeg ''
ALBUM=LetzHack Radioshow
+
You may need: ''sudo add-apt-repository ppa:mc3man/trusty-media && apt-get update'' if ffmpeg is not found
TITLE=${TitleTag}
+
COMPOSER=$MyName
+
DATE=${EpisodeYear}-${EpisodeMonth}-${EpisodeDay}
+
EOF
+
  
# create mp3
+
if you got the flac from the original recording, convert it to mp3
lame -V 7 -v -h --ty ${EpisodeYear} --ta syn2cat --tt "${TitleTag}" "$InputFile" "${FileName}".mp3
+
::InputFile="radioshow - date day.flac"   # mp3 or wav file with the ready cut show
 +
::MyName=""         # who are you, not filling this will simply use your current user login
 +
::EpisodeNumber=    # put episode number here, e.g. beginning of 2016 it was 114
 +
::EpisodeTitle=""   # title of the show, e.g. "Events Review" (write " as \")
 +
::Language=eng      # eng=english
 +
if original flac is used, this is not needed:
 +
::EpisodeDate=      # date of broadcast, e.g. 20120414, can leave empty
  
</pre>
+
Then run this code
 +
::EpisodeDate=${EpisodeDate:-$(mutagen-inspect "$InputFile"|awk '/Programme du/ {d=$(NF-1);gsub("-","",d);print d}')}
 +
::EpisodeYear=${EpisodeDate:0:4}
 +
::EpisodeMonth=${EpisodeDate:4:2}
 +
::EpisodeDay=${EpisodeDate:6:2}
 +
::MyName=${MyName:-$(id -un)}
 +
::FileName="LetzHack_ep${EpisodeNumber}_${EpisodeDate}_podcast.mp3"
 +
::TitleTag="Lët'z Hack! episode ${EpisodeNumber} - ${EpisodeTitle}"
  
You can also use ''[http://jak-linux.org/projects/dir2ogg/ dir2ogg]'' to convert mp3 files to ogg.<br/>
+
::ffmpeg -i "$InputFile" -qscale:a 0 "$FileName"
  
=== Importing ===
+
::mid3v2 -a syn2cat -A 'LetzHack Radioshow' -t "$TitleTag" -c "::$Language" -y "$EpisodeYear-$EpisodeMonth-$EpisodeDay" "$FileName"
  
If you have shell access and the necessary amount of time (otherwise ask somebody else), upload the podcast.  
+
<!--
 +
* Set the mp3tags correctly. Use puddletag (spreadsheet style tag editor) as it allows to add advanced tags. Add the releasetime tag if it does not exist (ctrl-E, +, releasetime, OK) and put the releasetime in as yyyy-mm-dd (you can display this column by right clicking on the header (select columns, releasetime, ok)
 +
** Title: Letz Hack - short topic, topic, topic
 +
** Artist: syn2cat
 +
** Album: DD.MM.YYYY with guest1, guest2 guest3
 +
** Year: YYYY
 +
** releasetime: YYYY-MM-DD
 +
** language: eng
 +
-->
  
* Uploading files (if you have the above variables still set and your ~/.ssh/config is nicely set up AND you have writing access to radioshows) :  
+
* Go to the admin page of radio ara podcast server. If you have a password, you have the url (ok it's wordpress).
 +
* Upload the file into the media section
 +
* click on library and then on the just uploaded file: memorize the URL of the media file
 +
* Create the article as follows:
 +
* Link the file to the article in the "media URL" field
  
scp "${FileName}".{mp3,ogg} hackerspace.lu:/var/tmp/    # copy via tmp, else importer may work on unfinished file
+
Title: Lët’z Hack DD.M.YYYY – short topic
ssh hackerspace.lu "mv /var/tmp/${FileName}.{mp3,ogg} /var/spool/radioshows/"
+
  
* Those two files will be automatically imported into the wiki during the next hour. You can then proceed with the following step.
+
::<ul>
* You will find the imported files on [[Special:RecentChanges|the recent changes page]]
+
::<li><strong>topic 1</strong><br>
* INFO: the importer script will usually populate the wiki metadata using the ogg and mp3 tags. They should look like this else they will not appear in [[LetzHack#Podcasts|our podcast feeds]]:
+
::explanations on topic 1
 
+
::with links to twitter profiles of participants and links to further infos
For the ogg file
+
::</li>
<pre>
+
::<li><strong>topic 2</strong><br>
[[Is PodcastFile::true| ]]
+
::explanations on topic 2
[[Is FileType::ogg| ]]
+
::with links to twitter profiles of participants and links to further infos
[[Has Topic::<topic of the show>]]
+
::</li>
</pre>
+
::</ul>
and for the mp3 file the same, just different file type
+
::<p>Moderation: xxxxxxx <a href="https://twitter.com/@faq" target="_blank">@xxxxxxxxxxxx</a><br>
<pre>
+
::Guests: Gunstick <a href="https://twitter.com/GunstickUlm" target="_blank">@GunstickULM</a> &amp;&nbsp;
[[Is PodcastFile::true| ]]
+
::</p>
[[Is FileType::mp3| ]]
+
::<p><strong>Playlist:</strong></p>
[[Has Topic::<topic of the show>]]
+
::<ul>
</pre>
+
::<li><strong>artist 1</strong> – title 1</li>
 
+
::<li><strong>artist 2</strong> – title 2</li>
* Add the podcast filenames and release date to the wiki page semantic info of the episode you've just worked on. Edit "with form" and fill out or use this syntax:
+
::<li><strong>artist 3</strong> – title 3</li>
<pre>
+
::
|podcastrelease=2012/04/15 08:23:00 PM
+
|podcast=LetzHack_ep64_20120331_podcast.ogg‎
+
|podcastmp3=LetzHack_ep64_20120331_podcast.mp3
+
</pre>
+
(seriously, use the form, it has a clickable calendar).
+
  
* Finally, clear the cache for the Lët'z Hack page: '''[https://wiki.hackerspace.lu/w/index.php?title=LetzHack&action=purge Clear NOW]'''
+
* Remove all categories and select only category Let'z Hack
 +
* click on publish

Latest revision as of 15:52, 10 September 2016

[edit] After the Show

Once the show is over make sure you have a Backup of the entire show so we can put it online on the radio ara podcast.

No need to edit the show to remove commercial music as long as the podcast is hosted at radio Ara server.

Best is to upload the show's FLAC via a big file mail service like http://filemail.com/


[edit] Encoding

  • Cutting by Germain

If the show needs to be cut by Germain, encode it at 256 kb/s with CONSTANT BITRATE, as otherwise he cannot properly use his toolset which does not support VBR. The replay gain option calculates the volume for radio transmission (AFAIK). (The recording device in Studio 2 is set to limit the recording to -2.0 dB, so it would be a good idea to amplify the recording to 0dB.)

-$ lame --replaygain-accurate -h -b 256 --cbr in.wav LetzHack_epX_2012mmdd.mp3
  • Cutting yourself

Just use fancy audacity and edit as you like.

Remember: it's audacity, save often!

When done, normalize the audio:

  1. Effect->Normalize...
  2. [x] Remove any DC offset
  3. [x] Normalize maximum amplitude to
  4. -[0.0]dB
  5. [OK]

(this takes about 1 minute on a good PC)

When encoding for the podcast: use the artist, title and date flags! (is there a podcast genre now?--Tschew 08:02, 1 October 2009 (UTC))

Setting some variables will make the following steps just cut & paste into your bash prompt


You can also use dir2ogg to convert mp3 files to ogg.

[edit] Importing

Following tools are needed: sudo apt-get install flac puddletag python-mutagen ffmpeg You may need: sudo add-apt-repository ppa:mc3man/trusty-media && apt-get update if ffmpeg is not found

if you got the flac from the original recording, convert it to mp3

InputFile="radioshow - date day.flac" # mp3 or wav file with the ready cut show
MyName="" # who are you, not filling this will simply use your current user login
EpisodeNumber= # put episode number here, e.g. beginning of 2016 it was 114
EpisodeTitle="" # title of the show, e.g. "Events Review" (write " as \")
Language=eng # eng=english

if original flac is used, this is not needed:

EpisodeDate= # date of broadcast, e.g. 20120414, can leave empty

Then run this code

EpisodeDate=${EpisodeDate:-$(mutagen-inspect "$InputFile"|awk '/Programme du/ {d=$(NF-1);gsub("-","",d);print d}')}
EpisodeYear=${EpisodeDate:0:4}
EpisodeMonth=${EpisodeDate:4:2}
EpisodeDay=${EpisodeDate:6:2}
MyName=${MyName:-$(id -un)}
FileName="LetzHack_ep${EpisodeNumber}_${EpisodeDate}_podcast.mp3"
TitleTag="Lët'z Hack! episode ${EpisodeNumber} - ${EpisodeTitle}"
ffmpeg -i "$InputFile" -qscale:a 0 "$FileName"
mid3v2 -a syn2cat -A 'LetzHack Radioshow' -t "$TitleTag" -c "::$Language" -y "$EpisodeYear-$EpisodeMonth-$EpisodeDay" "$FileName"


  • Go to the admin page of radio ara podcast server. If you have a password, you have the url (ok it's wordpress).
  • Upload the file into the media section
  • click on library and then on the just uploaded file: memorize the URL of the media file
  • Create the article as follows:
  • Link the file to the article in the "media URL" field

Title: Lët’z Hack DD.M.YYYY – short topic

  • topic 1
  • explanations on topic 1
    with links to twitter profiles of participants and links to further infos
  • topic 2
  • explanations on topic 2
    with links to twitter profiles of participants and links to further infos

    Moderation: xxxxxxx <a href="https://twitter.com/@faq" target="_blank">@xxxxxxxxxxxx</a>

    Guests: Gunstick <a href="https://twitter.com/GunstickUlm" target="_blank">@GunstickULM</a> & 

    Playlist:

  • artist 1 – title 1
  • artist 2 – title 2
  • artist 3 – title 3
    • Remove all categories and select only category Let'z Hack
    • click on publish
    Personal tools
    Namespaces

    Variants
    Actions
    Navigation
    syn2cat
    Hackerspace
    Activities
    Initiatives
    Community
    Tools
    Tools