[FFmpeg-user] "-acodec copy -vcodec copy" output smaller than original
Olexandr Melnyk
omelnyk at gmail.com
Sat Sep 17 18:31:31 EEST 2016
> On Fri, Sep 16, 2016 at 20:29:20 EEST, Moritz Barsnick wrote:
> Please do show us the complete, uncut console output of your command.
Thanks for all the answers!
Carl and Bertram were spot on. The number of zeroed bytes in the end
of the source file roughly matches the difference in file size -- also
on another sample file I checked.
The number of streams checks out. Could you guys have a look at the
console output to see if there might be anything else important I
might be missing?
smurf:Desktop kynlem$ ffmpeg -i Svalbard2016_g04033.mp4 -acodec copy
-vcodec copy -map 0 output.mp4
ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.4
--enable-shared --enable-pthreads --enable-gpl --enable-version3
--enable-hardcoded-tables --enable-avresample --cc=clang
--host-cflags= --host-ldflags= --enable-opencl --enable-libx264
--enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass
--enable-ffplay --enable-libspeex --enable-libschroedinger
--enable-libfdk-aac --enable-libopus --enable-frei0r
--enable-libopenjpeg --disable-decoder=jpeg2000
--extra-cflags=-I/usr/local/Cellar/openjpeg/1.5.2_1/include/openjpeg-1.5
--enable-nonfree --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f974a00d800] unsupported color_parameter_type aclc
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Svalbard2016_g04033.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 2016-07-13 18:03:54
Duration: 00:00:34.83, start: 0.000000, bitrate: 19279 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661),
yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], 17992 kb/s, 29.97 fps,
29.97 tbr, 240k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2016-07-13 18:03:54
handler_name : Ambarella AVC
encoder : Ambarella AVC encoder
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2016-07-13 18:03:54
handler_name : Ambarella AAC
[mp4 @ 0x7f974a011600] Codec for stream 0 does not use global headers
but container format requires global headers
[mp4 @ 0x7f974a011600] Codec for stream 1 does not use global headers
but container format requires global headers
Output #0, mp4, to 'output.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
encoder : Lavf56.40.101
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuvj420p,
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 17992 kb/s, 29.97 fps, 29.97
tbr, 240k tbn, 240k tbc (default)
Metadata:
creation_time : 2016-07-13 18:03:54
handler_name : Ambarella AVC
encoder : Ambarella AVC encoder
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, 128 kb/s (default)
Metadata:
creation_time : 2016-07-13 18:03:54
handler_name : Ambarella AAC
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 366 fps=0.0 q=-1.0 size= 27151kB time=00:00:12.22
bitrate=18195.6kbitsframe= 637 fps=630 q=-1.0 size= 47138kB
time=00:00:21.26 bitrate=18155.5kbitsframe= 917 fps=600 q=-1.0 size=
67593kB time=00:00:30.57 bitrate=18112.8kbitsframe= 1044 fps=585
q=-1.0 Lsize= 77086kB time=00:00:34.81 bitrate=18138.0kbits/s
video:76511kB audio:544kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.040283%
And as for metadata, I ran diff on the metadata of the source and
output files, and here's what I got:
smurf:Desktop kynlem$ exiftool -G Svalbard2016_g04033.mp4 >
Svalbard2016_g04033.exif
smurf:Desktop kynlem$ exiftool -G output.mp4 > output.exif
smurf:Desktop kynlem$ diff Svalbard2016_g04033.exif output.exif
2c2
< [File] File Name : Svalbard2016_g04033.mp4
---
> [File] File Name : output.mp4
4,8c4,8
< [File] File Size : 80 MB
< [File] File Modification Date/Time : 2016:09:17 15:27:01+00:00
< [File] File Access Date/Time : 2016:09:17 15:27:43+00:00
< [File] File Inode Change Date/Time : 2016:09:17 15:27:01+00:00
< [File] File Permissions : rwxrwxrwx
---
> [File] File Size : 75 MB
> [File] File Modification Date/Time : 2016:09:17 14:15:18+00:00
> [File] File Access Date/Time : 2016:09:17 15:17:29+00:00
> [File] File Inode Change Date/Time : 2016:09:17 14:15:18+00:00
> [File] File Permissions : rw-r--r--
12,14c12,16
< [QuickTime] Major Brand : MP4 Base w/ AVC
ext [ISO 14496-12:2005]
< [QuickTime] Minor Version : 0.0.0
< [QuickTime] Compatible Brands : avc1, isom
---
> [QuickTime] Major Brand : MP4 Base Media v1 [IS0 14496-12:2003]
> [QuickTime] Minor Version : 0.2.0
> [QuickTime] Compatible Brands : isom, iso2, avc1, mp41
> [QuickTime] Movie Data Size : 78904776
> [QuickTime] Movie Data Offset : 48
16,18c18,20
< [QuickTime] Create Date : 2016:07:13 18:03:54
< [QuickTime] Modify Date : 2016:07:13 18:03:54
< [QuickTime] Time Scale : 240000
---
> [QuickTime] Create Date : 0000:00:00 00:00:00
> [QuickTime] Modify Date : 0000:00:00 00:00:00
> [QuickTime] Time Scale : 1000
30,31c32,33
< [QuickTime] Track Create Date : 2016:07:13 18:03:54
< [QuickTime] Track Modify Date : 2016:07:13 18:03:54
---
> [QuickTime] Track Create Date : 0000:00:00 00:00:00
> [QuickTime] Track Modify Date : 0000:00:00 00:00:00
45d46
< [QuickTime] Compressor Name : Ambarella AVC encoder
47,48d47
< [QuickTime] Color Representation : aclc 1 1 1
< [QuickTime] Gamma : 2.2
52,53c51,52
< [QuickTime] Media Create Date : 2016:07:13 18:03:54
< [QuickTime] Media Modify Date : 2016:07:13 18:03:54
---
> [QuickTime] Media Create Date : 0000:00:00 00:00:00
> [QuickTime] Media Modify Date : 0000:00:00 00:00:00
56,57c55,56
< [QuickTime] Handler Type : Audio Track
< [QuickTime] Handler Description : Ambarella AAC
---
> [QuickTime] Media Language Code : eng
> [QuickTime] Handler Description : SoundHandler
63,64c62,64
< [QuickTime] Movie Data Size : 78906824
< [QuickTime] Movie Data Offset : 65536
---
> [QuickTime] Handler Type : Metadata
> [QuickTime] Handler Vendor ID : Apple
> [QuickTime] Encoder : Lavf56.40.101
The timestamps I'm fixing with a script of mine. Anything else I
should consider taking care of?
--
Sincerely yours,
Olexandr Melnyk
http://omelnyk.net/
More information about the ffmpeg-user
mailing list