[FFmpeg-user] Video with copyright
Massimo Battistel
battistel at gmail.com
Wed Jun 4 12:56:37 CEST 2014
>
>
> > I have copyright protected video which gives me some
> > issues with ffmpeg.
>
> Does the copyright forbid you to post your failing command
> line together with the complete, uncut console output and
> the explanation what goes wrong?
>
>
Absolutely not!
Let's start with a working command line (ffmpeg uses 14MB to process file):
ffmpeg -i sample.mp4 -vn -acodec pcm_s16le -ac 2 -f asf - > nul
No problems with this one, but if I add "-async 1000" like the following:
ffmpeg -i sample.mp4 -vn -acodec pcm_s16le -ac 2 -async 1000 -f asf - > nul
I got DTS errors and ffmpeg memory grows up to 1GB.
This is the output:
ffmpeg version N-63176-g1fb4685 Copyright (c) 2000-2014 the FFmpeg
developers
built on May 15 2014 22:05:35 with gcc 4.8.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265
--enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 52. 83.100 / 52. 83.100
libavcodec 55. 62.100 / 55. 62.100
libavformat 55. 38.100 / 55. 38.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\video\SUPERSEA_nr2_maggio
2013.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2013-04-30 16:55:56
Duration: 00:26:18.69, start: 0.000000, bitrate: 5318 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709), 1280x720 [SAR 1:1 DAR 16:9], 4995 kb/s, 25 fps, 25 tbr, 25k tbn, 50
tbc (default)
Metadata:
creation_time : 2013-04-30 16:55:56
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 317 kb/s (default)
Metadata:
creation_time : 2013-04-30 16:55:56
handler_name : #Mainconcept MP4 Sound Media Handler
-async is forwarded to lavfi similarly to -af
aresample=async=1000:min_hard_comp=0.100000:first_pts=0.
Output #0, asf, to 'pipe:':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
WM/EncodingSettings: Lavf55.38.100
Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2013-04-30 16:55:56
handler_name : #Mainconcept MP4 Sound Media Handler
Stream mapping:
Stream #0:1 -> #0:0 (aac -> pcm_s16le)
Press [q] to stop, [?] for help
size= 29185kB time=00:01:39.62 bitrate=2399.8kbits/s
size= 58323kB time=00:03:19.08 bitrate=2399.9kbits/s
size= 87029kB time=00:04:57.06 bitrate=2399.9kbits/s
size= 115998kB time=00:06:35.94 bitrate=2399.9kbits/s
size= 151835kB time=00:08:38.27 bitrate=2400.0kbits/s
size= 184060kB time=00:10:28.26 bitrate=2400.0kbits/s
[asf @ 02fae020] Non-monotonous DTS in output stream 0:0; previous: 653931,
current: 0; changing to 653932. This may result in incorrect timestamps in
the output file.
[asf @ 02fae020] Non-monotonous DTS in output stream 0:0; previous: 653932,
current: 21; changing to 653933. This may result in incorrect timestamps in
the output file.
[asf @ 02fae020] Non-monotonous DTS in output stream 0:0; previous: 653933,
current: 43; changing to 653934. This may result in incorrect timestamps in
the output file.
size= 315229kB time=00:10:54.03 bitrate=3948.3kbits/s
size= 336935kB time=00:12:08.12 bitrate=3790.8kbits/s
size= 357910kB time=00:13:19.72 bitrate=3666.3kbits/s
size= 379310kB time=00:14:32.76 bitrate=3560.3kbits/s
size= 400610kB time=00:15:45.47 bitrate=3471.1kbits/s
size= 423685kB time=00:17:04.23 bitrate=3388.7kbits/s
size= 447435kB time=00:18:25.29 bitrate=3316.2kbits/s
size= 471598kB time=00:19:47.77 bitrate=3252.6kbits/s
size= 496841kB time=00:21:13.93 bitrate=3194.9kbits/s
size= 519529kB time=00:22:31.37 bitrate=3149.4kbits/s
size= 542091kB time=00:23:48.39 bitrate=3109.0kbits/s
size= 566866kB time=00:25:12.95 bitrate=3069.3kbits/s
size= 586126kB time=00:26:18.68 bitrate=3041.5kbits/s video:0kB
audio:418620kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 40.013893%
Original file does not seem to have DTS discontinuities, it looks
aresample/async audio filter issue.
thanks,
MB
More information about the ffmpeg-user
mailing list