You are not logged in.

#1 2007-10-14 18:15:04

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Problem w/ ffmpeg

I am trying to make a svcd using ffmpeg from a .VOB.

here is the command I am using

ffmpeg -i combined.VOB -target ntsc-svcd test.avi

Here is the error

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-pp --enable-libfaac --enable-libfaad --enable-liba52 --enable-libxvid --enable-libx264 --enable-libtheora --disable-libamr-nb --enable-pp --enable-shared --enable-pthreads --enable-x11grab --enable-swscaler
  libavutil version: 49.5.0
  libavcodec version: 51.45.0
  libavformat version: 51.14.0
  built on Oct  9 2007 10:57:22, gcc: 4.2.1
Input #0, mpeg, from 'combined.VOB':
  Duration: 01:57:45.9, start: 0.280000, bitrate: 8098 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8400 kb/s, 25.00 fps(r)
  Stream #0.1[0x20]: Subtitle: dvdsub
  Stream #0.2[0x80]: Audio: liba52, 48000 Hz, 5:1, 448 kb/s
Unknown target: scvd
[soma@somairot VIDEO_TS]$ ffmpeg -i combined.VOB -target ntsc-svcd One_Night_in_Paris.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-pp --enable-libfaac --enable-libfaad --enable-liba52 --enable-libxvid --enable-libx264 --enable-libtheora --disable-libamr-nb --enable-pp --enable-shared --enable-pthreads --enable-x11grab --enable-swscaler
  libavutil version: 49.5.0
  libavcodec version: 51.45.0
  libavformat version: 51.14.0
  built on Oct  9 2007 10:57:22, gcc: 4.2.1
Input #0, mpeg, from 'combined.VOB':
  Duration: 01:57:45.9, start: 0.280000, bitrate: 8098 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8400 kb/s, 25.00 fps(r)
  Stream #0.1[0x20]: Subtitle: dvdsub
  Stream #0.2[0x80]: Audio: liba52, 48000 Hz, 5:1, 448 kb/s
Resampling with input channels greater than 2 unsupported.Can't resample.  Aborting.
Aborted

so specifically "Resampling with input channels greater than 2 unsupported.Can't resample"

Is there an option I am missing? will mencoder work instead?

I have been googling for a soultion, but have found none yet, so I thought I might has see if anyone here may help;)


If I rip and convert the audio first and then just convert the vidoe w/o the audio, how do I combine the two?

Last edited by somairotevoli (2007-10-14 19:34:31)

Offline

#2 2007-10-14 18:40:43

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Problem w/ ffmpeg

Do this:

ffmpeg -i combined.VOB -ac 2 -target ntsc-svcd test.avi

It will bring in only the stereo channels.

Offline

#3 2007-10-14 19:09:58

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Problem w/ ffmpeg

^Thanks

Another problem  now, how to I get the audio/video to sync?

Last edited by somairotevoli (2007-10-14 19:34:57)

Offline

#4 2007-10-14 19:46:06

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Problem w/ ffmpeg

The short answer is that FFMPEG (as well as Mencoder) is having problems with VOB. There seems to be a strange magic trick though. VOB is nothing more than a MPEG2 file. Try to rename the file and see if that works. If not, dump the contents into a .mpg file:

ffmpeg -i <your_movie>.vob -vcodec copy -acodec copy <new_movie>.mpg

It should work after that.

Offline

#5 2007-10-14 20:03:30

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Problem w/ ffmpeg

[strike]Thanks again, will try and report bk.[/strike]

K i followed your advice, but now after the mpeg is created there is no audio.

ffmpeg -i combined.vob -vcodec copy -acodec copy test.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-pp --enable-libfaac --enable-libfaad --enable-liba52 --enable-libxvid --enable-libx264 --enable-libtheora --disable-libamr-nb --enable-pp --enable-shared --enable-pthreads --enable-x11grab --enable-swscaler
  libavutil version: 49.5.0
  libavcodec version: 51.45.0
  libavformat version: 51.14.0
  built on Oct  9 2007 10:57:22, gcc: 4.2.1
Input #0, mpeg, from 'combined.vob':
  Duration: 01:57:45.9, start: 0.280000, bitrate: 8098 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8400 kb/s, 25.00 fps(r)
  Stream #0.1[0x20]: Subtitle: dvdsub
  Stream #0.2[0x80]: Audio: liba52, 48000 Hz, 5:1, 448 kb/s
Output #0, mpeg, to 'test.mpg':
  Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 8400 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.2 -> #0.1
Press [q] to stop encoding
frame=176667 fps=147 q=3.8 Lsize= 6890224kB time=7066.7 bitrate=7987.5kbits/s
video:6474227kB audio:386421kB global headers:0kB muxing overhead 0.431091%
mplayer test.mpg
MPlayer 1.0rc1-4.2.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) processor (Family: 6, Model: 4, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
98 audio & 216 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing test.mpg.
MPEG-PS file format detected.

Too many video packets in the buffer: (4096 in 8356338 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
MPEG: No audio stream found -> no sound.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  2000.0 kbps (250.0 kbyte/s)
Xv: could not grab port 81
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12
No bind found for key 'c'.
V:  12.8 307/307 38% 10%  0.0% 0 0

Last edited by somairotevoli (2007-10-14 20:33:13)

Offline

#6 2007-10-14 20:39:16

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Problem w/ ffmpeg

Hmmm... FFMPEG saw the audio stream. See what happens when you use it to play back:

ffplay test.mpg

Offline

#7 2007-10-14 20:50:35

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Problem w/ ffmpeg

Strange that works.........I am going to try to encode to the svcd now an see....

Once again, thanks for the help and the quick responce.

Offline

#8 2007-10-14 20:57:41

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Problem w/ ffmpeg

hmm, still having audio syncing problems.

Offline

#9 2007-10-15 15:40:09

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Problem w/ ffmpeg

I looked around for a while this weekend, and it seems that certain VOBs not only will be out of sync from transcoding, but can be predicted in advance. Unfortunately FFMPEG doesn't know how to do prediction. I read somewhere that either AviSynth or VirtualDub can do it, but I'm not sure which.

You can correct sync issues with FFMPEG, but it can be a major pain. If the audio is simply offset, you can adjust the start time of the audio. That will take some experimenting. Another option is the -async flag which in theory will stretch or shrink the audio to fit the video. I've never used it though, so I can't help there.

Offline

Board footer

Powered by FluxBB