Thats likely because you used the wrong setting in avidemux. It takes some practise (trial/error) to get used to the correct settings.
Hi
The kvm via YaST is a kernel virtual machine, you need to download from
the link gropiuskalle posted, unzip and run the install as root user. I
provides a plugin for konqueror (3.x).
Ok, so I converted a wmv file to the same video and audio codec you
posted. Then using the following command, it converted ok video and
sound;
ffmpeg -i your_input_filename.avi -vcodec mpeg2video -acodec
mp2 your_output_filename.mpg
Remember to replace the filenames with your own
Here is the output from my conversion;
Input #0, avi, from 'original2.avi':
Duration: 00:00:58.94, start: 0.000000, bitrate: 1401 kb/s
Stream #0.0: Video: mjpeg, yuvj420p, 320x240, 30.00 tb(r)
Stream #0.1: Audio: pcm_u8, 32000 Hz, stereo, s16, 512 kb/s
Output #0, mpeg, to 'original2.mpg':
Stream #0.0: Video: mpeg2video, yuv420p, 320x240, q=2-31, 200 kb/s,
30.00 tb(c)
Stream #0.1: Audio: mp2, 32000 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1764 fps=260 q=8.1 Lsize= 2024kB time=58.77 bitrate=
282.1kbits/s
video:1538kB audio:460kB global headers:0kB muxing overhead 1.298578%
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.1-default
up 1 day 6:32, 3 users, load average: 1.11, 1.37, 1.08
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80
More errors:
kjbt@linux-i50y:~/Desktop> ffmpeg -i MVI_3967.AVI -vcodec mpeg2video -acodec mp2
my_movie.mpg
FFmpeg version SVN-r15594, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --lib
dir=/usr/lib --enable-shared --enable-libmp3lame --enable-libvorbis --enable-lib
theora --enable-libfaad --enable-libfaac --enable-libxvid --enable-swscale --ena
ble-postproc --enable-gpl --enable-vhook --enable-x11grab --enable-libschroeding
er --enable-libdirac --enable-libnut --enable-libgsm --enable-libx264 --enable-l
ibamr-nb --enable-libamr-wb --enable-libdc1394 --enable-nonfree --enable-pthread
s
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 11 2008 11:28:35, gcc: 4.3.1 20080507 (prerelease) [gcc-4_3-branc
h revision 135036]
Input #0, avi, from 'MVI_3967.AVI':
Duration: 00:03:23.90, start: 0.000000, bitrate: 13103 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30.00 tb(r)
Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, s16, 88 kb/s
Output #0, mpeg, to 'my_movie.mpg':
Stream #0.0: Video: mpeg2video, yuv420p, 640x480, q=2-31, 200 kb/s, 30.00 tb
(c)
Stream #0.1: Audio: mp2, 11024 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mp2 @ 0x808c0c0]Sampling rate 11024 is not allowed in mp2
Error while opening codec for output stream #0.1 - maybe incorrect parameters su
ch as bit_rate, rate, width or height
thinking Reverse psychology might work…
Please do not try installing the supereasy context-menu which can be found » here «, for it might give you a converted file without any hassle. We don’t want that to happen, do we?
LOL, I agree
@foresthill
What happens if you just use the original audio codec instead of mp2 eg;
ffmpeg -i MVI_3967.AVI -vcodec mpeg2video -acodec pcm_u8 my_movie.mpg
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.1-default
up 1 day 8:06, 2 users, load average: 1.40, 1.38, 1.36
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80
Malcolm I tried the new command. Video was encoded but still no sound.
I also installed the front-end program successfully but no changes as a result of that either.
For example, selecting DVD (mpeg2enc) and Format MPEG-TS(A&V) works for me with avidemux.
Avidemux crashes whenever I use the settings described by OldCPU combined with any audio setting other than “copy”. The two LPCM audio settings get me static only.
If the setting for Audio is set to “copy” I get no audio at all. :X
Hi
What happens is you try to convert it to another format that works and
then try to convert that to your desired output format?
If you run the following command and have a look at all the formats
available…
ffmpeg -formats
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.1-default
up 1 day 9:55, 2 users, load average: 0.66, 0.68, 0.55
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80
More errors.
kjbt@linux-i50y:~/Desktop> ffmpeg -i MVI_3967.AVI outputfile.wmv
FFmpeg version SVN-r15594, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaad --enable-libfaac --enable-libxvid --enable-swscale --enable-postproc --enable-gpl --enable-vhook --enable-x11grab --enable-libschroedinger --enable-libdirac --enable-libnut --enable-libgsm --enable-libx264 --enable-libamr-nb --enable-libamr-wb --enable-libdc1394 --enable-nonfree --enable-pthreads
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 11 2008 11:28:35, gcc: 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]
Input #0, avi, from 'MVI_3967.AVI':
Duration: 00:03:23.90, start: 0.000000, bitrate: 13103 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30.00 tb(r)
Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, s16, 88 kb/s
Output #0, asf, to 'outputfile.wmv':
Stream #0.0: Video: msmpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 30.00 tb(c)
Stream #0.1: Audio: libmp3lame, 11024 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
kjbt@linux-i50y:~/Desktop>
killself
I’ve only seen this happen when the video you are using to start with is a corrupted format.
Have you tried other videos?
I have two AVI clips I want to put on a DVD for use in court. The same thing happens with each clip when I try to convert them. I found another copy of the clips on other media and they also fail.
I found two different Windows programs that will convert the clips fine, with audio intact. But these are both crippled trial versions. So I really think the clips are uncorrupted.
Hi
I you run the original clip in mplayer from the CLI, they work ok? If
so,can you paste the output especially between the === characters
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.1-default
up 6:03, 1 user, load average: 0.45, 0.16, 0.16
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80
Here ya go:
kjbt@linux-i50y:~/Desktop> mplayer MVI_3966.AVI
MPlayer dev-SVN-r27637 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (Family: 15, Model: 4, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 MVI_3966.AVI.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 13315.4 kbps (1625.4 kbyte/s)
Clip info:
Digitization Time: FRI JUN 20 09:07:05 2008
Software: CanonMVI02
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 11024 Hz, 1 ch, u8, 88.2 kbit/100.00% (ratio: 11024->11024)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 11024Hz 1ch u8 (1 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x88ee100]BICUBIC scaler, from yuv422p to yuv420p using MMX2
[swscaler @ 0x88ee100]using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x88ee100]using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x88ee100]using 1-tap MMX "scaler" for vertical scaling (YV12 like)
[swscaler @ 0x88ee100]640x480 -> 640x480
VO: [xv] 640x480 => 640x480 Planar YV12
No bind found for key 'JOY_LEFT'.-MOUSE_BTN0
A: 0.8 V: 0.8 A-V: 0.003 ct: 0.031 24/ 24 11% 10% 1.6% 0 0
Badly interleaved AVI file detected - switching to -ni mode...
A: 18.7 V: 18.7 A-V: 0.033 ct: 0.567 562/562 12% 11% 1.0% 0 0
Exiting... (End of file)
kjbt@linux-i50y:~/Desktop> mplayer MVI_3966.AVI
MPlayer dev-SVN-r27637 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (Family: 15, Model: 4, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 MVI_3966.AVI.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 13315.4 kbps (1625.4 kbyte/s)
Clip info:
Digitization Time: FRI JUN 20 09:07:05 2008
Software: CanonMVI02
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 11024 Hz, 1 ch, u8, 88.2 kbit/100.00% (ratio: 11024->11024)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 11024Hz 1ch u8 (1 bytes per sample)
Starting playback...
Hi
Seems you may not be the only one Google on “ffmpeg”+“CanonMVI02”
Can you try converting it to xvid and mp3?
Can you take a short video with the camera a car driving by or
something with audio and post it somewhere for me to download?
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 1:58, 3 users, load average: 0.42, 0.28, 0.18
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80
This Windows program is what I finally ended up using, but it worked flawlessly and it’s free too:
NOTE: Requires Microsoft’s .NET framework v2 and at least v2.57 of Avisynth
Hi
Glad you got it sorted, so do you know which codecs it’s using?
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 16:48, 2 users, load average: 0.00, 0.15, 0.20
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80
Resolution is 720 x 480
Frame Rate: 29.970 fps
Video Codec: MPEG-2
Audio Codec: AC3
Aspect Ratio: 4/3
HTH, and thanks to everyone, especially Malcolm and OldCPU for all the help on this.
Sorry to wake an old thread, but there is a very simple solution here. I do this all the time with ffmpeg. In fact, that’s what I was doing this morning when I stumbled across this thread.
The key to your last problem is in the line
[mp2 @ 0x808c0b0]Sampling rate 11024 is not allowed in mp2
ffmpeg uses the mp2 sound codec by default, and also assumes you want to use the same sampling rate and bitrate as the source video. However, the source has a sampling rate of 11024 which is not allowed in mp2 as stated. Here’s the fix:
ffmpeg -i source.avi -sameq -vcodec mpeg2video -ar 22050 dest.mpg
That sets the audo sampling rate to 22050 which is allowed in mp2. Also, the -sameq option forces the video quality to be roughly the same in the destination as it is in the source.
Hope you haven’t wasted your money yet.
I missed the part about your wanting to put the video on DVD. It’s just as easy to create DVD-compatible video with ffmpeg. Try
ffmpeg -i source.avi -target ntsc-dvd -aspect 4:3 -ab 256k dest.vob
if you want to be able to do the conversions in Linux in the future. Hope that helps anyone who doesn’t have access to Windows (like me).