Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72
Rep:
High Def Video Bottleneck: Where?
Hey... Anyone want to give suggestions as to where the bottleneck is in my system? I'm trying to play high definition video (720i DivX and 1080p H.264) and it constantly comes out grainy.
My Rig:
Processor: AMD Athlon 3000+ Venice
Motherboard: Giga-Byte GA-K8N Pro-SLI (F9 Bios)
Video Card: Leadtek PX6800TDH Geforce 6800 256MB (Nvidia)
Monitor: Sony SDM-S71 Set at 1280x1024.
RAM: Kingston HyperX 512MB (2x256MB) -- Dual Channel Mode
Software: SuSe 10 (32 bit) with Kernel 2.6.13-15.8-default, Nvidia Drivers and Mplayer Codec Pack installed.
I've tried both Kaffeine and mplayer to play these videos, but still looks like 640x480.
Can anybody think of a specific bottleneck that I could fix?
Hard drives are always the bottleneck when dealing with video files. Try setting up tmpfs to handle the space of the high definition video. By placing the video clip in memory, the hard drive will not be the bottleneck. Your RAM should send at least one gigabyte per second.
Distribution: Debian 3.1 (or variant... depends on which machine)
Posts: 72
Original Poster
Rep:
ok. I copied the videos into /dev/shm as root, played them with mplayer -fs as root, and they still come out grainy. Maybe it's my video card (generic) or screen (from 2002)?
If it's not CPU or disk I guess it looks like a video problem. Do you know what codec and video driver mplayer is using? You should get this info when mplayer starts up from the command line e.g.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
and
VO: [xv] 688x400 => 688x400 Planar YV12
for the driver. 'mplayer -vo help' will show you the drivers available.
You can also run 'ps aux' to check how much CPU/RAM the mplayer process is using. There are big differences between the different software video drivers that mplayer can use.
YV12 is only 12 bit of color (4 bit for red, 4 bit for green, and 4 bit for blue). If you include "-vf yuy2" when running mplayer, the quality of the picture quality can double. YUY2 provides about 16 bit color or 15 bits for the effective color for 16 bits (5 bits for red, 5 bits for green, and 5 bits for blue). Also it will use the video card to accellerate the video clip. You could include "-nosound" to mplayer to decrease the bandwidth or increase the video performance.
You can try to use sdl as the video output device, but run mplayer in verbose mode to make sure it does not do any downsampling to keep the 24 bit or 32 bit of color.
Both files that you posted are using lossy compression. Lossy compression will be blocky or also known as pixelated. The blockiness will only get worst when there is too much content. There are two things that video lossy compression use to compress. One is bit rate and the other is quantizer.
The cellfactor video has poor quality because the bitrate is not high enough to handle the content. The content of the cellfactor video is a lot and hard for the DiVx codec to get good compression ratios. Probably xViD will do a better job than DiVx. The cellfactor video is blocky not grainy. The term grainy is the video looks like colorful sand. The macbreak video is corrupted so there is no point to describe the quality.
You can try using the following commands when playing the cellfactor video.
The de video filter of pp includes verticle and horizontal deringing. It actually softens the video.
I suggest looking at the HD movie trailers at a apple.com. Use mplayerplug-in to download it, but manually use mplayer to play the movie trailers. You will have to include the -nosound option because FAAD2 codec will crash mplayer.
If the file is still corrupt, the torrent I'm using to get the file is here.
I'm pretty sure that the file isn't corrupt on the torrent, since it's a popular mac vidcast -- if there were a problem it would have been fixed by the authors.
What I mean corrupted, I mean that the frames break up at the lower half of the video. Probably, it is a problem with the open source H.264 project or it is encyrpted. I assume that it works with the Apple's Quicktime Player.
No, it is not a corrupted ping (png) file. What you see from the PNG image, is what mplayer outputs. I first output to a targa (tga) with mplayer and use Gimp to resize and save the image.
BTW, did you understand what I mean by lossy compression.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.