Re: ogg to mpeg
Carl Karsten <[email protected]>
| Newsgroups | gmane.comp.video.transcode.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Guy wrote: > On 6/10/08, Carl Karsten <[email protected]> wrote: >> I am trying to convert some of the >> http://www.thesourceshow.org/node/11 >> files into something cinelerra can edit (mpeg or dv) > For best quality you'd be better off converting to an uncompressed > format, rather than recompressing them. cinelerra will only uncompress > them again to edit them - to YUV I believe, so that would be the best > target. You got lotsa disk space, yes? :) yup. uncompressed, or lossless? I am thinking .dv (what dvgrab creates) is what you are suggesting. > >> [export_ffmpeg.so] Reading configuration from './ffmpeg.cfg' >> [export_ffmpeg.so] Reading config section 'mpeg4' from './ffmpeg.cfg' > What's in ffmpeg.cfg? carl@dell29:~/temp/cintut$ cat ffmpeg.cfg [h264] vqblur = 0.0 vstrict = -1 [mjpeg] [mpeg4] > >> -rw-r--r-- 1 carl carl 2056 2008-06-10 14:52 episode001_lg.mpeg >> -rw-r--r-- 1 carl carl 301429605 2006-12-23 11:03 episode001_lg.ogg > >> [transcode] encoded 0 frames (0 dropped, 0 cloned), clip length 0.00 s > I would guess this is your main clue > > Can you do some tests to narrow it down to whether it is all ogg > theora decoding, ogg theora decoding of those specific videos, or mpeg > encoding that is not working for you? e.g. > - Can you play the videos successfully with some other player? plays fine: carl@dell29:~/temp/cintut$ mplayer -identify episode001_lg.ogg MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9) 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 episode001_lg.ogg. ID_VIDEO_ID=0 [Ogg] stream 0: video (Theora v3.2.0), -vid 0 ID_AUDIO_ID=0 [Ogg] stream 1: audio (Vorbis), -aid 0 Ogg file format detected. VIDEO: [theo] 720x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s) ID_FILENAME=episode001_lg.ogg ID_DEMUXER=ogg ID_VIDEO_FORMAT=theo ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=720 ID_VIDEO_HEIGHT=480 ID_VIDEO_FPS=29.970 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=vrbs ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=44100 ID_AUDIO_NCH=2 ID_LENGTH=232257.13 xscreensaver_disable: Could not find XScreenSaver window. GNOME screensaver disabled ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [theora @ 0x8939870]Missing extradata! Could not open codec. VDecoder init failed :( Opening video decoder: [theora] Theora/VP3 VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.36:1 - prescaling to correct movie aspect. ID_VIDEO_ASPECT=1.3636 VO: [xv] 720x480 => 720x528 Planar YV12 Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3)) ========================================================================== ID_VIDEO_CODEC=theora ========================================================================== Forced audio codec: mad Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) ID_AUDIO_BITRATE=128000 ID_AUDIO_RATE=44100 ID_AUDIO_NCH=2 Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder) ========================================================================== AO: [pulse] Failed to connect to server: Invalid argument AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) ID_AUDIO_CODEC=ffvorbis Starting playback... A: 26.7 V: 26.7 A-V: 0.001 ct: -0.011 800/800 14% 4% 1.5% 0 0 > - If so, can you transcode them to other fomats, nope -y raw, same thing. > and can you transcode > other ogg theora files to mpeg? The only ones I have are the 4 I wget from that page. all 4 behave the same. > - Can you encode other video sources to mpeg successfully with your > ffmpeg.cfg settings? yes carl@dell29:~/temp/cintut$ transcode -i /mnt/nfs/cw1b/carl/html/temp/Jun08/a/chirick2.mov -o test.mpeg -y ffmpeg -F mpeg4 --encode_fields p transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms [transcode] auto-probing source /mnt/nfs/cw1b/carl/html/temp/Jun08/a/chirick2.mov (ok) [transcode] V: import format | unknown QuickTime (V=mov|A=mov) [transcode] V: import frame | 720x480 1.50:1 [transcode] V: bits/pixel | 0.174 [transcode] V: decoding fps,frc | 29.970,4 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x1 PCM [48000,16,2] [transcode] A: export format | 0x55 MPEG layer-3 [48000,16,2] 128 kbps [transcode] V: encoding fps,frc | 29.970,4 [transcode] A: bytes per frame | 6408 (6406.400000) [transcode] A: adjustment | -1600@1000 [transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C) tc_memcpy: using sse for memcpy [transcode] V: video buffer | 10 @ 720x480 [import_mov.so] v0.1.2 (2002-05-16) (video) * | (audio) * [export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc1d.51.38.0 | (audio) MPEG/AC3/PCM [import_mov.so] codec=mp4a, rate=48000 Hz, bits=16, channels=2, samples=334036992 [import_mov.so] VIDEO: codec=mp4v, fps=29.970, width=720, height=480, frames=208566 [export_ffmpeg.so] Using FFMPEG codec 'mpeg4' (FourCC 'DIVX', MPEG4 compliant video). [export_ffmpeg.so]: INFO: No profile selected [export_ffmpeg.so] Reading configuration from './ffmpeg.cfg' [export_ffmpeg.so] Reading config section 'mpeg4' from './ffmpeg.cfg' [export_ffmpeg.so]: INFO: Starting 1 thread(s) [export_ffmpeg.so]: INFO: Set display aspect ratio to input Audio: using new version Audio: using lame-3.97 encoding frames [000000-000455], 77.86 fps, EMT: 0:00:15, ( 0| 0| 9) > > More strategic ideas: > Do you have the most recent stable version of transcode? probably not - it's whatever I had on my box. > Can you decode the ogg into something uncompressed using another tool, > like the example decoders supplied by xiph.org, then use that? looks like it: carl@dell29:~/temp/cintut$ mencoder episode001_lg.ogg -o episode001_lg.dv -oac lavc -ovc libdv MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. success: format: 0 data: 0x0 - 0x11f77365 [Ogg] stream 0: video (Theora v3.2.0), -vid 0 [Ogg] stream 1: audio (Vorbis), -aid 0 Ogg file format detected. VIDEO: [theo] 720x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:18 fourcc:0x6F656874 size:720x480 fps:29.97 ftime:=0.0334 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [theora @ 0x8814710]Missing extradata! Could not open codec. VDecoder init failed :( Opening video decoder: [theora] Theora/VP3 VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.36:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 5 -> 4 [swscaler @ 0x880f730]SwScaler: BICUBIC scaler, from yuv420p to yuyv422 using MMX2 [swscaler @ 0x880f730]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling [swscaler @ 0x880f730]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling [swscaler @ 0x880f730]SwScaler: using n-tap MMX scaler for vertical scaling (BGR) [swscaler @ 0x880f730]SwScaler: 720x480 -> 720x480 Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3)) ========================================================================== Skipping frame! Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Skipping frame! Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.003 [0:0] Skipping frame! Pos: 0.0s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.005 [0:0] Skipping frame! Pos: 0.0s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.007 [0:0] Skipping frame! Pos: 0.0s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.009 [0:0] Skipping frame! Pos: 0.0s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.010 [0:0] Skipping frame! Writing header...7f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.012 [0:0] ODML: vprp aspect is 16384:12014. Writing header... ODML: vprp aspect is 16384:12014. Pos: 0.0s 8f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.015 [0:0] 6 duplicate frame(s)! Pos: 0.3s 9f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.018 [0:0] 1 duplicate frame(s)! Pos: 1.2s 36f ( 0%) 20.99fps Trem: 0min 0mb A-V:0.067 [23176:223] Skipping frame! Pos: 8.1s 245f ( 0%) 18.15fps Trem: 80min 9797mb A-V:0.033 [27945:223] quick tests shows it plays. Carl K