[FFmpeg-user] Ffmpeg cuts the last 0.05 seconds while conversion

Дмитрий Головинов dimka87 at gmail.com
Mon Oct 31 21:04:09 CET 2011


Subj. See logs:


Dmitrijs-Mac-Pro:bin zvoice$ ./ffmpeg -i sound.alac -acodec flac -ac 2 -ar
44100 record.flac
ffmpeg version N-34207-g9b04f51, Copyright (c) 2000-2011 the FFmpeg
developers
 built on Oct 31 2011 23:27:51 with llvm_gcc 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)
 configuration:
--cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
--as='gas-preprocessor.pl/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc'
--sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
--extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system
--target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386'
--extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile
--disable-armv5te --disable-ffplay --disable-ffserver --disable-ffprobe
--disable-doc
 libavutil    51. 22. 0 / 51. 22. 0
 libavcodec   53. 25. 0 / 53. 25. 0
 libavformat  53. 17. 0 / 53. 17. 0
 libavdevice  53.  4. 0 / 53.  4. 0
 libavfilter   2. 45. 1 /  2. 45. 1
 libswscale    2.  1. 0 /  2.  1. 0
Input #0, caf, from 'sound.alac':
 Duration: *00:00:02.50,* start: 0.000000, bitrate: -2147483 kb/s
   Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, 2 channels, s16,
623 kb/s
File 'record.flac' already exists. Overwrite ? [y/N] y
Output #0, flac, to 'record.flac':
 Metadata:
   encoder         : Lavf53.17.0
   Stream #0:0: Audio: flac, 44100 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
 Stream #0.0 -> #0.0 (alac -> flac)
Press [q] to stop, [?] for help
size=17179869184kB time=00:00:02.50 bitrate=56120885905.7kbits/s
video:0kB audio:190kB global headers:0kB muxing overhead 9023901313.389006%
Dmitrijs-Mac-Pro:bin zvoice$ ffmpeg -i sound.alac
-bash: ffmpeg: command not found
Dmitrijs-Mac-Pro:bin zvoice$ ./ffmpeg -i sound.alac
ffmpeg version N-34207-g9b04f51, Copyright (c) 2000-2011 the FFmpeg
developers
 built on Oct 31 2011 23:27:51 with llvm_gcc 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)
 configuration:
--cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
--as='gas-preprocessor.pl/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc'
--sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
--extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system
--target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386'
--extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile
--disable-armv5te --disable-ffplay --disable-ffserver --disable-ffprobe
--disable-doc
 libavutil    51. 22. 0 / 51. 22. 0
 libavcodec   53. 25. 0 / 53. 25. 0
 libavformat  53. 17. 0 / 53. 17. 0
 libavdevice  53.  4. 0 / 53.  4. 0
 libavfilter   2. 45. 1 /  2. 45. 1
 libswscale    2.  1. 0 /  2.  1. 0
Input #0, caf, from 'sound.alac':
 Duration: 00:00:02.50, start: 0.000000, bitrate: -2147483 kb/s
   Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, 2 channels, s16,
623 kb/s
At least one output file must be specified
Dmitrijs-Mac-Pro:bin zvoice$ ./ffmpeg -i record.flac
ffmpeg version N-34207-g9b04f51, Copyright (c) 2000-2011 the FFmpeg
developers
 built on Oct 31 2011 23:27:51 with llvm_gcc 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)
 configuration:
--cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
--as='gas-preprocessor.pl/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc'
--sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
--extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system
--target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386'
--extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile
--disable-armv5te --disable-ffplay --disable-ffserver --disable-ffprobe
--disable-doc
 libavutil    51. 22. 0 / 51. 22. 0
 libavcodec   53. 25. 0 / 53. 25. 0
 libavformat  53. 17. 0 / 53. 17. 0
 libavdevice  53.  4. 0 / 53.  4. 0
 libavfilter   2. 45. 1 /  2. 45. 1
 libswscale    2.  1. 0 /  2.  1. 0
Input #0, flac, from 'record.flac':
 Metadata:
   ENCODER         : Lavf53.17.0
 Duration: *00:00:02.45,* bitrate: -2147483 kb/s
   Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
At least one output file must be specified

What is wrong with my settings? Why it is reducing transcoded file?


More information about the ffmpeg-user mailing list