Green screen after video conversion, AVI to MP4 using Mencoder,Mplayer,FFmpeg,x264,
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Green screen after video conversion, AVI to MP4 using Mencoder,Mplayer,FFmpeg,x264,
Hi there,
I am trying perform a video conversion,using Mencoder,Mplayer,FFmpeg,x264,
everything works OK, no mesagge errors when performing the script, but when i check the mp4 result, the video plays green, the video is ok but like with a green filter, sound is OK, any help would be appreciated.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffcamtasia] vfm: ffmpeg (TechSmith Camtasia Screen Codec (native))
==========================================================================
VDec: vo config request - 1280 x 720 (preferred colorspace: BGR 24-bit)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using BGR 24-bit as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled bgr24 -> yuv420p special converter
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
Flushing video frames
Video stream: 593.693 kbit/s (74211 B/s) size: 6881891 bytes 92.733 secs 1391 frames
x264 [info]: slice I:8 Avg QP:35.25 size: 60159
x264 [info]: slice P:400 Avg QP:38.50 size: 13380
x264 [info]: slice B:983 Avg QP:40.43 size: 1064
x264 [info]: mb I I16..4: 2.6% 96.3% 1.1%
x264 [info]: mb P I16..4: 0.0% 9.2% 0.0% P16..4: 88.9% 0.6% 1.1% 0.1% 0.0% skip: 0.0%
x264 [info]: mb B I16..4: 0.0% 0.5% 0.0% B16..8: 3.9% 0.0% 0.0% direct: 0.0% skip:95.5%
x264 [info]: 8x8 transform intra:98.8% inter:96.7%
x264 [info]: ref P 44.7% 12.1% 10.6% 5.9% 6.4% 7.2% 8.5% 4.6%
x264 [info]: ref B 40.7% 13.2% 13.9% 6.1% 7.1% 7.0% 7.6% 4.5%
x264 [info]: kb/s:593.5
* * * Extracting Audio... * * *
MPlayer 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Dual-Core AMD Opteron(tm) Processor 1212 (Family: 15, Model: 67, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing latesttestst.avi.
AVI file format detected.
VIDEO: [tscc] 1280x720 24bpp 15.000 fps 259.9 kbps (31.7 kbyte/s)
==========================================================================
Forced video codec: dummy
Cannot find codec matching selected -vo and video format 0x63637374.
Read DOCS/HTML/en/codecs.html!
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO PCM] File: latesttestst_temp.wav (WAVE)
PCM: Samplerate: 48000Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 92.7 (01:32.7) of 110.2 (01:50.2) 0.8%
Exiting... (End of file)
* * * Encoding Audio... * * *
*************************************************************
* *
* Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder *
* Copyright 2007 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Aug 6 2007 *
* *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************
Processed 92 seconds...
* * * Generating final MP4 container... * * *
AVC-H264 import - frame size 1280 x 720 at 15.000 FPS
Import results: 1391 samples - Slices: 8 I 400 P 983 B - 1 SEI - 8 IDR
Stream uses B-slice references - max frame delay 2
Setting up iTunes/iPod file...
Forcing AVC/H264 SAR to 1:1...
Saving to latesttestst.m4v: 0.500 secs Interleaving
IsoMedia import - track ID 1 - HE-AAC (SR 24000 - SBR-SR 48000 - 2 channels)
Setting up iTunes/iPod file...
Forcing AVC/H264 SAR to 1:1...
Saving latesttestst.m4v: 0.500 secs Interleaving
Setting up iTunes/iPod file...
Forcing AVC/H264 SAR to 1:1...
Saving latesttestst.m4v: 0.500 secs Interleaving
* * * Removing temporary files... * * *
* * * Checking and/or creating thumbnails... * * *
Did not find Thumbnail, creating thumbnail
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jan 11 2008 02:31:29, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9)
Input #0, avi, from 'latesttestst.avi':
Duration: 00:01:32.7, start: 0.000000, bitrate: 1685 kb/s
Stream #0.0: Video: camtasia, bgr24, 1280x720, 15.00 fps(r)
Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, mjpeg, to 'latesttestst_thumbnail.jpg':
Stream #0.0: Video: mjpeg, yuvj420p, 130x74, q=2-31, 200 kb/s, 1.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
frame= 1 fps= 0 q=2.7 Lsize= 4kB time=1.0 bitrate= 32.6kbits/s
video:4kB audio:0kB global headers:0kB muxing overhead 0.000000%
at the moment the goal of the conversion is avi to mp4, the most important is the quality of the conversion, the videos are uploaded to an online learning website,
.avi with TSCC to .mov with h264 gives weird colours
Hello,
I have a similar issue that you posted in regard to encoding with the techsmith codec then decoding into .mov
I have found that when a user encodes to .avi with the TSCC video codec and we convert to .mov with the H264 video codec or the .mp4 with the h264 video codec we have the weird colourisation you described.
When I use the Camtasia recorder and record to .avi on my laptop then process with the exact same command line in ffmpeg it produces the .mov and .mp4 with the correct colours.
This suggests to me that the issue is with the Camtasia app or the colour settings on the clients machine.
If the Windows display properties >> Color Quality is set to "Medium (16bit)" the Techsmith (Camtasia) codec can only encode video in an avi as RGB555 i.e. 5 bits per colour channel.
when the Windows display properties >> Color Quality (access this by Start>>Control Panel >> Display) is set to "Highest (32bit)" the Techsmith (Camtasia) codec encodes in an avi to BGR24 i.e. 8 bits per colour channel.
So just make sure the Colour Quality is 32 bit in Windows and you should be happy.
This is how i worked it out.
I created an .avi file and processed it manually in FFmpeg in a Terminal session on a Macintosh laptop.
The .avi created when Windows Colour Quality was set to 16bit has these properties (these are outputted to the Terminal when you run FFmpeg)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.