Best way to lossless reduce the file size of video in raw format
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.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
Best way to lossless reduce the file size of video in raw format
Here's the info I obtained for the Video. It's 4gb and 1 minute, 55 seconds long created by AmCap in Windows. I'd like to reduce it similar to flac, lossless. What's the best way to go about that?
Code:
bullshark ⮀ Desktop ⮀ ffprobe sdfg.avi ⮂ 20:54:43 ⮂ 2014-09-06
avprobe version 0.8.10-6:0.8.10-0ubuntu0.12.10.1, Copyright (c) 2007-2013 the Libav developers
built on Feb 6 2014 20:56:10 with gcc 4.7.2
[avi @ 0xc4cb20] non-interleaved AVI
Input #0, avi, from 'sdfg.avi':
Duration: 00:01:55.68, start: 0.000000, bitrate: 295624 kb/s
Stream #0.0: Video: rawvideo, bgr24, 1280x1024, 35 tbr, 35 tbn, 35 tbc
bullshark ⮀ Desktop ⮀ bash ⮂ 20:54:49 ⮂ 2014-09-06
287/3953MB 0.43 0.84 0.77 1/437 32534
[32481:32189 0:500] 08:58:08 Sat Sep 06 [bullshark@beastlinux: +2] /media/bullshark/WINDOWS1/Users/Tux/Desktop
(2:500)$ exit
bullshark ⮀ Desktop ⮀ ffprobe sdfg.avi ⮂ 20:58:09 ⮂ 2014-09-06
avprobe version 0.8.10-6:0.8.10-0ubuntu0.12.10.1, Copyright (c) 2007-2013 the Libav developers
built on Feb 6 2014 20:56:10 with gcc 4.7.2
[avi @ 0x143ab20] non-interleaved AVI
Input #0, avi, from 'sdfg.avi':
Duration: 00:01:55.68, start: 0.000000, bitrate: 295624 kb/s
Stream #0.0: Video: rawvideo, bgr24, 1280x1024, 35 tbr, 35 tbn, 35 tbc
bullshark ⮀ Desktop ⮀ file sdfg.avi ⮂ 20:58:15 ⮂ 2014-09-06
sdfg.avi: RIFF (little-endian) data, AVI, 1280 x 1024, >30 fps, video:
bullshark ⮀ Desktop ⮀ mplayer sdfg.avi ⮂ 20:58:20 ⮂ 2014-09-06
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
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 sdfg.avi.
Detected file format: AVI format (libavformat)
[avi @ 0x7f528b291880]non-interleaved AVI
[lavf] stream 0: video (rawvideo), -vid 0
VIDEO: [RGB] 1280x1024 24bpp 35.000 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in .
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x7f528af9b0e0]using unscaled bgr24 -> yuv420p special converter
VO: [xv] 1280x1024 => 1280x1024 Planar YV12
Selected video codec: [rawbgr24] vfm: raw (RAW BGR24)
==========================================================================
Audio: no sound
Starting playback...
V: 4.6 0/ 0 0% 3% 0.0% 0 0
Exiting... (Quit)
bullshark ⮀ Desktop ⮀ du -sh sdfg.avi ⮂ 20:58:40 ⮂ 2014-09-06
4.0G sdfg.avi
bullshark ⮀ Desktop ⮀ ⮂ 20:59:19 ⮂ 2014-09-06
However, I don't think any of them will reduce the size of the video significantly. I would just use x264 in high quality mode, but there is a lossless mode too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.