Hello,

I have this audio site. It's a pretty simple setup.
minimal install, custom content type,
audio:
title
date
file - audio - media file selector (media module)
file - youtube - media file selector (media module)
tags - same as title, 1 special tag to filter a special kind of audio
ad top - text with default value (adsense module)
ad middle - ^
ad bottom - ^

now the audio producer uploads a mp3 and an image
I have to manually
- import the mp3
- join the image and the mp3 and create a video with ffmpeg (on the cli)
- upload the video to youtube and get a video id
- paste the youtube link into the youtube media field
- create the title (usually filename without _ for spaces, i'll have to tell the producer to use a special naming scheme when uploading the files)
- create the tag/s
- add a date (usually yesterday or 2 days ago)
- submit

I want to automate that process,
what I want drupal to do is
1. automate the media import
2. create a node of content type audio
3. send a user of the site a private message (using privatemsg) so he knows when to promote the node on social sites

to check if a file upload is done one could use the drupal cron to check if the file's size has changed

can this be achieved with drupal and how?

Comments

More details needed

Does the "audio producer" upload by creating an "audio" content?

You could use the Automatic NodeTitles module (http://drupal.org/project/auto_nodetitle) to create your content title.

There are several ffmpeg modules which you might want to review (http://drupal.org/search/site/ffmpeg?f[0]=ss_meta_type%3Amodule)

One option might be to use the Rules module

hi spovlot, thank you for

hi spovlot,

thank you for your reply.
I forgot to mention the "audio producer", the one creating the audio files is uploading them by ftp.
and once it's done I'm using "import content" from the media module to .. import the mp3.
thanks for the ffmpeg module suggestions, I could indeed let drupal handle the encoding.

ok let me ask in a different way.
how would I add tasks to a cron run for a particular site?
ok let's skip the particular site
just add a task for cron to exec.
i found this
http://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_cron/7
write a module and add to the cron's queue
and this but it's only for drupal 6
https://drupal.org/project/ni_cron
but since uploading to youtube is done by script I wrote which relies on Zend_GData (actually it's not working yet because I used ZendGData which is for ZF2 but it's using some old functions from ZF1's HttpRequest)
So I believe that doing the import of the mp3 as a "media module file" using the media module's functions
I could just include the media module in my project.... dependency hell.
I'd probably be better off dumping drupal and creating a specialized app, but I'd miss Drupal's convenience and ease of use and amount of functionality.
I'm kind of lost in the forest here.
ok let's just let drupal import the media file
and convert it to video using one of the ffmpeg modules

seems I need to write my own module ..
that adds a cron task
that calls the media import routine
that encodes the video
that imports Zend, does Drupal support autoloading namespaces?
ok I found this
http://drupal.org/project/xautoload
that uploads the video
that creates a post of a content type and publishes it
and done

You seem to answer most of

You seem to answer most of your own questions. hook_cron( ) is a good option for scheduling tasks. I can't help with the YouTube video interface.

yeah sometimes it just needs

yeah sometimes it just needs someone to talk to, to find a solution :)

There's a Drupal 6 module

There's a Drupal 6 module that may provide some clues about automatically uploading a video to Youtube:

http://drupal.org/project/video_upload

thanks I'll check it out

thanks I'll check it out