On the state of Advanced Video Coding High Definition (AVCHD) on Fedora 19 & 20

Experience

  • Doesn’t “just work.”
  • Requires some processing; and recent versions.

VLC

PITIVI

ffmpeg -i your_clip.MTS -vcodec copy -acodec copy -sn your_clip.mp4

HTML5 <Video>

Filesystem

The storage is formatted with the exfat filesystem, which is available, but not standard.

yum install -y fuse-exfat exfat-utils
$ rpm -q fuse-exfat exfat-utils
fuse-exfat-1.0.1-1.fc20.x86_64
exfat-utils-1.0.1-1.fc20.x86_64

The Standard

Actualities

Via: backfill

ffmpeg settings for brightening a video (during a transcoding step)

  1. Jason Woodrow; Adjusting video contrast, brightness, saturation, and color balance with FFMPEG; In His Blog; 2013-11-22.
  2. Some Individual using the self-asserted identity token Slava; [Is it] Possible to change the brightness in the conversion process; In FFmpeg Support Forum; 2012-09-02.

Via: backfill

Method #1

declare gamma=1
declare contrast=1.85
declare brightness=0.5
declare saturation=1.5
declare red=1
declare green=1
declare blue=1
declare weight=1

declare recode="mp=eq2=${gamma}:${contrast}:${brightness}:${saturation}:${red}:${green}:${blue}:${weight}"

ffmpeg -y -i 00000.MTS -c:v libx264 -c:a copy -vf "$recode" t.00000.mp4
ffmpeg -y -i 00000.MTS -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 -s 640x360 -vf "$recode" t.00000.ogv
ffmpeg -y -i 00000.MTS -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000  -f webm -g 30 -s 640x360 -vf "$recode" t.00000.webm

References

Concept

-vf mp=eq2=gamma:contrast:brightness:saturation:rg:gg:bg:weight

  • initial gamma value; default: 1.0
  • initial contrast, where negative values result in a negative image; default: 1.0
  • initial brightness; default: 0.0
  • initial saturation; default: 1.0
  • gamma value for the red component; default: 1.0
  • gamma value for the green component; default: 1.0
  • gamma value for the blue component; default: 1.0
  • weight to correct for high gamma; default 1.0

Method #2

Reference

Concept

ffmpeg Settings for HTML5 codecs (h264/mp4, theora/ogg, vp8/webm)

John Dyer; ffmpeg Settings for HTML5 codecs (h264/mp4, theora/ogg, vp8/webm); In His Blog; 2011-01-05.

Mentions

#!/bin/sh
# mp4  (H.264 / ACC)
 ffmpeg -i "$1" -b 1500k -vcodec libx264 -vpre slow -vpre baseline -g 30 -s 640x360 $1.mp4
# webm (VP8 / Vorbis)
ffmpeg -i "$1" -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 -s 640x360 "$1.webm"
# ogv  (Theora / Vorbis)
ffmpeg -i "$1" -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 -s 640x360 "$1.ogv"
# jpeg (screenshot at 10 seconds)
ffmpeg -i "$1" -ss 00:10 -vframes 1 -r 1 -s 640x360 -f image2 "$1.jpg"

Via: backfill.