View previous topic :: View next topic |
Author |
Message |
ElSenorPantelone n00b
Joined: 24 Jan 2006 Posts: 72
|
Posted: Wed Apr 25, 2007 8:16 pm Post subject: mencoder confusion |
|
|
I am trying to encode a video using mencoder:
Code: |
mencoder /home/user/documents/videos/Survivorman\ Season\ 1/102SonorannDesert.mp4 -oac lavc -lavcopts acodec=ac3:abitrate=96 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=5:vpass=2:aspect=4/3:vbitrate=512 -of lavf -lavfopts format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -o /home/cvance/Desktop/out.mp4
|
and I get the following output:
Code: |
MEncoder 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.13GHz (Family: 6, Model: 13, Stepping: 8)
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 - 0x908b9fa
Quicktime/MOV file format detected.
VIDEO: [avc1] 512x384 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x31637661 size:512x384 fps:23.98 ftime:=0.0417
Input fps will be interpreted as 24.00 instead.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 51.3 kbit/3.64% (ratio: 6414->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
** MUXER_LAVF *****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
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
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (512x384 fourcc=34504d46 [FMP4])
2pass failed: filename=divx2pass.log
FATAL: Cannot initialize video driver.
|
Information about the file can be found here:
Code: |
mplayer /home/user/documents/videos/Survivorman\ Season\ 1/101CanadianBorealForest.avi
MPlayer 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.13GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Playing /home/cvance/documents/videos/Survivorman Season 1/101CanadianBorealForest.avi.
AVI file format detected.
VIDEO: [XVID] 512x384 16bpp 23.976 fps 975.8 kbps (119.1 kbyte/s)
Clip info:
Software: VirtualDubMod 1.5.10.1 (build 2366/release)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 512 x 384 (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.33:1 - prescaling to correct movie aspect.
SwScaler: using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 512x384 => 512x384 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
No bind found for key 'c'. % 8% 1.5% 2 0
A: 4.5 V: 4.5 A-V: 0.008 ct: -0.004 108/108 8% 7% 1.2% 2 0
Exiting... (Quit)
|
I wish I knew more about what the error means, but I get no information. Can anyone help me figure out what is wrong? |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Wed Apr 25, 2007 10:31 pm Post subject: |
|
|
Try doing just an AVI
Dont split up -lavcopts ... dunno if it works split up or not, but .. whatever
Try latest MPlayer in the tree _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
ElSenorPantelone n00b
Joined: 24 Jan 2006 Posts: 72
|
Posted: Thu Apr 26, 2007 1:41 am Post subject: |
|
|
I wish I could do just an avi, but I need mpeg4 for my ipod. ffmpeg works well for it but it cannot decode my realplayer files, which I need. Mplayer can play rmvb files so I assume, naturally, that it can decode it as well. I tried moving the -lavcopts into one line as such:
Code: |
mencoder /home/cvance/documents/videos/Survivorman\ Season\ 1/102SonorannDesert.mp4 -oac lavc -ovc lavc -lavcopts acodec=ac3:abitrate=96:vcodec=mpeg4:vqscale=5:vpass=2:vbitrate=512:autoaspect -of lavf -lavfopts format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -o /home/cvance/Desktop/out.mp4
|
I still get the same error:
Code: |
MEncoder 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.13GHz (Family: 6, Model: 13, Stepping: 8)
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 - 0x908b9fa
Quicktime/MOV file format detected.
VIDEO: [avc1] 512x384 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x31637661 size:512x384 fps:23.98 ftime:=0.0417
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 51.3 kbit/3.64% (ratio: 6414->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
** MUXER_LAVF *****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
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
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (512x384 fourcc=34504d46 [FMP4])
2pass failed: filename=divx2pass.log
FATAL: Cannot initialize video driver.
|
|
|
Back to top |
|
|
toeytoertoe n00b
Joined: 27 Apr 2007 Posts: 1
|
Posted: Fri Apr 27, 2007 4:52 am Post subject: |
|
|
Have you tried the new encoding NOTOE? |
|
Back to top |
|
|
slobba n00b
Joined: 20 Mar 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Sat Apr 28, 2007 12:12 pm Post subject: |
|
|
Code: | 2pass failed: filename=divx2pass.log
FATAL: Cannot initialize video driver. |
Is the command line that you posted for your first encoding pass? If so you should change vpass=2 to vpass=1. |
|
Back to top |
|
|
ElSenorPantelone n00b
Joined: 24 Jan 2006 Posts: 72
|
Posted: Sat Apr 28, 2007 5:12 pm Post subject: |
|
|
Yes, that was the solution, but I need to do an experiment with 1 vs 2 pass encoding to see if the additional overhead is worth the increased efficiency. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|