Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to convert Flac audio file to AAC file using command line.

So I wrote this

    ffmpeg -i input.flac temp.wav
    faac -q 120 -o output.m4a temp.wav

It's working fine. Now I want to do the same using fifo, so I'm writing this

   mkfifo temp.wav
   ffmpeg -i input.flac temp.wav  &   faac -q 120 -o output.m4a temp.wav

And it's freezing.

So could you tall me what I'm doing wrong.

Thanks a lot, and sorry for my English.

share|improve this question
1  
Why can't you simply pipe them: ffmpeg -i input.flac -f wav pipe: | faac -q 120 -o output.m4a - –  adamax Dec 28 '10 at 14:48
    
Thanks, it's work.But could you tell me what I was doing wrong, and what is the syntax of making such pipe?. Thanks a lot. (I'm just a newbie in this) :) –  Ashot Martirosyan Dec 28 '10 at 15:09
1  
This is a question about running existing applications, not writing new ones, so I'm voting to move to superuser. –  Ben Voigt Dec 28 '10 at 15:52
add comment

migrated from stackoverflow.com Dec 28 '10 at 22:17

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 4 down vote accepted

FFmpeg doesn't support FIFOs, you'll have to use a pipe as suggested by @adamax , follow up on FFmpeg bug #1663 if you want/need FIFO support in FFmpeg.

share|improve this answer
add comment

Use the -y switch. Some versions of ffmpeg hang while testing the existence of the named pipe. The y switch would be a work-around.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.