VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. I am converting some youtube videos to wav or mp3 to burn to audio cd's and have found a strange problem. It seems like some files will only encode and burn correctly if I use a certain encoder ( I have ffmpeg , winx flv to mp3 , avidemux , format factory , and vlc player - one of these usually works ). The files I am converting use acc audio with a sample rate of 44100 and a bitrate of 131 kb/s according to ffmpeg. When I use ffmpeg I use the command lines :

    Code:
    ffmpeg -i inputFile.flv -ac 2 -vn outputFile.wav  //this command works for some files
    
    ffmpeg -i inputFile.flv  -acodec pcm_s16le -ac 2 -ab 128 -vn -y outputFile.wav  //this command works for other files
    Is there one set of ffmpeg commands that can convert all the audio for burning to cd ( I'd like to just use one encoder since I can't tell which one works properly until I burn the encoded files to a cd-rw disk to see if it plays properly )? Is there a way to look at the video's specifications to tell which command to use to encode it? Thanks for any information...
    Quote Quote  
  2. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    How about opening WinFF.....a program where you can actually SEE and SELECT things?
    Quote Quote  
  3. I actually have Winff as well and the front-end generates this ffmpeg command for .wav for CD files:

    Code:
    "C:\Program Files\WinFF\ffmpeg.exe" -y -i input.flv" -vn -ar 44100 "output.wav"
    but I haven't had any luck with this command either. I've tried other GUI front-ends for ffmpeg but can't seem to find a command that works for every file. I'm looking for a way to figure out which command to use for which file ( the audio stream specifications of all the files seem identical , but the video aspects differ from file to file - I'm not sure if this has anything to do with the problem ). Anyone know of any books on ffmpeg? Thanks for any information....
    Quote Quote  
  4. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    If it doesn't work in WinFF then you will need to find another solution since FLV files are bastards from the start. Option 2 for me is SUPER ....but nowadays SUPER is so full of malware/spyware garbage it is no longer a viable option. I use an antique version of SUPER and will never upgrade.
    Quote Quote  
  5. Member
    Join Date
    Mar 2011
    Location
    Nova Scotia, Canada
    Search Comp PM
    In windows I'd probably try opening the video file in audacity, which will open just the audio stream from it. Very convenient. Then your choices will be much broader. You could probably use audacity itself.

    I've done just this a bunch of times.
    Quote Quote  
  6. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    You could try demuxing the audio first (with FLVExtract) and then open the raw audio file in an audio editor (Audacity, etc).

    Scott
    Quote Quote  
  7. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by vhman View Post
    Is there one set of ffmpeg commands that can convert all the audio for burning to cd...
    If this command doesn't work then you probably have corrupt flv files or your version of FFmpeg needs to be updated:-
    Code:
    ffmpeg -i inputFile.flv -acodec pcm_s16le -ar 44100 -ac 2 outputFile.wav
    Quote Quote  
  8. Member ozok's Avatar
    Join Date
    Oct 2011
    Location
    Turkey
    Search Comp PM
    You can try TAudioConverter. Also ffmpeg's output will tell you what is wrong, please post it here.
    Quote Quote  
  9. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by ozok View Post
    ffmpeg's output will tell you what is wrong, please post it here.
    What build of ffmpeg do you have? I use the builds from Zeranoe, and different than the builds from the deceased arrozcru Web site, they say absolutely nothing when an error happens.
    Quote Quote  
  10. Member ozok's Avatar
    Join Date
    Oct 2011
    Location
    Turkey
    Search Comp PM
    I use ffmpeg builds from http://ffmpeg.zeranoe.com/builds/ too. Did you try TAC? Maybe logs there can help you spot what's wrong.
    Quote Quote  
  11. bat999's code should work in just about any version of ffmpeg that's ever been written.

    Or create a winff preset like this:
    -acodec pcm_s16le -ar 44100 -ac 2

    and make sure to put "wav" in the file extension box.
    Quote Quote  
  12. Thanks for the replies! I used this command to code a file:

    Code:
    ffmpeg -i inputFile.flv -acodec pcm_s16le -ar 44100 -ac 2 outputFile.wav
    and the CD was not recognized by my CD player. If I use the command:

    Code:
     ffmpeg -i inputFile.flv  -acodec pcm_s16le -ac 2 -ab 128 -vn -y outputFile.wav
    the CD will play but a static type noise occurs during high frequency tones. If I encode the files with Format
    Factory the CD will play fine , but will stop half-way through the total duration. I can't figure out why I get different
    results from different encoders ( I assume the algorithm to encode the video would be the same ).

    What build of ffmpeg do you have? I use the builds from Zeranoe, and different than the builds from the
    deceased arrozcru Web site, they say absolutely nothing when an error happens.
    I am using ffmpeg version N-49044-g89afa63 which I recently got from http://ffmpeg.zeranoe.com/builds/ . I'll give
    some of the other suggestions a try when I get a chance ( Audacity , FLVextract , etc. ). The strange thing is
    I can encode a .flv file to MPEG-2 for DVD very reliably with ffmpeg , but encoding just the audio stream seems
    very tricky .....
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!