VideoHelp Forum




Results 1 to 6 of 6
  1. Master of my domain thoughton's Avatar
    Join Date
    Sep 2002
    Location
    England
    Search Comp PM
    Hi Major,

    I'm trying to encode xvid movies for a PDA (in 'smartmovie' format). My test source movie is a PAL mpeg1 with 44.1kHz audio. I want to output xvid at 272x208 with mp3 audio. The settings I'm using are:
    Video: xvid(.avi) codec, 140kbit/s, 272x208, 12.5fps
    Audio: mp3, 16kbit/s, 11025Hz, Stereo, CBR

    However my output has no audio track. And when I check info in QTPlayer the annotation is 'MEncoder dev-CVS blahblahblah'.

    I ran the conversion again to try and extract the audio I wanted, so this time I unchecked 'encode video'. However it again produced a video file with no audio (same size file, with the same MEncoder annotation)!
    (I did this step twice to make sure I did definitely uncheck 'encode video'!)

    BUT, If I change the audio bitrate to 32kbit/s the output file has an audio track! And the movie annotation is now 'DivX AVI Importer'! However my audio is still 44.1kHz instead of 11.025kHz (Smartmovie Player can play this, but the audio is double the size from the higher bitrate - would like to avoid this).

    I've been able to work around it by demuxing my source movie and encoding the mp2 audio separately. If I do that I can (using the same settings as above! but unchecking encode video) produce a 16kbit/s 11.025kHz mp3 audio track which I can then remux with my xvid video. This produces a file the Smartmovie Player can play.

    Is there a setting I can change to correctly produce the 11.025kHz 16kbit/s audio without demuxing and remuxing each time?

    I've attached two logs (one produces no audio, one produces audio but high bitrate I want to avoid and also has wrong sampling rate), hope they are useful!

    Tim




    Here is the process log of the original encoding (audio set to 16kbit/s - result: no audio):

    Encoding started on Wed May 19 13:11:34 BST 2004
    Using GNU internationalization
    Original domain: messages
    Original dirname: /sw/share/locale
    Current domain: mplayer
    Current dirname: /usr/local/share/locale
    MEncoder dev-CVS-030226-15:00-3.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)
    AltiVec found
    Reading /Users/thoughton/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf
    File not found: 'frameno.avi'
    success: format: 0 data: 0x0 - 0x2362818
    MPEG-PS file format detected.
    VIDEO: MPEG1 320x240 (aspect 12) 29.97 fps 1280.0 kbps (160.0 kbyte/s)
    [V] filefmt:2 fourcc:0x10000001 size:320x240 fps:29.97 ftime:=0.0334
    ================================================== ========================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    MP3lib: init layer2&3 finished, tables done
    AUDIO: 44100 Hz, 2 ch, 16 bit (0x20), ratio: 16000->176400 (128.0 kbit)
    Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
    ================================================== ========================
    Opening video filter: [expand=-1:-1:-1:-1:1]
    The selected video_out device is incompatible with this codec.
    Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
    Opening video filter: [scale=272:208]
    ================================================== ========================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 320 x 240 (preferred csp: Mpeg PES)
    VDecoder init failed
    Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
    libmpeg2: No accelerated IDCT transform found
    libmpeg2: No accelerated motion compensation found
    VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: FAST_BILINEAR scaler, from Planar YV12 to Planar YV12 using C
    videocodec: XViD (272x208 fourcc=44495658 [DIVX])
    Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
    ================================================== ========================
    MP3 audio selected
    Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
    Writing AVI header...
    New_Face failed. Maybe the font path is wrong.
    Please supply the text font file (~/.mplayer/subfont.ttf).
    subtitle font: load_sub_face failed.
    Skipping frame!
    Skipping frame!
    Skipping frame!
    Skipping frame!

    [About 60,000 lines of "Skipping frame!" removed]

    Skipping frame!
    Skipping frame!
    Skipping frame!
    CBR audio: 24000 bytes/sec, 0 bytes/block
    Writing AVI index...
    Fixing AVI header...
    Video stream: 140.193 kbit/s (17524 bps) size: 4016539 bytes 229.200 secs 7627 frames
    Audio stream: nan kbit/s (-2147483648 bps) size: 0 bytes 0.000 secs
    Encoding completed on Wed May 19 13:15:19 BST 2004





    Here is the process log of the original encoding (audio set to 32kbit/s - result: audio track exists but is 44.1khz instead of 11.025khz):

    Encoding started on Wed May 19 13:19:50 BST 2004
    Using GNU internationalization
    Original domain: messages
    Original dirname: /sw/share/locale
    Current domain: mplayer
    Current dirname: /usr/local/share/locale
    MEncoder dev-CVS-030226-15:00-3.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)
    AltiVec found
    Reading /Users/thoughton/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf
    Reading config file /Users/thoughton/.mplayer/mencodersuccess: format: 0 data: 0x0 - 0x2362818
    MPEG-PS file format detected.
    File not found: 'frameno.avi'
    EG1 320x240 (aspect 12) 29.97 fps 1280.0 kbps (160.0 kbyte/s)
    [V] filefmt:2 fourcc:0x10000001 size:320x240 fps:29.97 ftime:=0.0334
    ================================================== ========================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    MP3lib: init layer2&3 finished, tables done
    AUDIO: 44100 Hz, 2 ch, 16 bit (0x20), ratio: 16000->176400 (128.0 kbit)
    Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
    ================================================== ========================
    Opening video filter: [expand=-1:-1:-1:-1:1]
    The selected video_out device is incompatible with this codec.
    Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
    Opening video filter: [scale=272:208]
    ================================================== ========================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 320 x 240 (preferred csp: Mpeg PES)
    VDecoder init failed
    Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
    libmpeg2: No accelerated IDCT transform found
    libmpeg2: No accelerated motion compensation found
    VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: reducing / aligning filtersize 2 -> 2
    SwScaler: FAST_BILINEAR scaler, from Planar YV12 to Planar YV12 using C
    videocodec: XViD (272x208 fourcc=44495658 [DIVX])
    Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
    ================================================== ========================
    MP3 audio selected
    Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
    Writing AVI header...
    New_Face failed. Maybe the font path is wrong.
    Please supply the text font file (~/.mplayer/subfont.ttf).
    subtitle font: load_sub_face failed.
    Skipping frame!
    Skipping frame!
    Skipping frame!

    [Many many lines of "Skipping frame!" removed]

    Skipping frame!
    Skipping frame!
    Skipping frame!
    Skipping frame!
    CBR audio: 4000 bytes/sec, 104 bytes/block
    Writing AVI index...
    Fixing AVI header...
    Video stream: 140.118 kbit/s (17514 bps) size: 4454348 bytes 254.320 secs 7627 frames
    Audio stream: 32.000 kbit/s (3999 bps) size: 1019289 bytes 254.824 secs
    Encoding completed on Wed May 19 13:25:38 BST 2004
    Tim Houghton
    WebsitePhotography

  2. Master of my domain thoughton's Avatar
    Join Date
    Sep 2002
    Location
    England
    Search Comp PM
    By the way, this is all with ffmpegX 0.0.9h
    Tim Houghton
    WebsitePhotography

  3. Never tried Smartmovie. Is there an advantage to it vs. Pocket MVP or the new Betaplayer? That is what I use to play xvid movies (with Ogg audio) on my PDA. If you want to try them out here is a temporary link to Betaplayer's download site (corecodec.org is down) They are both Freeware, but I feel Betaplayer is better than PMVP.

    FWIW here is a guide I whipped up for encoding for it.

    -Suntan

  4. Master of my domain thoughton's Avatar
    Join Date
    Sep 2002
    Location
    England
    Search Comp PM
    I think some of those apps are for PocketPC only? I'm using SmartMovie on a Symbian OS phone (SE P800). I'm only using it because it has full screen playback and the required format is somewhat open (although the exact required specifications are a bit obscure). I just couldnt figure out how to encode the VICS video player format, and the Philips Camcoder playback is too slow on my (old) firmware.
    Tim Houghton
    WebsitePhotography

  5. Betaplayer has a smartphone build.

    -Suntan

  6. Master of my domain thoughton's Avatar
    Join Date
    Sep 2002
    Location
    England
    Search Comp PM
    Well, after some googling I found the author's homepage (corecodec seems to be broken) and got the smartphone build. Fired up VPC and ran it, but it appears to be for pocketpc-based smartphones.
    Tim Houghton
    WebsitePhotography




Similar Threads

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