I've been experimenting with the (S)VCD ffmpeg presets because it's so much faster than the mpeg2enc encoder. Unfortunately, I haven't had a lot of success producing a VCD or SVCD that plays well on my DVD player. I get spots of smearing and green blockiness.
I searched the forums here and came across a post in which Major recommends running an AVI file through DivX doctor first and then using the .mov file in ffmpegX. I tried that, but the conversion stops with the audio conversion with the following error:
"Codec type mismatch for mapping #0.1 -> #0.0"
Is there something I need to enable/disable or change in ffmpegX to allow the conversion to complete? I didn't enable "Decompress audio" in DivX Doctor. Below are the stats of the Xvid file before and after running it through DivX Doctor.
Xvid AVI: VIDEO: mpeg4, 576x320, 23.98 fps. AUDIO: mp3, 48000 Hz, stereo, 109 kb/s
After DivX Doctor: VIDEO: 3IV2, 576x320, 23.98 fps. AUDIO: mp2, 48000 Hz, stereo
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
That error means you should enable the "Invert mapping" option in the Audio tab.
However, doctoring the DivX file first was mostly meant to solve some decoding issues with older versions of the DivX codecs.
In your case, the problem may be an encoding problem, ie your player not supporting the slightly non-standard SVCD streams generated by ffmpeg. -
Originally Posted by major
Here's the complete log output:
Input #0, yuv4mpegpipe, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 352x240, 23.98 fps
Output #0, rawvideo, to '/Volumes/Firewire/film.vcdffmpeg.ff.mpv':
Stream #0.0: Video: mpeg1video (hq), 352x240, 23.98 fps, q=2-20, 1150 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x331210]rc buffer underflow
bench: utime=230.280s
video:50520kB audio:0kB global headers:0kB muxing overhead 0.000000%
Input #0, mov,mp4,m4a,3gp, from '/Volumes/Firewire/film.mov':
Duration: 00:06:00.5, bitrate: 1638 kb/s
Stream #0.0: Audio: mp2, 48000 Hz, stereo
Stream #0.1: Video: 3IV2, 576x320, 23.98 fps
Codec type mismatch for mapping #0.1 -> #0.0 -
I think I had this problem a while back and it was stated that 'invert mapping' doesn't work with the ffmpeg codec when 'decode with QT' is enabled. I've found that sometimes DivX Doctor II does invert the mapping. Just look at the Get Movie Properties window in QT, if the sound track is listed first, it's inverted. I've also found that usually I can't output at 23.98fps unless 'decode with QT' is enabled. I can choose 23.98 but it outputs 29.97. And then there's the bug that when I add manual letterboxing to a 352x480 widescreen 16:9 movie the aspect goes back to 4:3, even though 16:9 is chosen
Also, using Two-Pass encoding solved many of the problems I was having with the ffmpeg codec. I always choose 'High Quaility', 'Two-pass encoding', and 'Trellis quantization'. -
Originally Posted by TugBoat
I tried using the SVCD ffmpeg preset on the xvid file. It played in my DVD player without smearing or blockiness. However, the audio does stutter at times (when there is more movement on-screen). I don't understand why my DVD player would be more tolerant of a ffmpeg SVCD than a ffmpeg VCD. Oh well, I'm going to experiment with that preset a bit more to see if it's acceptable. -
Originally Posted by Mildew
You might have one of those players that's highly susceptible to errors in the video stream. I've found that you're going to have some errors in the video stream, using ffmpeg, no matter what. Two-pass encoding cuts down on the errors but you still have some. One of my Players, a Sylvania, will lose audio sync when it runs across one of these errors, the others will not. The other Players will stutter the audio, if necessary, to keep the sync. I've also found that the Sylvania will sometimes breakup the audio on high motion/sound scenes where the other Players won't. Of course, commercial DVDs play fine on the Sylvania. It also plays DVDs authored with expensive/slow high bitrate encoders fine too. Toss it some low bitrate mpg2s with a few errors in the stream and it chokes
Similar Threads
-
Need to supply "File Type" and "Mime Type" info for MKV file
By oneking in forum Newbie / General discussionsReplies: 9Last Post: 9th Feb 2012, 03:31 -
Set/Fix QuickTime "atoms"/"flags"?
By rumplestiltskin in forum Newbie / General discussionsReplies: 3Last Post: 22nd Sep 2008, 13:07 -
Codec type mismatch for converting MP4 to FLV
By swashbuckler75 in forum ffmpegX general discussionReplies: 2Last Post: 24th Apr 2008, 12:28 -
How to fix "twitchy' or "jerky" .asf files.
By bbanderic in forum Video ConversionReplies: 2Last Post: 21st Sep 2007, 17:48 -
"Cannot append segment...", "Mismatch detected..."
By Ygramul in forum Newbie / General discussionsReplies: 2Last Post: 14th Jun 2007, 11:32