2015-11-16

Notes on workflow with Avid

After writing recommendations about workflows several times for different projects, I tried to summarize things on a more generic page.

Since it is a bit too long for a blog post, it is on a separate page:
Avid workflow summary.

It is mainly about syncing, timecode, export to sound design, and some specific details, because these are the things I have often seen done wrong, or get asked about. I guess I will update it occasionally, so you can suggest corrections or additions in the comments of this post.

Labels: , , , , , ,

2011-02-11

Timecode et Final Cut

Audio timecode

Certaines caméras comme les Sony Z1 et EX1 n'ont pas d'entrée pour un générateur de time code externe. On peut alors enregistrer le son d'un générateur de TC sur une piste audio. Mais contrairement à Avid, Final Cut Pro ne peut pas décoder ce son pour obtenir le time code. Pour cela, il faut des programmes externes. J'en connais 2:

  • FCP auxTC reader de VideoToolShed. Il coûte $ 250, et il propose une version démo qui permet de le tester avec quelques limitations.
  • et TimeTools de Gallery. Celui-là coûte $ 900, et ne propose pas de version démo, ni même de mode d'emploi en ligne qui permettrait de se faire une idée. Alors on se demande pourquoi il coûte presque 4 fois le prix du précédent.
Lors d'un essai rapide des deux sur une journée de tournage, FCP auxTC reader s'en est mieux sorti. Il n'a pas reconnu le TC sur 3 clips, alors que TimeTools ne l'a pas reconnu sur une dizaine de clips. 

Merged clips

Une fois que les vidéos ont le bon time code, encore faut-il les synchroniser avec le son externe correspondant pour en faire des "merged clips". Là aussi, Avid permet de le faire automatiquement sur un bin entier, mais pas FCP. Il faut sélectionner l'image et le son correspondant, puis les "merge" individuellement.

Pour éviter ce travail long et fastidieux, il y a Sync-N-Link for FCP. Malheureusement, il coûte $ 500.

