LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-06-2014, 09:02 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
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
 
Old 09-07-2014, 09:56 AM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 09-07-2014, 02:22 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
4G and only 2 MINUTES long????
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reduce executable file size maha Linux - General 5 08-30-2013 02:29 AM
record audio from youtube video with EQ to Lossless format? balsam Linux - Software 7 01-01-2013 03:37 PM
How to reduce the size of a file? abhinav4 Linux - Newbie 12 11-02-2010 05:48 AM
How to reduce video file size? leosgb Linux - General 9 06-15-2007 12:43 PM
any ideas to reduce log file size or make log file size managed? George2 Programming 2 08-13-2006 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration