Answers.Body: <p>My earlier answer still holds in general. Additional advice I can provide is to try higher CRF values and use the veryslow preset.</p>
  
  <pre><code>ffmpeg -i input.mov -c:v libx264 -crf 23 -preset veryslow -c:a copy -c:d copy -map 0 compressed.mov
  </code></pre>
  
  <p>You can also mimic a constrained quality mode by setting</p>
  
  <pre><code>ffmpeg -i input.mov -c:v libx264 -crf 21 -preset veryslow -maxrate 5M -bufsize 10M -c:a copy -c:d copy -map 0 compressed.mov
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-16T11:25:21.273Z
Answers.Text: It took exactly 8 hours to process the 12 minute sample. The result is 940 MB (that would result in 4,7 GB a day, processed in 40 hours). Thank you, but I'm really looking for something I could do every day, and that would result in files of a size that I could keep in the long term!
Answers.UserDisplayName: admirabilis
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-16T11:29:57.917Z
Answers.Text: Change preset to `medium`. Files will be somewhat bigger but encode faster. You can try other presets listed [here](https://trac.ffmpeg.org/wiki/Encode/H.264).
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-15T15:39:43.747Z
Answers.LastActivityDate: 2016-02-15T15:39:43.747Z
Answers.UserDisplayName: Gyan
Answers.Body: <p>Why don't you transcode the footage to h265?
  Quote from <a href="https://trac.ffmpeg.org/wiki/Encode/H.265" rel="nofollow">https://trac.ffmpeg.org/wiki/Encode/H.265</a>:
  "H.265 (also known as HEVC) offers 50-75% more compression efficiency compared to H.264 video, while retaining the same visual quality."</p>
  
  <p>Alternatively you could consider transcoding to VP9 codec which seems to offer a better compromise between file size and compression times. Both codecs should deliver same quality image at lower file sizes than h264.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-16T16:44:29.387Z
Answers.Text: The quoted comparison is between reference encoders. x265 wasn't as mature as x264, last time I checked. See last two graphs in conclusion section [here](http://compression.ru/video/codec_comparison/hevc_2015/): looks like x265 delivers same quality at 80-110% bitrate as x264.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-16T17:04:34.590Z
Answers.Text: while i would understand objections in terms of CPU time necessary for compression (which seems to be the downside of x265 right now), there are plenty of "practical" tests of people saying you will achieve the same visual quality at 60-70% file size. so what exactly is it you are trying to say?
Answers.UserDisplayName: Hans Meiser
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-16T17:24:02.800Z
Answers.Text: That the quote is not representative of real-life results. Your own reference to "practical" tests contradicts it.  And the OP was hoping for Youtube-like sizes i.e. 300 MB for 12 minutes and not too much encoding time.  If you read her comment below my answer, x264 crf encoding produced 940MB files and that was with veryslow preset and thus took 8 hours. For x265 to produce 300MB files that look 'pretty sharp' will take comparable amount of time, if not much more. She wanted a solution that could be used daily.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-16T16:16:05.270Z
Answers.LastActivityDate: 2016-03-16T17:20:15.753Z
Answers.LastEditDate: 2016-03-16T17:20:15.753Z
Answers.UserDisplayName: Hans Meiser
Body: <p>My camcorder produces huge MOV files, and I use it for about 1 hour every day, which gives me more than 7 GB of data per day (around 128 MB per minute of recording). Here is the codec information given by <code>ffmpeg -i</code> for a sample 12 minute clip:</p>
  
  <pre><code>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video.MOV':
    Metadata:
      major_brand     : qt  
      minor_version   : 0
      compatible_brands: qt  
      creation_time   : 2013-02-05 20:12:47
      original_format : NVT-IM
      original_format-eng: NVT-IM
      comment         : CarDV-TURNKEY
      comment-eng     : CarDV-TURNKEY
    Duration: 00:12:37.00, start: 0.000000, bitrate: 15935 kb/s
      Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 14745 kb/s, 30 fps, 30 tbr, 30k tbn, 60k tbc (default)
      Metadata:
        creation_time   : 2016-02-05 20:12:47
        handler_name    : DataHandler
        encoder         : h264
      Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 32000 Hz, 1 channels, s16, 512 kb/s (default)
      Metadata:
        creation_time   : 2015-02-05 20:12:47
        handler_name    : DataHandler</code></pre>
  
  <p>These are files I would like to keep, and in a decent quality. I will not have storage enough to keep them all in the long term, and my country is one of the most expensive places (if not the most) to purchase or import hardware components, so buying new hard drives is really out of the question.</p>
  
  <p>I have tried recompressing this 12 minute clip using different settings on <strong>Handbrake</strong> (including of course, the Normal and High profiles), but the resulting file is generally the same size, if not bigger (around 1.5 GB).</p>
  
  <p>I have searched on YouTube for HD videos, and have downloaded a few videos just to check their size, and I got <strong>1080p 12 minute clips for around 200-300 MB</strong> in size. They may have reduced some quality, but in my eyes, 1080p videos on YouTube generally look pretty sharp. If possible, I would like similar results!</p>
  
  <p>While searching here on Video Production, I have found <a href="https://video.stackexchange.com/a/17584">this answer</a> which says that "cameras have to compress on-the-fly, so they use constrained baseline mode (...) if you'd like to recover some space, you can use ffmpeg". I have tried running that particular command, but still I am getting huge files.</p>
  
  <p>I am on Linux, but could maybe run Windows in a virtual machine too.</p>
  
Tags: <encoding><compression>
Title: Recompressing many huge MOV files
UserDisplayName: admirabilis
ThreadText: # Recompressing many huge MOV files
  
  (Asked by: username_0 on 2016-02-15)
  
  My camcorder produces huge MOV files, and I use it for about 1 hour every day, which gives me more than 7 GB of data per day (around 128 MB per minute of recording). Here is the codec information given by `ffmpeg -i` for a sample 12 minute clip:
  
  ```
  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video.MOV':
    Metadata:
      major_brand     : qt  
      minor_version   : 0
      compatible_brands: qt  
      creation_time   : 2013-02-05 20:12:47
      original_format : NVT-IM
      original_format-eng: NVT-IM
      comment         : CarDV-TURNKEY
      comment-eng     : CarDV-TURNKEY
    Duration: 00:12:37.00, start: 0.000000, bitrate: 15935 kb/s
      Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 14745 kb/s, 30 fps, 30 tbr, 30k tbn, 60k tbc (default)
      Metadata:
        creation_time   : 2016-02-05 20:12:47
        handler_name    : DataHandler
        encoder         : h264
      Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 32000 Hz, 1 channels, s16, 512 kb/s (default)
      Metadata:
        creation_time   : 2015-02-05 20:12:47
        handler_name    : DataHandler
  ```
  
  These are files I would like to keep, and in a decent quality. I will not have storage enough to keep them all in the long term, and my country is one of the most expensive places (if not the most) to purchase or import hardware components, so buying new hard drives is really out of the question.
  
  I have tried recompressing this 12 minute clip using different settings on **Handbrake** (including of course, the Normal and High profiles), but the resulting file is generally the same size, if not bigger (around 1.5 GB).
  
  I have searched on YouTube for HD videos, and have downloaded a few videos just to check their size, and I got **1080p 12 minute clips for around 200-300 MB** in size. They may have reduced some quality, but in my eyes, 1080p videos on YouTube generally look pretty sharp. If possible, I would like similar results!
  
  While searching here on Video Production, I have found [this answer](https://video.stackexchange.com/a/17584) which says that "cameras have to compress on-the-fly, so they use constrained baseline mode (...) if you'd like to recover some space, you can use ffmpeg". I have tried running that particular command, but still I am getting huge files.
  
  I am on Linux, but could maybe run Windows in a virtual machine too.
  
  **Tags:** encoding, compression
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-02-15. Score: 1
  
  My earlier answer still holds in general. Additional advice I can provide is to try higher CRF values and use the veryslow preset.
  
  ```
  ffmpeg -i input.mov -c:v libx264 -crf 23 -preset veryslow -c:a copy -c:d copy -map 0 compressed.mov
  
  ```
  
  You can also mimic a constrained quality mode by setting
  
  ```
  ffmpeg -i input.mov -c:v libx264 -crf 21 -preset veryslow -maxrate 5M -bufsize 10M -c:a copy -c:d copy -map 0 compressed.mov
  
  ```
  
  > **Comments:**
  > **username_0**: It took exactly 8 hours to process the 12 minute sample. The result is 940 MB (that would result in 4,7 GB a day, processed in 40 hours). Thank you, but I'm really looking for something I could do every day, and that would result in files of a size that I could keep in the long term!  
  > **username_1**: Change preset to `medium`. Files will be somewhat bigger but encode faster. You can try other presets listed [here](https://trac.ffmpeg.org/wiki/Encode/H.264).  
  
  ---
  
  ### Answer by username_2 on 2016-03-16. Score: -1
  
  Why don't you transcode the footage to h265?
  Quote from <https://trac.ffmpeg.org/wiki/Encode/H.265>:
  "H.265 (also known as HEVC) offers 50-75% more compression efficiency compared to H.264 video, while retaining the same visual quality."
  
  Alternatively you could consider transcoding to VP9 codec which seems to offer a better compromise between file size and compression times. Both codecs should deliver same quality image at lower file sizes than h264.
  
  > **Comments:**
  > **username_1**: The quoted comparison is between reference encoders. x265 wasn't as mature as x264, last time I checked. See last two graphs in conclusion section [here](http://compression.ru/video/codec_comparison/hevc_2015/): looks like x265 delivers same quality at 80-110% bitrate as x264.  
  > **username_2**: while i would understand objections in terms of CPU time necessary for compression (which seems to be the downside of x265 right now), there are plenty of "practical" tests of people saying you will achieve the same visual quality at 60-70% file size. so what exactly is it you are trying to say?  
  > **username_1**: That the quote is not representative of real-life results. Your own reference to "practical" tests contradicts it.  And the OP was hoping for Youtube-like sizes i.e. 300 MB for 12 minutes and not too much encoding time.  If you read her comment below my answer, x264 crf encoding produced 940MB files and that was with veryslow preset and thus took 8 hours. For x265 to produce 300MB files that look 'pretty sharp' will take comparable amount of time, if not much more. She wanted a solution that could be used daily.  
  
  ---
  
  