VideoHelp Forum




Results 1 to 7 of 7
  1. Member
    Join Date
    Sep 2010
    Location
    USA
    Search Comp PM
    Hi. I’m trying to convert .rm files to mpeg-4.

    This is the log I get:

    Encoding started on Sun Sep 26 14:12:16 PDT 2010
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    Input #0, rm, from '/Users/richardkane/Desktop/Discourses/Session 18 - 18-Sep-2004 Beloved QandA Part-1.rm':
    Duration: 03:20:03.4, start: 0.000000, bitrate: 104 kb/s
    Stream #0.0: Audio: cook, 22050 Hz, mono, 16 kb/s
    Stream #0.1, 12.00 fps(r): Video: RV40 / 0x30345652, 320x240, 83 kb/s
    Codec type mismatch for mapping #0.0 -> #0.0

    If I change the Target format from MOV to MP4 I think I get the same log:

    Encoding started on Sun Sep 26 14:14:44 PDT 2010
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    Input #0, rm, from '/Users/richardkane/Desktop/Discourses/Session 18 - 18-Sep-2004 Beloved QandA Part-1.rm':
    Duration: 03:20:03.4, start: 0.000000, bitrate: 104 kb/s
    Stream #0.0: Audio: cook, 22050 Hz, mono, 16 kb/s
    Stream #0.1, 12.00 fps(r): Video: RV40 / 0x30345652, 320x240, 83 kb/s
    Codec type mismatch for mapping #0.0 -> #0.0

    If I check Invert mapping I get this:

    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    Sun Sep 26 14:15:13 PDT 2010
    Input #0, rm, from '/Users/richardkane/Desktop/Discourses/Session 18 - 18-Sep-2004 Beloved QandA Part-1.rm':
    Duration: 03:20:03.4, start: 0.000000, bitrate: 104 kb/s
    Stream #0.0: Audio: cook, 22050 Hz, mono, 16 kb/s
    Stream #0.1, 12.00 fps(r): Video: RV40 / 0x30345652, 320x240, 83 kb/s
    Output #0, mp4, to '/Users/richardkane/Desktop/Discourses/Session 18 - 18-Sep-2004 Beloved QandA Part-1.rm.ff.mp4.mov.mp4':
    Stream #0.0, 12.00 fps(c): Video: mpeg4, yuv420p, 320x176, q=2-9, 151 kb/s
    Stream #0.1: Audio: aac, 48000 Hz, stereo, 96 kb/s
    Stream mapping:
    Stream #0.1 -> #0.0 [sync #0.0]
    Stream #0.0 -> #0.1 [sync #0.1]
    Unsupported codec (id=72) for input stream #0.1

    Any ideas? (By the way, if I want to end up with an AppleTV compatible file would I use MOV or MP4?)

    Thanks very much.
    Richard

  2. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    ffmpegX has three encoding engines, ffmpeg, mencoder and mpeg2enc. You can see those in the preset list, mentioned behind the target format. Forget about mpeg2enc for now, as that is only used for encoding to MPEG-1 and MPEG-2.

    1/ ffmpeg will not encode from .rm sources, as your log #3 shows: unsupported codec.
    2/ mencoder will encode from .rm sources, if you also installed the (correct) reallib folder.
    3/ the mencoder version in ffmpegX will not encode to iPod/iPhone/AppleTV format.
    4/ the iPod/iPhone presets all use the ffmpeg engine.
    5/ the h.264 mencoder preset will set the MP4 avc level too high (level 5.1) for AppleTV decoding (level 3.1 max). (The same applies for PlayStation 3 playback.) I consider this a mencoder bug, as the level is always 5.1, and almost always needlessly high.
    6/ encoding to h.264 MP4 with x264 ffmpeg allows setting the avc level to any (valid) custom value.
    Do you see the dilemma?

    A solution would be to encode twice, to create an intermediate format that can be handled by the other engine.
    Another solution would be to change the avc level afterwards, but you would need specialty software to do that. I don't think there is Mac software yet to easily make this modification.

    So, encode your .rm first with e.g. XviD mencoder preset (fast with decent quality). Use a very high bitrate to limit generation quality loss. It will be a big file, but you won't keep it, so that doesn't really matter.
    Next, encode the intermediate file with the iPod h.264 640w preset. Modify the video size if you want, but keep within AppleTV specs. Re-optimize the bitrate if you changed the video size, as bitrate depends on frame size.

    Originally Posted by Apple TV specs
    H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats

  3. Member
    Join Date
    Sep 2010
    Location
    USA
    Search Comp PM
    Thanks, Case. I’m new at this so you may have to bear with me a bit.

    I switched the encoder to XviD [.AVI] (mencoder) and it failed. I'll paste the log below.

    What would you recommend for a high Video Bitrate?

    Thanks very much for your help!


    Encoding started on Sun Sep 26 22:45:37 PDT 2010
    MEncoder dev-CVS-060307-04:23-4.0.1 (C) 2000-2006 MPlayer Team
    Mac OSX static build for ffmpegX
    FIXME:Hardenabling SSE and SSE2 without detection
    CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 10)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    success: format: 0 data: 0x0 - 0x953a0a2
    REAL file format detected.
    Something went wrong, no index chunk found on given address (154002190)
    Stream description: audio/x-pn-multirate-realaudio logical stream
    Stream mimetype: audio/x-pn-realaudio
    Stream description: video/x-pn-multirate-realvideo logical stream
    Stream mimetype: video/x-pn-realvideo
    VIDEO: [RV40] 320x240 24bpp 12.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:11 fourcc:0x30345652 size:320x240 fps:12.00 ftime:=0.0833
    ================================================== ========================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 22050 Hz, 1 ch, s16le, 16.2 kbit/4.59% (ratio: 2024->44100)
    Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
    ================================================== ========================
    xvid: using library version 1.2.-127 (build xvid-1.2.0-dev)
    Opening video filter: [expand osd=1]
    Error: dlopen(/Library/Application Support/ffmpegX/reallib/drvc.so, 1): image not found
    Error: dlopen(/Library/Application Support/ffmpegX/reallib/drv4.so.6.0, 1): image not found
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [scale w=320 h=176]
    ================================================== ========================
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Read DOCS/HTML/en/codecs.html!
    ================================================== ========================
    Exiting...
    Error: dlopen(/Library/Application Support/ffmpegX/reallib/drvc.bundle/Contents/MacOS/drvc, 1): image not found
    Cannot find codec matching selected -vo and video format 0x30345652.

  4. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    If you downloaded the reallib from the ffmpegX website, it is unfortunately still the PPC version, which is not MacIntel compatible.
    Back in April 2008, user jpschuck taught us how to get the Intel version of reallib:

    1/ There is an Intel version available at the Mplayer official website. Look for the "Binary codec package" section and choose "Mac OS X x86 20060611".
    2/ Once the 11.5 MB download is completed, double-click the package in order to install it ; this will install the required codecs and enable RealMedia playback in Mplayer for OSX, but not yet for ffmpegX.
    3/ Under the Finder choose menu "Go" > "Go to folder..." , type /usr/local/lib and hit return; this will open a hidden folder. One of the items should be a folder called "codecs".
    4/ Open a new Finder window. Goto /Library/Application Support/ffmpegX/". Delete the old "reallib" folder (if present).
    5/ Copy the "codecs" folder into "/Library/Application Support/ffmpegX/" and rename this "codecs" folder to "reallib".
    6/ Now ffmpegX should be able to deal with RealMedia files. Test it by dropping an .rm file onto ffmpegX, then use the Play button. Press 'q' to quit mplayer.

    Originally Posted by rkane View Post
    What would you recommend for a high Video Bitrate?
    Double it.

  5. Member
    Join Date
    Sep 2010
    Location
    USA
    Search Comp PM
    Thanks so much for your help, Case. Unfortunately it didn't work. This is the log (and I'm also attaching a screen shot of a few things).

    Encoding started on Wed Sep 29 23:24:42 PDT 2010
    FIXME:Hardenabling SSE and SSE2 without detection
    MEncoder dev-CVS-060307-04:23-4.0.1 (C) 2000-2006 MPlayer Team
    Mac OSX static build for ffmpegX
    CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 10)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    success: format: 0 data: 0x0 - 0x953a0a2
    REAL file format detected.
    Something went wrong, no index chunk found on given address (154002190)
    Stream description: audio/x-pn-multirate-realaudio logical stream
    Stream mimetype: audio/x-pn-realaudio
    Stream description: video/x-pn-multirate-realvideo logical stream
    Stream mimetype: video/x-pn-realvideo
    VIDEO: [RV40] 320x240 24bpp 12.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:11 fourcc:0x30345652 size:320x240 fps:12.00 ftime:=0.0833
    ================================================== ========================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 22050 Hz, 1 ch, s16le, 16.2 kbit/4.59% (ratio: 2024->44100)
    Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
    ================================================== ========================
    xvid: using library version 1.2.-127 (build xvid-1.2.0-dev)
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [scale w=320 h=240]
    ================================================== ========================
    Opening video decoder: [realvid] RealVideo decoder
    Error: dlopen(/Library/Application Support/ffmpegX/reallib/drvc.so, 1): image not found
    Read the RealVideo section of the DOCS!
    Error: dlopen(/Library/Application Support/ffmpegX/reallib/drv4.so.6.0, 1): image not found
    Error: dlopen(/Library/Application Support/ffmpegX/reallib/drvc.bundle/Contents/MacOS/drvc, 1): image not found
    Cannot find codec matching selected -vo and video format 0x30345652.
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Read DOCS/HTML/en/codecs.html!
    ================================================== ========================
    Exiting...
    Image Attached Thumbnails ffmpegX 0.09y screen shot .pdf  


  6. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by rkane View Post
    Thanks so much for your help, Case. Unfortunately it didn't work. This is the log (and I'm also attaching a screen shot of a few things).
    <<ffmpegX 0.09y screen shot .pdf>>
    Thanks for the screenshot. Rename the folder "reallib" (two "l"s).

  7. Member
    Join Date
    Sep 2010
    Location
    USA
    Search Comp PM
    That did it! Thank you (although after re-reading an earlier one of your posts I realize that I did the final encoding with the wrong preset: I used .MOV instead of the iPod h.264 640w preset, which I'll try next).

    Again thanks very much for your help.

    ~Richard




Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!