Using afconvert (ac3 5.1 to aac 2.0)

Hello!
My question is simple. What exact terminal command shall I use to convert a raw 5.1 ac3 file to a 2.0 aac file @160 kbps for use in a video streaming to an Apple TV?
I've heard of afconvert, but no success in making this thing to work...
Cheers!

Terminal?
Why not try MpegStreamclip. If I remember correctly I did pretty much the same thing not long ago. And what to you mean "raw" ac3 5.1 file? That's a highly processed, mixed and refined output.

Similar Messages

  • Help using afconvert in terminal

    I'm trying to use afconvert to convert an ac3 file in to an aac file.
    And I'm getting no where here is how far I've got.
    MacBook:~ B4tm4n$ afconvert -v -f mp4f -d aac -b 128000 /Users/B4tm4n/Desktop/\[mkvextract\]/audio2.ac3
    Input file: audio2.ac3, 0 frames
    Error: Couldn't set client format (-50)
    What am I doing wrong, I just can't figure it out.
    Here is the usage info from terminal.
    Usage:
    afconvert [option...] input_file [output_file]
    Options: (may appear before or after arguments)
    { -f | --file } file_format:
    'adts' = AAC ADTS (.aac, .adts)
    data_formats: 'aac '
    'ac-3' = AC3 (.ac3)
    data_formats: 'ac-3'
    'AIFC' = AIFC (.aif, .aiff, .aifc)
    data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
    BEF64 'ulaw' 'alaw' 'MAC3' 'MAC6' 'ima4'
    'QDMC' 'QDM2' 'Qclp' 'agsm'
    'AIFF' = AIFF (.aif, .aiff)
    data_formats: BEI8 BEI16 BEI24 BEI32
    'caff' = Apple CAF File (.caf)
    data_formats: '.mp1' '.mp2' '.mp3' 'FlAd' 'MAC3'
    'MAC6' 'PesA' 'QDM2' 'QDMC' 'Qclp' 'Qclq'
    'TS\x00\x02' 'TS\x00\x06' 'TS\x00\x07' 'TS\x00\x11' 'TS\x00E' 'TS\x00U'
    'WMA1' 'WMA2' 'WMA3' 'XiVs' 'aac ' 'ac-3'
    'agsm' 'alac' 'alaw' 'drms' 'dvca' 'dvi '
    'ima4' 'lpc ' BEI8 BEI16 BEI24 BEI32
    BEF32 BEF64 LEI16 LEI24 LEI32 LEF32
    LEF64 'ms\x00\x02' 'ms\x00\x11' 'ms\x001' 'ms\x00U' 'ms\x01`'
    'ms\x01a' 'ms \x00' 'samr' 'ulaw' 'vdva'
    'MPG3' = MPEG Layer 3 (.mp3, .mpeg)
    data_formats: '.mp3'
    'mp4f' = MPEG4 Audio (.mp4)
    data_formats: 'aac '
    'm4af' = MPEG4 Audio (.m4a)
    data_formats: 'aac ' 'alac'
    'NeXT' = NeXT/Sun (.snd, .au)
    data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
    BEF64 'ulaw'
    'Sd2f' = Sound Designer II (.sd2)
    data_formats: BEI8 BEI16 BEI24 BEI32
    'WAVE' = WAVE (.wav)
    data_formats: LEUI8 LEI16 LEI24 LEI32 LEF32
    LEF64 'ulaw' 'alaw'
    { -d | --data } dataformat[@sample_rate_hz][/format_flags][#frames_perpacket] :
    [-][BE|LE]{F|I}{8|16|24|32|64} (PCM)
    e.g. BEI16 F32@44100
    or a data format appropriate to file format, as above
    format_flags: hex digits, e.g. '80'
    bitdepth on non-PCM formats can be specified, e.g.: alac-24
    Frames per packet can be specified for some encoders, e.g.: samr#12
    { -c | --channels } numberofchannels
    add/remove channels without regard to order
    { -l | --channellayout } layout_tag
    layout_tag: name of a constant from CoreAudioTypes.h
    (prefix "kAudioChannelLayoutTag_" may be omitted)
    if specified once, applies to output file; if twice, the first
    applies to the input file, the second to the output file
    { -b | --bitrate } bitratebps
    e.g. 128000
    { -q | --quality } codec_quality
    codec_quality: 0-127
    { -r | --src-quality } src_quality
    src_quality (sample rate converter quality): 0-127
    { -v | --verbose }
    print progress verbosely
    { -s | --strategy } strategy
    bitrate strategy for encoded file
    0 for CBR, 1 for ABR, 2 for VBR
    { -t | --tag }
    If encoding to CAF, store the source file's format and name in a user chunk.
    If decoding from CAF, use the destination format and filename found in a user chunk.
    --prime-method method
    decode priming method (see AudioConverter.h)
    If anyone can help me find the right order of commands I would be greatly thankfull.
    Cheers.

    I sorted it out myself.

  • Will any versions of Quicktime past 7.0 ever be able to use the AC3 passthrough?

    I have a Mac Mini, and play my movies through it as an entertainment system.   I have to continue to use Quicktime 7.0 because after that, the AC3 passthrough doesn't work and I lose 5.1 quality sound.   WIth that, I have been unable to upgrade my itunes since quicktime upgrades automatically.
    Once this is fixed, I should be able to use an apple TV in the other room and play the movies on both systems, sharing through Itunes.  Since I have different versions, it is not going to work.
    Please advise.

    I have a Mac Mini, and play my movies through it as an entertainment system.   I have to continue to use Quicktime 7.0 because after that, the AC3 passthrough doesn't work and I lose 5.1 quality sound.   WIth that, I have been unable to upgrade my itunes since quicktime upgrades automatically.
    Once this is fixed, I should be able to use an apple TV in the other room and play the movies on both systems, sharing through Itunes.  Since I have different versions, it is not going to work.
    Please advise.

  • How to rename converted AAC filename using Nokia M...

    I'm using Nokia 3110. I encounterd some issue about the mp3 music fail to playback due to require activation code on my Nokia 3110 phone. I managed to overcome the activation code problem by using Nokia Music Manager. I just do not understand why this issue happen??? Because some of the songs from the same CD album do not have this activation code issue. FYI. I purhcase original CD.
    Second issue i'm still figuring is about how to rename AAC song as per my desire. The default file name after converted to ACC using Nokia Music Manager is 01-.AAC. I did try to rename it using Nokia Music Manager. But, once it downloaded to the phone. It still display the "original" file name, which is 01-.AAC. Please assist.
    Third issue is about the album information. How does Nokia Music Manager categories or get the "correct" album information? Some of the song name is incorrect after downloaded to the phone.
    from Music Lover

    Not come across the activation code issue at all.
    To stop the track number appearing in the file name:
    - open Music Manager (Transfer music option in PC Suite)
    - click Options .. Settings
    - unset the "Add track number to the file name when ripping content from CD" option
    You'll have to re-rip all your music again, though.
    If you don't want to do this, I'm sure there are tools around that will let you edit the track information in the file - try a search on this board or google.

  • Movies with AC3 "Cannot be played"

    Hi hope someone is in a position to answer this.
    Tried out the ios 4.2 beta a few weeks back, found that while folders and multitasking were useful there was a huge problem with playing back my video files.
    Have a large collection of m4v files with multiple audio tracks. First track is AC3 passthough, second is AAC downmix.
    With the current version of ios this is great. If I stream to Apple TV I get 5.1 surround.
    If I sync to the ipad it automatically selected the stereo track to play back.
    When I tried out 4.2 this no longer happened. Clicking on video that worked fine in 3.2 failed to play back with 4.2 "Video cannot be played". SYNCS - but doesnt play.
    Does anyone know if this has been resolved with the finished release? Not keen to update if I lose the ability to play back my video collection on the ipad.
    Folders would be nice, but not really worth the trade off.
    Anyone in a position to confirm if this has been resolved in the final release?

    Hello there,
    Not sure as to why this is happening suddenly. I would take a look at this Apple support document related to this issue. It's a good place to start at least.
    [iPod does not play content purchased from the iTMS|http://support.apple.com/kb/TS1510?viewlocale=en_US]
    B-rock

  • New iTunes 4.9 doesn't convert .mpg into .mp3 or aac ?

    hello support!
    I'm a producer in a german radiostation. we're working with soundfiles saved in .mpg files (mpeg1 audio). In past (with version 4.8) it was possible to import that files into itunes and convert it into mp3 or aac. Now, with that new podcast version, it doesn't work. If I try, I get an unknown error "(-50)". does anyone know about this problem?
    and another question: why does itunes play that .mpg files without any problems and ipod doesn't ???
    greetz
    dennis

    Dennis,
    What I did:
    1) I bought apple quicktime pro do not follow me in this it won't help you.. I got angry and at the apple store they said I would get my money back because I asked them BEFORE I bought and they said it would work. It doesn't
    2) I downloaded MPEG streamclip (free) at http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
    AND....
    It works! You do not need to buy the Apple quicktime MPEG 2 component rubbish, you do not need it if you convert just audio!
    I have MP2 files with 384 kbbs and I was looking a bit odd when they showed up as 192 kbbs but that is per stereo channel so the total comes to 384 again.
    I transferred the files into AIFF and it works I do see a conversion into AC3 is that AAC? well if you can convert to AIFF you can use iTunes again to convert to AAC or MP3!
    so now you can do the job! I am now, after a few hours, again back to start to work..... thanks iTunes boys!
    there is another app at http://www.dekorte.com/projects/shareware/SoundConverter/ is seems to do the job as well but it'll cost you 10 dollar. And I do not know if it is as good as the free app...

  • Accessing center channel in Sony AVCHD video AC3 audio (5.1 surround)

    I have tons of video shot on Sony HDR-CX7 and HDR-CX12 camcorders (AVCHD) in 5.1 stereo. iMovie '09 and Final Cut Express import the audio as two channel stereo, which is normally fine for a consumer app.
    I use a Sony wireless microphone to record interviews, and I normally set the camera to record only the monophonic microphone audio. But, there is also a setting to let the camera record 5.1 stereo from it's built-in microphone, and use the wireless mic as the center channel audio.
    I have footage recorded this way, and I find that when I play it back in stereo, I get a slight delay/echo caused by the wireless mic recording voices, and the camera recording voices (slightly offset). I cannot use the audio this way.
    I want to extract the center channel audio from the AVCHD .mts files. I can then line that audio up with the video in Final Cut Express (or even overlay it in iMovie '09).
    Does anyone know of a free utility that can strip out audio from AVCHD files?
    It looked like Handbrake might work, but it errors out when it tries to convert more than two channel audio.
    I believe the AVCHD audio is AC3 format, so if I can strip that out, Quicktime is able to mute the other surround channels.
    Any tips?

    Here is my current status, and a work-around method to accomplish this.
    First, using "ffmpeg" it is possible to extract just the .AC3 audio stream from a .MTS AVCHD camcorder file. I have tried to do this with the Mac OS X GUI version, ffmpegX, but it errors out. It looks like it is sending the wrong parameter to ffmpeg internally (or perhaps it is using a different ffmpeg command I have on my machine). Anyway, the command looks like this:
    ffmpeg -i 00000.MTS -acodec copy audio.ac3
    That will extract just the audio stream from within the MTS file (which is an AC3 file). By default, you cannot play .AC3 files in QuickTime. It turns out, I had "Perian" installed, which is an extension for QuickTime that allows it to play a bunch of other files. One of the settings was a Stereo mode, which was causing anything I tried to play mix down to stereo. Aha! So, I could toggle that off and actually get to the audio track I wanted.
    BUT, since native Mac OS X does not read .ac3, my workaround is to again use ffmpeg to convert the .ac3 file to a .aac:
    ffmpeg -i audio.ac3 -acodec ac3 -ab 512k audio.aac
    Since the source AC3 file was 448kb/s, I just manually chose 512k as the conversion rate, so it shouldn't lose too much quality. That value can be changed to decrease file size.
    The end result, "audio.aac", is now a 6 channel 5.1 audio file. You can open it in QuickTime, and go to Window->Show Movie Properties then select the "Sound Track" track, and the "Audio Settings" tab of that track, and you will see tracks 1-6 (Left, Center, Right, etc.). You can toggle the tracks off to get to the one you want (in my case, just Center).
    From there you could export this out to a file with just the track you selected, or drag the .aac file in to Final Cut Express.
    If you drag in to Final Cut Express, you will see it takes up five audio tracks. I drug this under the original imported video track, and was able to mute the ones I did not need. I also found I could unlock the audio from the video, and then delete the ones I didn't want, just to clean up the edit window a bit.
    The end result is now I can import the AVCHD file in to Final Cut Express, and bring in this converted AAC under the video to access just the center audio I wanted.
    When I have time to streamline this process a bit more, I will update this topic.

  • What is the best video format to use with Dreamweaver CS5.5

    My client has asked what format to convert their video to before sending it to me to be placed on their homepage. I'm using DreamWeaver CS5.5 with an HTML5 template - trying to steer clear of Flash for this new site. On other sites, I embed videos from their hosting site (YouTube, SchoolTube, etc).
    My question to the forum is what is the best way (and prefered format) now days to insert a video onto a webpage using DreamWeaver CS5.5 and HTML5. I have the Adobe Web Premium package.

    In the chapter on video in Dive Into HTML5 it says this:
    There is no single combination of containers and codecs that works in all HTML5 browsers.
    This is not likely to change in the near future.
    To make your video watchable across all of these devices and platforms, you’re going to need to encode your video more than once.
    And a suggested workflow:
    For maximum compatibility, here’s what your video workflow will look like: 
    Make one version that uses WebM (VP8 + Vorbis).
    Make another version that uses H.264 baseline video and AAC “low complexity” audio in an MP4 container.
    Make another version that uses Theora video and Vorbis audio in an Ogg container.
    Link to all three video files from a single <video> element, and fall back to a Flash-based video player.
    I think that your starting point is to consider your target audience.
    Martin
    http://diveintohtml5.info/video.html

  • WMA Lossless - AAC - 128br

    I have most of my music in WMA lossless and am thinking of converting to AAC so I can use iTunes, if I convert to AAC will the option to 'Convert higher bit rate songs to 128 Kbps AAC' only affect the songs on the ipod? i.e. not the whole library.
    If so, what happens to the original file in the library, especially when that file is replaced or removed from the iPod -- is it a separate on the fly operation? I hope so.

    An iPhone will, though it's not certain, most likely function like an iPod nano. So the format of the tracks in iTunes is what will be transferred to the iPhone; it's doubtful (though not impossible) that there will be an on-the-fly conversion as is the case with an iPod shuffle.
    But with WMA, iTunes can't play it. It converts it automatically on import (to whatever format is set in the iTunes Import settings, I believe). So you will not get uncompressed WMA on an iPhone (or iPod) regardless of the synchronization scheme.

  • Want to convert .aiff files (8 cds) to .aac format without duplicating

    I ripped an 8=cd set to .aiff and added these to my iTunes library, but forgot how large it is on my iPad. Is there a way to create a "mirror" of the 8 cd set in .aac format? If I convert tunes per cd, I end up with duplicates in that folder (1., 1., 2., 2.). I'd ideally like one .aiff version of the set and one in .aac. I'd relabel them accordingly, and also sync accordingly.
    If that's too hard I would be happy with just substittuting the .aiff files with .aac ones. Not sure that is possible.
    I imagine I could copy the files to an x-drive, delete what i have in the iTunes folder, and then reimport as .aac. Perhaps that's easiest?
    Thanks.

    Not what I prefer to do. Ideally it would be to have one version of the 8 cds in AIFF and another labelled differently and in AAC.
    The best I have found is here: https://discussions.apple.com/message/8258383#8258383, ie to use smart playlists, convert everything to aac, keep both sets, but restrict which ones go onto the ipad (AAC there, not AIFF).
    This is ok, but messy in one way: my music library shows one CD with duplicates of each track, each in a diff. sample rate. So, playing them via iTunes becomes more complicated. Not happy with this solution.
    I don't have the original cds here at the office, only the files in AIFF. There seems to be no good way to import the files AS aac; when you add them, they come out in aiff.
    THere must be a way so that you can listen to either format as you like all from one library.

  • Aiff or .AC3 on DVD disc?

    Hi, I am finishing my band's DVD and I have the final mix in 2 formats. 1 is stereo aiff and the other is a 5.1 .ac3.
    My question is, is there any advantage to me converting my stereo file to a 2.0 channel .ac3? Will it play back better in more players because of the lower bit rate required for the stereo .ac3?
    It fits on the disk either way and the .aiff sounds good to me so I am inclined to keep it but I would encode it if there are any good reasons to.
    Thanks in Advance,
    Steve

    Just to get the thread back on topic, you can use either AC3 or PCM audio on a DVD, and both should be able to be played back in players around the world (with older PAL systems more likely to struggle with AC3)
    AC3 allows for a lower bandwidth, as you point out, and this is only important in two situations. Firstly, if you have a lot of video to fit onto a disc it is wise to reduce the audio file size for the relatively tiny loss of quality (I'd bet most people wouldn't hear it on a standard player set up) because audio is easier to compress and get right than video. Secondly, if you are burning a disc yourself rather than going to replication.
    When you burn a disc you are not creating a true DVD-Video disc, but a DVD-R (or +R). These have different compatibility in players, and since they use an entirely different technology for the reflective layer (it is a vegetable based dye rather than aluminium film) you get different responses from set top boxes.
    The DVD specification allows for a total bandwidth of 10.08Mbps on a DVD. However, up to 9.8Mbps of this can be used for video, leaving not much for audio. You can, of course, use more for audio and less for video if you wish.
    There is a bit of a 'gotcha' though. With a DVD-R or DVD+R you would be very unwise to use these high bandwidths. In fact, since the reflectivity of the surface is so much less you need to reduce the bandwidth. Anecdotal tests from authors all around the world have revealed a reasonable upper limit of around 7.4Mbps produces the most compatible discs in the widest range of players. Going higher introduces an ever diminishing return, in that you gain file size with no appreciable improvement in quality, and you increase the chances of your disc 'choking' the player as it struggles to get the data off at the higher rates.
    My advice would be to reduce the audio to AC3 wherever you can, but try it and listen to the result to see if it is acceptable. If you can't tell much of a difference, and you are well attuned to how it should sound, then it's very unlikely anyone else will notice.
    So - got lots of room on the disc? Want to have the better sound and the widest compatibility? Use PCM... but remember the upper limits for the bandwidth if burning it yourself.
    Got lots of video? Can't hear the difference between the two audio types really anyway? Reduce the file size of the audio by creating AC3 files, and encode the video to get a better visual quality.

  • Does Encoding AAC Files with VBR on Improve Audio Quality ?

    Does Encoding AAC Files with VBR on Improve Audio Quality ?
    Are there Disadvantages ?
    Bonus Question 1:
    Usually, an 'auto' type encoding tool will screw up the natural flow of the music and miss subtle changes in the energy, volume, etc.. -stuff that is just to subtle for it to catch -Generally I wouldn't trust an 'auto' type setting to pick up this subtle stuff. Yet people say using VBR improves sound quality (and NOT file size). Why and how ?
    Bonus Question 2:
    What is the max bit rate VBR uses ? If I set my AAC encoder to 320 kbps and turned VBR off, wouldn't the sound quality be superior to encoding with VBR on (simply because the kbps are set at 320 the whole time...) ? Sure, the files encoded with VBR off would be larger, but wouldn't the quality be better ?
    Bonus Question 3:
    Lastly, I did a little test and encoded one song with VBR off and one with VBR on. The VBR song was 1.5 MBs bigger - Huh, I thought, is that increased file size the result of improved resolution throughout the whole song, or just one little section (haven't had time to listen to them)?
    Message was edited by: temptemp9

    These are some pretty tough questions. I like VBR encoding in general, as it does allow for more complex passages to take advantage of higher bit rates while less complex passages fall back to a lower bit rate, while keeping within fairly consistent file size parameters. Whether VBR yields better results at different target/average bit rates is another matter, and really requires that you encode and properly test output files before deciding on anything but "recommended" settings.
    At maximum lossy bit rates of 320 kbps, it doesn't make sense to use VBR. If I recall, the LAME MP3 encoder presets actually preclude VBR encoding for the highest quality files, and the same may be true for iTunes AAC.
    I have to admit that to speak with any certainty or confidence about the issues surrounding your various questions, one would really need to encode a bunch of files with iTunes from lossless sources and test them in software such as foobar2000. I could investigate this easily on my own PC, but I don't encode music at 320 kbps AAC, since I have enough disk space to just listen to lossless files. iTunes doesn't display dynamic bit rate changes as foobar2000 does, and I haven't come across any Mac software that does as good a job of allowing for proper testing as foobar2000 for Windows does.
    If you really need definitive answers to these three questions, then I think your best bet would be to do as I've hinted and use iTunes and foobar2000 if you've got access to a Windows computer to do this testing and evaluation for yourself, or sign up for a user account at Hydrogenaudio and post the same message there.

  • Using a video stream (NOT streaming a video clip) in Flash?

    Hello,
    I need to get a RTSP video stream into Flash but I can't
    figure out if it is possible to do. Also, the stream is encoded
    using H.264 for video and AAC for audio. Any suggestions on how to
    make this fly is more than welcome.
    Best regards from a sunny Stockholm - spring is finally here!
    /Cristian

    Just check it with the .flv files. If it works fine for them
    then your code is fine and you have to search for your format or convert it in flv my any means.
    with Regards,
    Shardul Singh Bartwal

  • Bit Rate AAC Issues

    I have been having some issues / confusion : First off I'm not sure if my settings are set right or not. I am importing with the AAC Encoder set to custom.
    Stereo Bit Rate : 192 kbps
    Sample Rate : Auto
    Channels : Auto
    Check Mark in : Use VBR
    Now is this a good setting? I want @ least cd quality in an AAC format.
    Issue: Not just my Imported cd tracks but the tracks purchaced from the itunes store all seem to play @ a Quiet Volume having to crank up both the Machines Volume and iTunes to almost max, plus with the EQ Preamp put to +10dB. It could just be the headphones, they are old.
    Any tips or help on settings would be great. Thanks!

    You're welcome. I use the default import settings of AAC 128 Kbps. This works well for me, but each person is a little bit different. For example you like 192 better.
    I also use Apple Lossless for the live music I download, but when I want to take that music on my iPod I transcode it to 128 AAc.

  • Ac3 and Dts is not working

    Hi I have a Creative SB0090 Audigy Platinum Sound Card but i canT have it to play Ac3 or Dts on digitaloutputs.
    I am using Mediaplayer Classic,Earlier it was ok buth not any more.
    I send the signal from my pc with a coax cabel to my digital input on my receiver a Harman Kardon Avr 5500.
    Should i use a Ac3 filter in mediaplayer ? Must i add it and enable it in the player then or is there a Ac3 dekoder originalt in MP Cl (3 2 )?
    Should i uninnstalled all drivers and reinnstalled it from my original cd , or can i youst go to automatic update ?
    Happy if somone cab help mee :PMessage Edited by Ulven on 08-3-2005 07:02 AM

    FI think you have to pay now for the decoder when using digital output but not sure what soundcards are limited.... otherwise try this drivers and see this help but i dont know if they will work...
    http: //forums.creative.com/t5/Sound-Blaster/PAX-PCI-XFI-ALL-OS-Driver-V4-5/td-p/574643

Maybe you are looking for