[FFmpeg-user] Get a tearing noise by using filter asyncts
Frank Häfemeier
ffmpeg at frank.haefemeier.eu
Sun Jan 13 21:56:16 CET 2013
Hi,
I update to the GIT version N-48785-g2ea3f37 and start to convert some
TS files (h264, ac3) to mp4 using for the audio stream
'-filter:a:0 asyncts=first_pts=0 -ac:1 2 -b:a:0 256000' to convert from
ac3 to aac (see the full command output below).
The created output file has a short tearing noise if I start to play it.
The audio itself is in rest of the video ok. If I delete the filter the
noise is gone, but in some cases the audio is out of sync (the reason
for the filter;-)).
Using the same parameter the result was ok in previous versions. The
last update was to GIT N-46873-ga6f4c41.
What could be the reason?
So 13. Jan 21:38:53 CET 2013 cat 00000_fixed.ts
| /home/frank/software/test/bin/ffmpeg -benchmark -y -i - -map 0:0
-preset slow -tune psnr -crf 18 -map 0:3 -filter:a:0
volume=2.037,asyncts=first_pts=0 -ac:1 2 -b:a:0 256000 -metadata:s:a:0
language=deu -map 0:3 -metadata:s:a:1 language=deu -codec:a:1 ac3 -b:a:1
256000 -filter:a:1 volume=2.037,asyncts=first_pts=0 -map 0:2
-filter:a:2 volume=1.863,asyncts=first_pts=0 -ac:3 2 -b:a:2 256000
-metadata:s:a:2
language=fra /srv/medienserver/video/Documentation/WildesAlaska/04-DerArktischeOzean.mp4
ffmpeg version N-48785-g2ea3f37 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 13 2013 03:36:00 with gcc 4.7.2 (GCC) 20120921 (Red Hat
4.7.2-2)
configuration: --prefix=/home/frank/software/test --enable-libdc1394
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid --enable-avresample --enable-openssl
--enable-gnutls --enable-libfaac --enable-libpulse --enable-x11grab
--enable-avfilter --enable-libass --enable-libmodplug --enable-postproc
--enable-pthreads --enable-gpl --enable-nonfree --enable-shared
--extra-cflags=-I/home/frank/software/test/include
--extra-ldflags=-L/home/frank/software/test/lib
libavutil 52. 14.100 / 52. 14.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.107 / 54. 59.107
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[h264 @ 0x21eeec0] mmco: unref short failure
Last message repeated 2 times
[mpegts @ 0x21eda40] Stream #4: not enough frames to estimate rate;
consider increasing probesize
[mpegts @ 0x21eda40] Stream #5: not enough frames to estimate rate;
consider increasing probesize
[mpegts @ 0x21eda40] Estimating duration from bitrate, this may be
inaccurate
Input #0, mpegts, from 'pipe:':
Duration: N/A, start: 5833.185989, bitrate: 768 kb/s
Program 17113
Stream #0:0[0x23d]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0:1[0x23e](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 256 kb/s
Stream #0:2[0x23f](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 256 kb/s
Stream #0:3[0x240](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000
Hz, stereo, fltp, 256 kb/s
Stream #0:4[0x241](fra): Subtitle: dvb_subtitle ([6][0][0][0] /
0x0006) (hearing impaired)
Stream #0:5[0x6a5](deu): Subtitle: dvb_subtitle ([6][0][0][0] /
0x0006) (hearing impaired)
Stream #0:6[0x242](deu): Subtitle: dvb_teletext ([6][0][0][0] /
0x0006)
[libx264 @ 0x2694140] using SAR=1/1
[libx264 @ 0x2694140] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX
[libx264 @ 0x2694140] profile High, level 3.2
[libx264 @ 0x2694140] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html -
options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8
psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18
lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf
mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:0.00
Output #0, mp4, to
'/srv/medienserver/video/Documentation/WildesAlaska/04-DerArktischeOzean.mp4':
Metadata:
encoder : Lavf54.59.107
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], q=-1--1, 12800 tbn, 50 tbc
Stream #0:1(deu): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, s16, 256 kb/s
Stream #0:2(deu): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz,
stereo, fltp, 256 kb/s
Stream #0:3(fra): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, s16, 256 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:3 -> #0:1 (ac3 -> libfaac)
Stream #0:3 -> #0:2 (ac3 -> ac3)
Stream #0:2 -> #0:3 (mp2 -> libfaac)
[h264 @ 0x4a8a340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 0x4cf86a0] mmco: unref short failure
^Cframe= 6380 fps= 35 q=-1.0 Lsize= 71751kB time=00:02:07.56
bitrate=4607.9kbits/s dup=19 drop=0
video:62463kB audio:9075kB subtitle:0 global headers:0kB muxing overhead
0.296498%
[libx264 @ 0x2694140] frame I:53 Avg QP:19.33 size: 69633
[libx264 @ 0x2694140] frame P:1733 Avg QP:21.93 size: 24217
[libx264 @ 0x2694140] frame B:4594 Avg QP:25.33 size: 3984
[libx264 @ 0x2694140] consecutive B-frames: 2.6% 2.6% 4.8% 90.0%
[libx264 @ 0x2694140] mb I I16..4: 36.4% 47.2% 16.4%
[libx264 @ 0x2694140] mb P I16..4: 15.9% 13.0% 2.0% P16..4: 27.6%
11.0% 5.9% 0.0% 0.0% skip:24.7%
[libx264 @ 0x2694140] mb B I16..4: 0.5% 0.6% 0.1% B16..8: 20.1%
4.0% 1.4% direct: 1.4% skip:71.9% L0:58.0% L1:31.3% BI:10.7%
[libx264 @ 0x2694140] 8x8 transform intra:43.4% inter:58.2%
[libx264 @ 0x2694140] direct mvs spatial:99.8% temporal:0.2%
[libx264 @ 0x2694140] coded y,uvDC,uvAC intra: 41.0% 54.1% 15.4% inter:
10.7% 10.9% 1.4%
[libx264 @ 0x2694140] i16 v,h,dc,p: 23% 30% 14% 33%
[libx264 @ 0x2694140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 31% 24% 4% 5%
4% 7% 5% 9%
[libx264 @ 0x2694140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 33% 13% 5% 7%
5% 9% 5% 10%
[libx264 @ 0x2694140] i8c dc,h,v,p: 35% 39% 14% 11%
[libx264 @ 0x2694140] Weighted P-Frames: Y:8.3% UV:5.8%
[libx264 @ 0x2694140] ref P L0: 57.0% 14.4% 16.3% 7.5% 4.6% 0.2%
0.0%
[libx264 @ 0x2694140] ref B L0: 96.1% 2.7% 0.9% 0.4%
[libx264 @ 0x2694140] ref B L1: 99.0% 1.0%
[libx264 @ 0x2694140] kb/s:4010.13
More information about the ffmpeg-user
mailing list