Error encoding to ljpeg
Hi, I have discovered a nasty bug with encoding to ljpeg. This is with version: MEncoder 1.0pre7-3.4.1 (C) 2000-2005 MPlayer Team CPU: Intel (Family: 8, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Using sample jpegs which were produced by same version mplayer, and the commandline: mencoder -mf h=480:w=640:type=jpg -o "tmpvid" -ovc lavc -lavcopts vcodec=ljpeg -noskip -ofps 25.000 mf://*.jpg -frames 10 Produces the following: MEncoder 1.0pre7-3.4.1 (C) 2000-2005 MPlayer Team CPU: Intel (Family: 8, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 File not found: 'frameno.avi' Failed to open frameno.avi success: format: 16 data: 0x0 - 0x0 [demuxer] mf support. [mf] search expr: *.jpg [mf] number of files: 468 (1872) VIDEO: [IJPG] 640x480 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:16 fourcc:0x47504A49 size:640x480 fps:25.00 ftime:=0.0400 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder) ========================================================================== Writing AVI header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. VDec: vo config request - 640 x 480 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 3) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. videocodec: libavcodec (640x480 fourcc=47504a4c [LJPG]) [ljpeg @ 0x8544d08]colorspace not supported in jpeg Could not open codec. FATAL: Cannot initialize video driver. Exiting... A quick fix/workaround would be appreciated, as this completely breaks the mencoder encoder plugin in LiVES (http://lives.sf.net) Regards, Salsaman.
salsaman wrote:
Hi, I have discovered a nasty bug with encoding to ljpeg.
Using sample jpegs which were produced by same version mplayer, and the commandline:
mencoder -mf h=480:w=640:type=jpg -o "tmpvid" -ovc lavc -lavcopts vcodec=ljpeg -noskip -ofps 25.000 mf://*.jpg -frames 10
For the most part, bugs should be reported only against the CVS version; if you have a problem with a release version, try the CVS before reporting. In this case, when I try your command line on a random set of JPEG files I have, there is no failure - and the resulting AVI can be played back just fine. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny.
On Tue, Dec 06, 2005 at 08:46:33PM +0100, salsaman wrote:
Hi, I have discovered a nasty bug with encoding to ljpeg. This is with version:
MEncoder 1.0pre7-3.4.1 (C) 2000-2005 MPlayer Team CPU: Intel (Family: 8, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Using sample jpegs which were produced by same version mplayer, and the commandline:
mencoder -mf h=480:w=640:type=jpg -o "tmpvid" -ovc lavc -lavcopts vcodec=ljpeg -noskip -ofps 25.000 mf://*.jpg -frames 10
You need to add a -lavcopts format=[some rgb format] for ljpeg to work. However this command line is pointless. If your files are jpeg already, converting them to ljpeg will just make them BIGGER. Instead, use -ovc copy to just copy the jpeg files into the output file as mjpeg frames. This should work as long as they were created with just normal baseline jpeg settings, nothing odd/special. Rich
Rich Felker wrote:
On Tue, Dec 06, 2005 at 08:46:33PM +0100, salsaman wrote:
Hi, I have discovered a nasty bug with encoding to ljpeg. This is with version:
MEncoder 1.0pre7-3.4.1 (C) 2000-2005 MPlayer Team CPU: Intel (Family: 8, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Using sample jpegs which were produced by same version mplayer, and the commandline:
mencoder -mf h=480:w=640:type=jpg -o "tmpvid" -ovc lavc -lavcopts vcodec=ljpeg -noskip -ofps 25.000 mf://*.jpg -frames 10
You need to add a -lavcopts format=[some rgb format] for ljpeg to work. However this command line is pointless. If your files are jpeg already, converting them to ljpeg will just make them BIGGER. Instead, use -ovc copy to just copy the jpeg files into the output file as mjpeg frames. This should work as long as they were created with just normal baseline jpeg settings, nothing odd/special.
Rich
Rich, thanks for that, with -ovc copy it works like a dream ! Regards, Salsaman. http://lives.sourceforge.net
participants (3)
-
Rich Felker -
salsaman -
The Wanderer