FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using ffmpeg to extract audo from VOB - SOLVED

    I'm using ffmpeg to extract the audio from a DVD. I was able to use the following command on almost all of the VOB files on the disk:

    ffmpeg -i mount_point/video_ts/vts_05_3.vob -f mp3 file_3.mp3

    It worked for all but one of the VOB files. For one of them I'm getting the following errors. Can anybody tell me what's wrong?

    Code:
    $ ffmpeg -i mount_point/video_ts/vts_05_3.vob -f mp3 file_3.mp3
    FFmpeg version SVN-r7813, Copyright (c) 2000-2006 Fabrice Bellard, et al.
      configuration:  --prefix=/usr --incdir=/usr/include/ffmpeg --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --arch=x86_32 --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --enable-mp3lame --enable-libogg --enable-libtheora --enable-vorbis --enable-faad --enable-faac --enable-libgsm --enable-xvid --enable-x264 --enable-a52 --enable-a52bin --enable-dts --enable-pp --disable-static --enable-shared --enable-gpl --disable-debug --disable-opts --disable-strip
      libavutil version: 49.3.0
      libavcodec version: 51.30.0
      libavformat version: 51.8.0
      built on Feb  4 2007 08:21:24, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)
    Input #0, mpeg, from 'mount_point/video_ts/vts_05_3.vob':
      Duration: 00:30:48.7, start: 3561.932300, bitrate: 4645 kb/s
      Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 9570 kb/s, 29.97 fps(r)
      Stream #0.1[0x81]: Audio: ac3, 48000 Hz, stereo, 128 kb/s
      Stream #0.2[0x82]: Audio: ac3, 48000 Hz, stereo, 128 kb/s
      Stream #0.3[0x80]: Audio: ac3, 48000 Hz, 5:1, 224 kb/s
      Stream #0.4[0x20]: Subtitle: dvdsub
    File 'file_3.mp3' already exists. Overwrite ? [y/N] y
    Output #0, mp3, to 'file_3.mp3':
      Stream #0.0: Audio: mp3, 48000 Hz, 5:1, 64 kb/s
    Stream mapping:
      Stream #0.1 -> #0.0
    Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    Last edited by offcenter77; 5th March 2007 at 07:30 AM. Reason: Solved.

  2. #2
    Join Date
    Feb 2007
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anybody? Even if it's just a pointer in the right direction...

  3. #3
    Join Date
    Aug 2005
    Posts
    3,172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sometimes files are just screwed up. ffmpeg is pretty handy at fixing them. Before you do your stuff(above) see if this will fix the file:

    ffmpeg -i input.file -sameq output.file

    Good Luck
    Lazlow

  4. #4
    Join Date
    Feb 2007
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope. That didn't work either. Got the same error.

    I was able to get it to extract it as a wav file, but when I play it, it sounds like its on high speed (3x or 4x or something). I tried to reduce the speed in Audacity, but after several attempts, I can't get it to the right speed so it sounds normal.

  5. #5
    Join Date
    Feb 2007
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was finally able to do it with avidemux. Apparently, this particular VOB File had multiple mpegs and audio tracks mixed together. Avidemux was able to separate the two, and I could simply pick the audio track that I wanted. I used the twolame encoder and saved the file as an mp3.

    Thanks!

  6. #6
    Join Date
    Jan 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using ffmpeg to extract audo from VOB

    I realize this post is old, but wanted to update in case anyone needed an answer to it.
    FFMPEG will attempt to grab the first index from the VOB file...I use index loosely since I can't remember the proper term.

    So If you want to extract a Audio stream from this use the following:

    ffmpeg -i mount_point/video_ts/vts_05_3.vob -map 0:3 -f mp3 file_3.mp3

    This will grab "Stream #0.3[0x80]: Audio: ac3, 48000 Hz, 5:1, 224 kb/s"

    With the original command your using your trying to grab video and put it into an audio format.

Similar Threads

  1. audo not working after updates
    By thesun in forum Using Fedora
    Replies: 4
    Last Post: 28th March 2008, 03:16 PM
  2. Pulse audo no sound - fc8 test 2
    By stamp in forum Using Fedora
    Replies: 1
    Last Post: 25th September 2007, 10:57 PM
  3. no need to extract the rpm
    By munna_dude in forum Servers & Networking
    Replies: 3
    Last Post: 19th September 2007, 11:28 AM
  4. mplayer maybe? audo/video issue
    By stephanie.steve in forum Using Fedora
    Replies: 1
    Last Post: 27th April 2007, 06:55 AM
  5. digital audo extraction for CD playback
    By noliver1 in forum Using Fedora
    Replies: 11
    Last Post: 11th September 2004, 08:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •