LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Best way to lossless reduce the file size of video in raw format (https://www.linuxquestions.org/questions/linux-newbie-8/best-way-to-lossless-reduce-the-file-size-of-video-in-raw-format-4175517638/)

fakie_flip 09-06-2014 09:02 PM

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


metaschima 09-07-2014 09:56 AM

Here is a list of lossless video codecs:
https://en.wikipedia.org/wiki/List_o..._compression_2

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.

jefro 09-07-2014 02:22 PM

4G and only 2 MINUTES long????


All times are GMT -5. The time now is 09:57 PM.