Remarques

  • FCPauxTC n'accepte que des fichiers dont le nom a l'extension ".mov". Il semble possible de faire des captures dans FCP qui créent des fichiers sans extension. Dans ce cas, il faut d'abord tous les renommer en leur ajoutant ".mov". Cela peut se faire facilement par une commande dans Terminal. (Ceux qui ne sont pas à l'aise dans Terminal peuvent installer un programme graphique payant comme comme par exemple Pathfinder.)
  • FCPauxTC permet aussi de faire des clips avec le son, mais il ne fait pas des "merged clips" associant image et son. Au lieu de ça, il ajoute le son dans le quicktime image. Il peut n'ajouter que le lien vers le son ("by reference" au lieu de "self-contained"), mais en général on préfère quand même des "merged clips" standard.
  • Pour les tournages sans TC, il y a aussi PluralEyes de Singular Software, qui ne coûte que $ 150. Il fonctionne en analysant le son, et en reconnaissant des sons identiques. Il paraît que ça fonctionne bien quand le son externe a été enregistré sur la caméra (par une liaison HF par exemple). Mais si le son caméra est celui du micro caméra, il serait trop différent du son externe pour que PluralEyes puisse le reconnaître. (Je n'ai pas pu l'essayer, parce que quelqu'un l'avait déjà essayé sur la machine que j'utilisais, et je ne pouvais pas ré-installer une version test une 2e fois.) 
Voir l'article suivant pour un rappel des procédures pratiques à suivre avec FCPauxTC et Sync-N-Link.

Labels: , , , , , , ,

2009-04-18

Sessions ProTools depuis Final Cut

Voilà un petit aide-mémoire pour un export d'un montage Final Cut Pro avec des sons Cantar, vers des sessions ProTools, en utilisant Titan Flash Conform, et quelques lignes de script Perl pour résoudre un problème dans l'EDL exportée depuis FCP: http://alma.ch/film/workflows/fcp-cantar-titan-protools/ C'est en anglais, mais vous pouvez ajouter ici vos commentaires, corrections, et autres remarques dans la langue de votre choix.

Labels: , , , , ,

2007-03-22

Invalid 24 bit BWF files imported by Avid without timecode

The problem

When you import 24 bit BWF files into Avid, you may encounter a pretty obscure problem: some of the files will be imported without the timecode, while others will be OK. This will never happen happen with 16 bit files, nor will it happen with stereo 24 bit files. And it will only happen with files produced by certain recorders. And I'm not sure whether it only happens on Macs (I used Avid Xpress Pro 5 on Mac). It is a rare problem, and it took me a while to figure out, so here is what I found. I had the problem with files originating on a Sound Devices 744T (fw 2.03), but the same problem seems to exist with the HHB Portadrive, and probably with others as well. (As far as I know, the Cantar doesn't have this problem. I don't know about others). (Update: the Sound Devices firmware update 2.15 fixes this.) The manufacturers lay the blame on Avid, like in this post on the HHB forum:
"There has been a problem with importing some Portadrive 24-bit wav files into Avid Xpress Pro. Avid would import them via Quicktime rather than directly and in the process all metadata (including most vitally the timestamp) would be lost. This is an Avid bug and will be fixed in the next release of Xpress Pro."
However, what I found is that it seems to really be a bug in the recorders which produce invalid WAVE files, as shown also by the fact that Avid sends the file to Quicktime instead of processing it itself. I guess Avid could fix their WAV reader, but not easily without breaking the import of some valid files. It would seem much more straightforward to update the firmware in these recorders so that they write valid WAVE files, especially since the change would be quite trivial.

The theory

In short, WAV files are supposed to have an even number of bytes. When you record 24 bit mono sound, you get 3 bytes per sample, and around half of the files will have audio containing an odd number of bytes. So these files would not be valid and confuse the routines reading them. (Before all the technical details, here is the opportunity to jump directly further down to something more practical or even straight to a possible solution.) Broadcast Wave files (BWF) are really Microsoft WAVE format files, with a "broadcast extension" containing timecode and other metadata information. And these .WAV files are really just a form of RIFF files. RIFF files were created by Microsoft and IBM a long time ago, and are based on another even older format: IFF files. (AIFF is another such descendent of IFF). These specifications have all been published at some point, but have also been changed and augmented since then, and a clear and current reference is hard to find. Basically, all these RIFF files are composed of various blocks called chunks, of varying sizes. Any WAV file contains at least a "data" chunk with the audio, and a format chunk describing the number of channels, sampling rate, etc. In addition, the BWF variety of WAV files also contains a "bext" chunk which is where the timecode is stored along with other information, and may also contain various other chunks (iXML, link, etc.). The best quotes I found to pinpoint this specifc problem of odd/even sized chunks are these: GFF Format Summary: Microsoft RIFF from an O'Reilly book:
"ChunkData contains data that is WORD-aligned within the RIFF file. If the data is an odd length in size, an extra byte of NULL padding is added to the end of the data. The ChunkSize value does not include the length of the padding."
and AVI RIFF File Reference from the Microsoft site:
"The data is always padded to nearest WORD boundary. ckSize gives the size of the valid data in the chunk; it does not include the padding, the size of ckID, or the size of ckSize."
So all these chunks must have an even number of bytes. If the data in the chunk happens to need an odd number of bytes like in the case of some 24 bit mono sounds, a null byte must be added to pad the chunk to an even number. But the reported chunk size is still expected to be the exact number of useful bytes, different from the real size when it happens to be odd. Weird, isn't it? According to the IFF entry in Wikipedia, this weirdness is due to a limitation of an ancient processor:
"Chunks must begin on even file offsets, as befits the origins of IFF on the Motorola 68000 processor, which couldn't address quantities larger than a byte on odd addresses. Thus a chunk following an odd-length chunk will be preceded by a pad byte."
No wonder many devices and software are programmed without taking this (may I say) odd detail into account. Especially since you will hardly find these quotes if you search for WAV or BWF, even though they apply to any RIFF file, including WAVE files.

Back to practice

You can recognize these problematic files by the fact that their size in bytes is an odd number (once you find how to get your file manager to show you exact sizes in bytes instead of MB). If the audio is not padded to an even number with a null byte, you end up with an invalid WAV file, which some programs will understand, and some not. If the audio happens to be at the very end of the WAV file, which seems to be the case with the files I have seen, some programs will either not mind about the missing null byte which is not part of the audio anyway, or not even notice (I guess that is what happens in the Windows version of Avid). However, if the audio data is followed in the file with another chunk like a bext or iXML chunk, you are likely to have many problems. The way Avid seems to handle it, is that it does see the file as invalid, and lets Quicktime have a go at it. Quicktime will read the audio, but it skips the bext chunk with the timecode, so Avid gets back the audio without the TC. You will also notice, during the import into Avid, the mention of QT instead of WAVE in the progress window. This is a clear sign that you will get the audio through Quicktime, and without timecode.

The solution

In the HHB forum thread mentioned earlier, they suggest using a little Mac OS9 program: HHBFix which can be downloaded from the HHB site. It did fix the specific files I had so that they imported correctly. However, it does it in a way which proved quite unreliable in some cases: it just blindly adds a null byte to the end of any odd-sized file. Obviously, this will only work if the audio data chunk happens to be the last one in the file. That will probably be the case in a file coming straight from a portable recorder, but there is no guarantee about it. If, before importing the file, some program added another chunk at the end, HHBFix will not do any good. I would also have another solution, but it currently uses Perl in a shell window, and a modified version of the File::Format::RIFF module. Since the people likely to need a solution are also unlikely to know what Perl or a shell window like Terminal are, I'm not sure it's really useful. The best solution would really be for manufacturers to correct the code in their firmware (update: Sound Devices seems to have done that quickly). Update: BWF Widget Pro (runs on Windows) added the ability to correct these invalid files since version 1.175.

Conclusion

Don't let this discourage you from using timecode. In most cases, you will never encounter this problem since it only happens with mono 24 bit sounds produced on some recorders and imported into a Mac version of Avid.

Labels: , , , , , ,

2006-06-27

Flac sur Mac

Si je vous ai passé des fichiers audio au format FLAC et que vous utilisez un Mac, il vous faudra 1 ou 2 programmes supplémentaires pour les écouter et/ou les convertir dans un autre format. Il en existe plusieurs, la plupart gratuits. J'utilise souvent le format .flac pour compresser de la musique parce que c'est un compresseur "lossless" (sans perte de qualité), et que c'est un logiciel libre: non seulement gratuit, mais surtout libre de droits et ouvert. Ca me garantit que je pourrai toujours trouver un programme pour lire/décompresser ces fichiers sur l'engin de mon choix, même dans 10 ou 20 ans quand il n'y aura peut-être plus ni Macs ni PCs Windows, et que mon CD original aura été perdu ou irrémédiablement rayé. Contrairement à d'autres programmes de musique, iTunes ne lit pas les fichiers .flac (sans doute pour tenter de capter les utilsateurs dans son propre format non-libre). Il faut donc soit les décompresser, soit utiliser un autre programme pour l'écoute. Pour écouter les fichiers .flac, il y a le fameux VLC (que vous devriez probablement avoir de toute façon pour lire les nombreux formats que Quicktime ne lit pas), ou Cog que je ne connais pas. Pour les décompresser en WAV ou en AIFF standard, il y a xACT et d'autres. A partir de là vous pourrez les recompresser dans votre format préféré (mp3, aac, etc.) Si vous avez déjà Toast 7 Titanium, il paraît qu'il peut graver des CDs audio directement à partir des fichiers .flac. Peut-être peut-il aussi faire autre chose avec? Pour une liste tenue à jour, voir la page officielle.

Labels: , ,

2005-04-04

Importer le son d'un DVD dans Final Cut Pro

Comment peut-on importer le son d'un DVD dans Final Cut Pro? Un preneur de son a suggéré de brancher un lecteur DVD de salon sur le lecteur DVCAM, et de capturer le son à partir de là dans FCP. Ca fonctionne sûrement, mais ça me semblait un procédé un peu absurde (convertir un son digital en analogique, pour le re-digitaliser) et trop long, alors qu'il devrait suffire d'extraire le son digital tel quel du DVD. Les opérations nécessaires sont:
  1. Copier le DVD sur disque dur. S'il s'agit d'un DVD commercial, il faut en même temps supprimer le cryptage CSS (deCSS).
  2. dé-multiplexer (demux) le son de l'image. (Les fichiers .VOB du DVD contiennent le son et l'image; il faut donc les séparer, et ne garder que le son)
  3. Convertir le son dans un format pouvant être importé dans FCP. Le son des DVD est en général du Dolby Surround. Après le demux il sera dans un fichier .AC3. Pour l'importer, il faut le convertir en .WAV ou en .AIFF.
  4. Importer dans FCP.
S'il s'agit du son d'un DVD commercial et d'un projet commercial, il reste encore l'étape la plus complexe: trouver le détenteur des droits, et négocier l'utilisation du son dans votre projet. Mais heureusement, ça n'est pas le boulot du monteur. Il existe de très (trop) nombreux outils gratuits pour ces opérations, aussi bien pour Windows que pour Mac. J'en ai essayé quelques-uns. Pour Mac, la copie, le décryptage (deCSS) et le "demux" peuvent se faire avec MacTheRipper, et la conversion du son AC3 en WAV ou en AIFF avec mAC3dec. Avec Windows, je viens de tester:
  1. DVD Decrypter pour sauver, décrypter et extraire le son ("demuxer")
  2. PX3Convert ou Ac3Decode pour convertir le AC3 en WAV.
Si vous avez d'autres outils à suggérer à la place de ceux-là, vos commentaires sont les bienvenus.

Labels: , , , , ,