Friday 6 September 2013

convert large mov file from iphone to avi (libx264) for storage

use exiftool to inspect EXIF info of the jpe and mov file
exif


----------------original:::------------------------------------------
ExifTool Version Number         : 8.60
File Name                       : IMG_0014.MOV
Directory                       : .
File Size                       : 19 MB
File Modification Date/Time     : 2013:07:19 12:03:22-10:00
File Permissions                : rw-r--r--
File Type                       : MOV
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 0.0.0
Compatible Brands               : qt
Movie Data Size                 : 19979709
Movie Header Version            : 0
Modify Date                     : 2013:07:19 22:03:21
Time Scale                      : 600
Duration                        : 7.27 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2013:07:19 22:03:13
Track Modify Date               : 2013:07:19 22:03:21
Track ID                        : 1
Track Duration                  : 7.27 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 1920
Image Height                    : 1080
Graphics Mode                   : ditherCopy
Op Color                        : 32768 32768 32768
Compressor ID                   : avc1
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : H.264
Bit Depth                       : 24
Video Frame Rate                : 27.011
Camera Identifier               : Back
Frame Readout Time              : 28512 microseconds
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2013:07:19 22:03:13
Media Modify Date               : 2013:07:19 22:03:21
Media Time Scale                : 44100
Media Duration                  : 7.31 s
Media Language Code             : und
Balance                         : 0
Handler Class                   : Data Handler
Handler Vendor ID               : Apple
Handler Description             : Core Media Data Handler
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Audio Format                    : chan
Model                           : iPhone 4S
Software Version                : 6.1.3
Create Date                     : 2013:07:20 08:03:13+10:00
Make                            : Apple
Handler Type                    : Metadata Tags
Make (und-AU)                   : Apple
Creation Date (und-AU)          : 2013:07:20 08:03:13+10:00
Software (und-AU)               : 6.1.3
Model (und-AU)                  : iPhone 4S
Avg Bitrate                     : 22 Mbps
Image Size                      : 1920x1080
Rotation                        : 90

-------------------------------------------------------------------------

ffmpeg -i IMG_0014.MOV -vcodec libx264 -acodec copy IMG.avi

ExifTool Version Number         : 8.60
File Name                       : IMG.avi
Directory                       : .
File Size                       : 7.3 MB
File Modification Date/Time     : 2013:09:06 22:12:03-10:00
File Permissions                : rw-r--r--
File Type                       : AVI
MIME Type                       : video/x-msvideo
Frame Rate                      : 24
Max Data Rate                   : 7.748 kB/s
Frame Count                     : 176
Stream Count                    : 2
Stream Type                     : Video
Video Codec                     : H264
Video Frame Rate                : 24
Video Frame Count               : 176
Quality                         : Default
Sample Size                     : Variable
Image Width                     : 1920
Image Height                    : 1080
Planes                          : 1
Bit Depth                       : 24
Compression                     : H264
Image Length                    : 6220800
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Audio Codec                     : .
Audio Sample Rate               : 43.07
Audio Sample Count              : 315
Encoding                        : AAC
Num Channels                    : 1
Sample Rate                     : 44100
Avg Bytes Per Sec               : 7934
Bits Per Sample                 : 16
Date Created                    : 2013:07:20T08:03:13+1000
Software                        : Lavf54.29.104
Duration                        : 7.33 s
Image Size                      : 1920x1080


------------------------------------------------------------------------
ffmpeg -i IMG_0014.MOV -vcodec libx264 -acodec copy -metadata "tag=value" IMG_tag_value-.avi
ExifTool Version Number         : 8.60
File Name                       : IMG_tag_value.avi
Directory                       : .
File Size                       : 7.3 MB
File Modification Date/Time     : 2013:09:06 22:17:20-10:00
File Permissions                : rw-r--r--
File Type                       : AVI
MIME Type                       : video/x-msvideo
Frame Rate                      : 24
Max Data Rate                   : 7.748 kB/s
Frame Count                     : 176
Stream Count                    : 2
Stream Type                     : Video
Video Codec                     : H264
Video Frame Rate                : 24
Video Frame Count               : 176
Quality                         : Default
Sample Size                     : Variable
Image Width                     : 1920
Image Height                    : 1080
Planes                          : 1
Bit Depth                       : 24
Compression                     : H264
Image Length                    : 6220800
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Audio Codec                     : .
Audio Sample Rate               : 43.07
Audio Sample Count              : 315
Encoding                        : AAC
Num Channels                    : 1
Sample Rate                     : 44100
Avg Bytes Per Sec               : 7934
Bits Per Sample                 : 16
Date Created                    : 2013:07:20T08:03:13+1000
Software                        : Lavf54.29.104
Duration                        : 7.33 s
Image Size                      : 1920x1080


this is not what i want
------------------------------------------------------------------------
ffmpeg -i IMG_0014.MOV -vcodec libx264 -acodec copy -map_metadata 0  IMG_map_matadata_0.avi

ExifTool Version Number         : 8.60
File Name                       : IMG_map_matadata_0.avi
Directory                       : .
File Size                       : 7.3 MB
File Modification Date/Time     : 2013:09:06 22:22:04-10:00
File Permissions                : rw-r--r--
File Type                       : AVI
MIME Type                       : video/x-msvideo
Frame Rate                      : 24
Max Data Rate                   : 7.748 kB/s
Frame Count                     : 176
Stream Count                    : 2
Stream Type                     : Video
Video Codec                     : H264
Video Frame Rate                : 24
Video Frame Count               : 176
Quality                         : Default
Sample Size                     : Variable
Image Width                     : 1920
Image Height                    : 1080
Planes                          : 1
Bit Depth                       : 24
Compression                     : H264
Image Length                    : 6220800
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Audio Codec                     : .
Audio Sample Rate               : 43.07
Audio Sample Count              : 315
Encoding                        : AAC
Num Channels                    : 1
Sample Rate                     : 44100
Avg Bytes Per Sec               : 7934
Bits Per Sample                 : 16
Date Created                    : 2013:07:20T08:03:13+1000
Software                        : Lavf54.29.104
Duration                        : 7.33 s
Image Size                      : 1920x1080

--------------------------------------------------------------------
ffmpeg -i IMG_0014.MOV -vcodec libx264 -acodec copy  IMG_no.avi

ExifTool Version Number         : 8.60
File Name                       : IMG_no.avi
Directory                       : .
File Size                       : 7.3 MB
File Modification Date/Time     : 2013:09:06 22:46:20-10:00
File Permissions                : rw-r--r--
File Type                       : AVI
MIME Type                       : video/x-msvideo
Frame Rate                      : 24
Max Data Rate                   : 7.748 kB/s
Frame Count                     : 176
Stream Count                    : 2
Stream Type                     : Video
Video Codec                     : H264
Video Frame Rate                : 24
Video Frame Count               : 176
Quality                         : Default
Sample Size                     : Variable
Image Width                     : 1920
Image Height                    : 1080
Planes                          : 1
Bit Depth                       : 24
Compression                     : H264
Image Length                    : 6220800
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Audio Codec                     : .
Audio Sample Rate               : 43.07
Audio Sample Count              : 315
Encoding                        : AAC
Num Channels                    : 1
Sample Rate                     : 44100
Avg Bytes Per Sec               : 7934
Bits Per Sample                 : 16
Date Created                    : 2013:07:20T08:03:13+1000
Software                        : Lavf54.29.104
Duration                        : 7.33 s
Image Size                      : 1920x1080

No comments:

Post a Comment