Opened 6 years ago
Closed 6 years ago
#8502 closed defect (fixed)
Problem with mp4 dash file
| Reported by: | nikolindima | Owned by: | |
|---|---|---|---|
| Priority: | important | Component: | avformat |
| Version: | git-master | Keywords: | mov regression |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:i have file downloaded with youtube-dl in format mp4_dash. File looks normal - played in any player. But i need to extract audio from it or change format to mov or m4v, some times i need to add drawtext. but ffmpeg can't do it. Have no errors, but output file become laggy. sound files comes shorter then original file.
How to reproduce: ffmpeg -i file.mp4 out.mp3
ffmpeg -i file.mp4 out.mp4
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.16)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin -fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4':
Metadata:
major_brand : iso5
minor_version : 1
compatible_brands: avc1iso5dsmsmsixdash
encoder : Lavf58.29.100
Duration: 00:02:42.99, start: 0.000000, bitrate: 131 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 256x144, 0 kb/s, 24.39 fps, 25 tbr, 90k tbn, 2000k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 0 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fc292804400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fc292804400] profile High, level 1.2
[libx264 @ 0x7fc292804400] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
Metadata:
major_brand : iso5
minor_version : 1
compatible_brands: avc1iso5dsmsmsixdash
encoder : Lavf58.29.100
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 256x144, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.54.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc58.54.100 aac
More than 1000 frames duplicated
frame= 1665 fps=0.0 q=28.0 size= 512kB time=00:01:04.56 bitrate= 65.0kbits/frame= 2956 fps=2845 q=25.0 size= 1024kB time=00:01:58.44 bitrate= 70.8kbitsframe= 4076 fps=2694 q=-1.0 Lsize= 1936kB time=00:02:43.02 bitrate= 97.3kbits/s dup=2962 drop=0 speed= 108x
video:1185kB audio:676kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.036963%
[libx264 @ 0x7fc292804400] frame I:21 Avg QP:21.95 size: 6237
[libx264 @ 0x7fc292804400] frame P:1187 Avg QP:22.43 size: 679
[libx264 @ 0x7fc292804400] frame B:2868 Avg QP:30.25 size: 96
[libx264 @ 0x7fc292804400] consecutive B-frames: 4.3% 4.8% 2.8% 88.1%
[libx264 @ 0x7fc292804400] mb I I16..4: 2.9% 37.5% 59.6%
[libx264 @ 0x7fc292804400] mb P I16..4: 0.2% 1.9% 0.8% P16..4: 14.5% 7.6% 5.0% 0.0% 0.0% skip:70.0%
[libx264 @ 0x7fc292804400] mb B I16..4: 0.0% 0.2% 0.1% B16..8: 9.9% 2.6% 0.8% direct: 0.3% skip:86.1% L0:60.7% L1:32.7% BI: 6.7%
[libx264 @ 0x7fc292804400] 8x8 transform intra:57.1% inter:43.9%
[libx264 @ 0x7fc292804400] coded y,uvDC,uvAC intra: 82.0% 81.4% 56.7% inter: 4.9% 6.4% 1.6%
[libx264 @ 0x7fc292804400] i16 v,h,dc,p: 16% 51% 16% 17%
[libx264 @ 0x7fc292804400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 23% 17% 5% 8% 9% 9% 7% 9%
[libx264 @ 0x7fc292804400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 23% 16% 6% 8% 8% 9% 7% 8%
[libx264 @ 0x7fc292804400] i8c dc,h,v,p: 53% 23% 14% 9%
[libx264 @ 0x7fc292804400] Weighted P-Frames: Y:7.0% UV:3.5%
[libx264 @ 0x7fc292804400] ref P L0: 67.3% 18.3% 11.9% 2.3% 0.3%
[libx264 @ 0x7fc292804400] ref B L0: 92.8% 6.4% 0.8%
[libx264 @ 0x7fc292804400] ref B L1: 97.5% 2.5%
[libx264 @ 0x7fc292804400] kb/s:59.51
[aac @ 0x7fc292805c00] Qavg: 9824.136
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Attachments (1)
Change History (6)
by , 6 years ago
comment:1 by , 6 years ago
| Component: | undetermined → avformat |
|---|---|
| Keywords: | mov regression added; dash mp4 removed |
| Priority: | normal → important |
| Version: | unspecified → git-master |
comment:2 by , 6 years ago
Sample it is file downloaded with youtube-dl
youtube-dl -f 'mpd-1' https://ok.ru/video/2225355031889
follow-up: 4 comment:3 by , 6 years ago
This might be the same problem as in ticket #8489, too short audio in MP4.
comment:4 by , 6 years ago
Replying to mkoch:
This might be the same problem as in ticket #8489, too short audio in MP4.
Video is 1:28 sec long. it can't be same problem
Problem is not only in audio conversion. Can't convert to video too.
ffmpeg -i file.mp4 out.mp4 - give laggy output.
if dry to add drawtext to video - same problem. any file conversion is give problem
comment:5 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed by John Stebbins in 21a65d63109628276a8fa88f8e6a106696506dc9, duplicate of ticket #7377.



How was the input sample created?
Looks like a regression since 4a9d32baca3af0d1831f9556a922c7ab5b426b10, related to tickets #7236, #7377, #7389, #7572 and #8070.