VideoHelp Forum




Results 1 to 10 of 10
  1. Member
    Join Date
    Apr 2008
    Location
    United States
    Search Comp PM
    Hello,
    I'm running a PPC and have installed ffmpegX 0.0.9y.
    I'm trying to convert videos made on my treo to a format I can upload to Gallery for web viewing.
    I'm getting the following errors.
    Encoding started on Tue Apr 1 09:32:04 CDT 2008
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    configuration: --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-pthreads --enable-x264
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    built on Apr 15 2006 08:41:02, gcc: 3.3 20030304 (Apple Computer, Inc. build 1666)

    Seems that stream 1 comes from film source: 500.00 (1000/2) -> 14.17 (85/6)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/vworley/Desktop/2007Video/Video012307002.3gp':
    Duration: 00:01:15.6, start: 0.000000, bitrate: 226 kb/s
    Stream #0.0(und): Audio: amr_nb, 8000 Hz, mono
    Stream #0.1(und), 14.17 fps(r): Video: h263, yuv420p, 352x288
    Output #0, avi, to '/Users/vworley/Desktop/2007Video/Video012307002.3gp.ff.avi':
    Stream #0.0, 14.17 fps(c): Video: mpeg4, yuv420p, 352x288, q=2-9, 268719 kb/s
    Stream #0.1: Audio: amr_nb, 128 Hz, mono, 8000 kb/s
    Stream mapping:
    Stream #0.1 -> #0.0 [sync #0.0]
    Stream #0.0 -> #0.1 [sync #0.1]
    Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    What am I doing wrong? The output file shows 0Kb as file size. The video will play in VLC.

    Thanks,
    Victor

  2. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by Victor
    Output #0, avi, to 'Video012307002.3gp.ff.avi':
    Stream #0.0, 14.17 fps(c): Video: mpeg4, yuv420p, 352x288, q=2-9, 268719 kb/s
    Stream #0.1: Audio: amr_nb, 128 Hz, mono, 8000 kb/s
    Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
    A video bitrate of 268,719 kbps seems like a bit much, 322 kbps should be enough for mpeg4, 352x288, 14.17 fps.
    For the audio, you seem to have swapped bitrate and sampling rate: 128 Hz, 8000 kbps should be 128 kbps, 8000 Hz.

  3. Member
    Join Date
    Apr 2008
    Location
    United States
    Search Comp PM
    OK, I've fixed those items. Here is the output w/ the Invert mapping checked.
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    configuration: --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-pthreads --enable-x264
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    built on Apr 15 2006 08:41:02, gcc: 3.3 20030304 (Apple Computer, Inc. build 1666)

    Seems that stream 1 comes from film source: 500.00 (1000/2) -> 14.17 (85/6)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/vworley/Desktop/2007Video/Video012307002.3gp':
    Duration: 00:01:15.6, start: 0.000000, bitrate: 226 kb/s
    Stream #0.0(und): Audio: amr_nb, 8000 Hz, mono
    Stream #0.1(und), 14.17 fps(r): Video: h263, yuv420p, 352x288
    Output #0, avi, to '/Users/vworley/Desktop/2007Video/Video012307002.3gp.ff.avi':
    Stream #0.0, 14.17 fps(c): Video: mpeg4, yuv420p, 352x288, q=2-9, 322 kb/s
    Stream #0.1: Audio: amr_nb, 8000 Hz, mono, 128 kb/s
    Stream mapping:
    Stream #0.1 -> #0.0 [sync #0.0]
    Stream #0.0 -> #0.1 [sync #0.1]
    Could not write header for output file #0 (incorrect codec parameters ?)
    bench: utime=0.004s
    Encoding completed on Tue Apr 1 13:38:32 CDT 2008

    And here is the output w/out the Invert Mapping checked

    Last login: Tue Apr 1 13:38:31 on ttyp1
    /Applications/ffmpegX.app//Contents/Resources/pbpaste | sh
    Welcome to Darwin!
    iSprocket:~ vworley$ /Applications/ffmpegX.app//Contents/Resources/pbpaste | sh
    Encoding started on Tue Apr 1 13:39:30 CDT 2008
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    configuration: --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-pthreads --enable-x264
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    built on Apr 15 2006 08:41:02, gcc: 3.3 20030304 (Apple Computer, Inc. build 1666)

    Seems that stream 1 comes from film source: 500.00 (1000/2) -> 14.17 (85/6)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/vworley/Desktop/2007Video/Video012307002.3gp':
    Duration: 00:01:15.6, start: 0.000000, bitrate: 226 kb/s
    Stream #0.0(und): Audio: amr_nb, 8000 Hz, mono
    Stream #0.1(und), 14.17 fps(r): Video: h263, yuv420p, 352x288
    Codec type mismatch for mapping #0.0 -> #0.0

    Am I correct in thinking that I do in fact need the Invert mapping turned on, as it looks like my Audio is natively on Stream #0.0?

    Victor

  4. Member
    Join Date
    Apr 2008
    Location
    United States
    Search Comp PM
    Update
    I got it to encode a video by changing the audio encoding to MP3, but, half way thru the video, the video goes away but I still have audio.

  5. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by vworley
    Am I correct in thinking that I do in fact need the Invert mapping turned on, as it looks like my Audio is natively on Stream #0.0?
    Exactly right.

    Originally Posted by vworley
    I got it to encode a video by changing the audio encoding to MP3
    Mp3 audio seems more common in AVIs...

    Originally Posted by vworley
    half way thru the video, the video goes away but I still have audio.
    Try activating Decode with QT in the Options tab. Possibly the encoding acts differently then.

  6. Member
    Join Date
    Apr 2008
    Location
    United States
    Search Comp PM
    OK, I tried QT w/ and w/out Letterbox checked. Won't even open the file
    ERROR: Could not open movie: /Users/vworley/Desktop/2007Video/Video041207001.3gp
    pipe:: Error while opening file

    I tried another video and have the same deal. Video stops, goes to white screen half way thru.

    Interesting...

  7. Member
    Join Date
    Apr 2008
    Location
    United States
    Search Comp PM
    When should I use VBR/CBR/ABR audio settings?

  8. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    From the website:
    Defines mp3 encoding profile for mencoder mpeg-4 and XviD encoding. Available modes are CBR (Constant Bitrate, default), ABR (Average Bitrate) and VBR (Variable Bitrate, uses the optimal q=2 quantization level). (Not available for mp2 encoding or ffmpeg engine.)

    CBR is the safest with problematic files, as it is best supported by players and is least likely to be involved with sync issues. VBR or ABR should improve the perceived quality a bit, as it is a method to use more bytes to describe complex sections and use less bytes to describe simple (e.g. near-silent) sections.

  9. Member
    Join Date
    Apr 2008
    Location
    United States
    Search Comp PM
    OK, that makes sense. I've been researching, trying to figure out why I get the error "selected audio stream does not exist". Track 1. Only, I have Audio track set to 0. It always seems to be +1 from what I have set, in the error. See below
    Encoding started on Wed Apr 2 07:51:16 CDT 2008
    MEncoder dev-CVS-051126-18:35-3.3 (C) 2000-2005 MPlayer Team
    Mac OSX static build for ffmpegX
    AltiVec found
    CPU: PowerPC
    success: format: 0 data: 0x0 - 0xba85c
    ISO: File Type Major Brand: 3GPP Profile 4
    Quicktime/MOV file format detected.
    --------------
    MOV track #0: 666 chunks, 0 samples
    Audio bits: 8 chans: 1 rate: 8000
    MOV: Found AMR audio atom damr (17)!
    MOV: Vendor: HNTR Version: 0
    MOV: Modes set: 0080
    MOV: Mode change period: 0 Frames per sample: 2
    Fourcc: rmas
    --------------
    MOV track #1: 216 chunks, 216 samples
    MOV: Found H.263 decoder atom d263 (15)!
    MOV: Vendor: HNTR H.263 level: 0 H.263 profile: 10
    Image size: 352 x 288 (24 bpp)
    Display size: 352 x 288
    Fourcc: 362s Codec: ''
    --------------
    MOV: longest streams: A: #0 (666 samples) V: #1 (216 samples)
    MOV: selected audio stream (1) does not exists
    VIDEO: [s263] 352x288 24bpp 2.732 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:7 fourcc:0x33363273 size:352x288 fps: 2.73 ftime:=0.3660
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [scale w=416 h=304]
    ================================================== ========================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffh263] vfm: ffmpeg (FFmpeg H.263+ decoder)
    ================================================== ========================
    Forcing output fourcc to 58564944 [XVID]
    VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.

    SwScaler: FAST_BILINEAR scaler, from Planar YV12 to Planar YV12 using AltiVec
    videocodec: libavcodec (416x304 fourcc=58564944 [XVID])
    Writing AVI header...
    ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
    ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

    9 duplicate frame(s)!
    Pos: 0.3s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    2 duplicate frame(s)!
    Pos: 0.4s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    3 duplicate frame(s)!
    Pos: 0.6s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    2 duplicate frame(s)!
    Pos: 0.7s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    3 duplicate frame(s)!
    Pos: 0.8s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    1 duplicate frame(s)!
    Pos: 0.9s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    2 duplicate frame(s)!
    Pos: 1.0s 7f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
    2 duplicate frame(s)!


    So, I have encoded video....like the old silent movies!

    It also seems that I still get encoded video, regardless of Invert Mapping settings. Curios.

  10. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by vworley
    Encoding started on Wed Apr 2 07:51:16 CDT 2008
    MEncoder dev-CVS-051126-18:35-3.3 (C) 2000-2005 MPlayer Team
    [...]

    It also seems that I still get encoded video, regardless of Invert Mapping settings. Curios.
    The mencoder engine handles getting the video or audio streams differently from the ffmpeg engine. That's why the Invert mapping setting is only useful for ffmpeg encodings.




Similar Threads

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