jave2
jave2 copied to clipboard
transcode from MP4 to TS, unknow reason "Conversion failed!"
JAVE 3.2.0 today , i want td do some transcode work. but when jave in processing , suddenly process terminate . error log below:
2021/11/27-14:51:14:472 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (1): <[aac @ 0x7fb728809200] Input buffer exhausted before END element found>
66 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (2): <Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/folders/2y/jqhn24qs34sb1699gcdrdr_h0000gn/T/bk-tv-quality-processor/22/STORAGE/1_1635074320&62179_1635073549_1635073851.mp4':>
65 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (3): < Metadata:>
64 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (4): < major_brand : mp42>
63 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (5): < minor_version : 0>
62 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (6): < compatible_brands: isommp42>
61 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (7): < creation_time : 2021-10-24T11:10:51.000000Z>
60 2021/11/27-14:51:14:473 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (8): < com.android.version: 9>
59 2021/11/27-14:51:14:474 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (9): < Duration: 00:04:59.31, start: 0.000000, bitrate: 1545 kb/s>
58 2021/11/27-14:51:14:474 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (10): < Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 128 kb/s (default)>
57 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (11): < Metadata:>
56 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (12): < creation_time : 2021-10-24T11:10:51.000000Z>
55 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (13): < handler_name : SoundHandle>
54 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (14): < vendor_id : [0][0][0][0]>
53 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (15): < Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 1543 kb/s, SAR 1:1 DAR 16:9, 20.09 fps, 24 tbr, 90k tbn, 48 tbc (default)>
52 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (16): < Metadata:>
51 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (17): < creation_time : 2021-10-24T11:10:51.000000Z>
50 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (18): < handler_name : VideoHandle>
49 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (19): < vendor_id : [0][0][0][0]>
48 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (20): <Stream mapping:>
47 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (21): < Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))>
46 2021/11/27-14:51:14:476 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (22): < Stream #0:0 -> #0:1 (aac (native) -> aac (native))>
45 2021/11/27-14:51:14:477 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (23): <Press [q] to stop, [?] for help>
44 2021/11/27-14:51:14:518 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (24): <[libx264 @ 0x7fb729020600] using SAR=1/1>
43 2021/11/27-14:51:14:518 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 24 message: <[libx264 @ 0x7fb729020600] using SAR=1/1>
42 2021/11/27-14:51:14:519 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (25): <[libx264 @ 0x7fb729020600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2>
41 2021/11/27-14:51:14:519 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 25 message: <[libx264 @ 0x7fb729020600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2>
40 2021/11/27-14:51:14:523 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (26): <[libx264 @ 0x7fb729020600] profile High, level 3.1, 4:2:0, 8-bit>
39 2021/11/27-14:51:14:524 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 26 message: <[libx264 @ 0x7fb729020600] profile High, level 3.1, 4:2:0, 8-bit>
38 2021/11/27-14:51:14:587 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (27): <[aac @ 0x7fb72901c800] Input buffer exhausted before END element found>
37 2021/11/27-14:51:14:588 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 27 message: <[aac @ 0x7fb72901c800] Input buffer exhausted before END element found>
36 2021/11/27-14:51:14:588 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (28): <Error while decoding stream #0:0: Invalid data found when processing input>
35 2021/11/27-14:51:14:588 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 28 message: <Error while decoding stream #0:0: Invalid data found when processing input>
34 2021/11/27-14:51:45:094 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (29): <Too many packets buffered for output stream 0:0.>
33 2021/11/27-14:51:45:094 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 29 message: <Too many packets buffered for output stream 0:0.>
32 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (30): <[libx264 @ 0x7fb729020600] frame I:23 Avg QP:15.40 size:123669>
31 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 30 message: <[libx264 @ 0x7fb729020600] frame I:23 Avg QP:15.40 size:123669>
30 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (31): <[libx264 @ 0x7fb729020600] frame P:1757 Avg QP:20.84 size: 19873>
29 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 31 message: <[libx264 @ 0x7fb729020600] frame P:1757 Avg QP:20.84 size: 19873>
28 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (32): <[libx264 @ 0x7fb729020600] frame B:3853 Avg QP:27.41 size: 3891>
27 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 32 message: <[libx264 @ 0x7fb729020600] frame B:3853 Avg QP:27.41 size: 3891>
26 2021/11/27-14:51:45:167 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (33): <[libx264 @ 0x7fb729020600] consecutive B-frames: 6.8% 3.8% 6.1% 83.3%>
25 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 33 message: <[libx264 @ 0x7fb729020600] consecutive B-frames: 6.8% 3.8% 6.1% 83.3%>
24 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (34): <[libx264 @ 0x7fb729020600] mb I I16..4: 14.0% 35.0% 50.9%>
23 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 34 message: <[libx264 @ 0x7fb729020600] mb I I16..4: 14.0% 35.0% 50.9%>
22 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (35): <[libx264 @ 0x7fb729020600] mb P I16..4: 0.9% 2.0% 1.3% P16..4: 21.2% 8.1% 6.1% 0.0% 0.0% skip:60.4%>
21 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 35 message: <[libx264 @ 0x7fb729020600] mb P I16..4: 0.9% 2.0% 1.3% P16..4: 21.2% 8.1% 6.1% 0.0% 0.0% skip:60.4%>
20 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (36): <[libx264 @ 0x7fb729020600] mb B I16..4: 0.1% 0.1% 0.1% B16..8: 20.2% 3.3% 1.3% direct: 1.1% skip:73.8% L0:48.7% L1:42.0% BI: 9.3%>
19 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 36 message: <[libx264 @ 0x7fb729020600] mb B I16..4: 0.1% 0.1% 0.1% B16..8: 20.2% 3.3% 1.3% direct: 1.1% skip:73.8% L0:48.7% L1:42.0% BI: 9.3%>
18 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (37): <[libx264 @ 0x7fb729020600] 8x8 transform intra:44.7% inter:31.6%>
17 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 37 message: <[libx264 @ 0x7fb729020600] 8x8 transform intra:44.7% inter:31.6%>
16 2021/11/27-14:51:45:168 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (38): <[libx264 @ 0x7fb729020600] coded y,uvDC,uvAC intra: 61.5% 32.9% 12.1% inter: 7.5% 2.5% 0.1%>
15 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 38 message: <[libx264 @ 0x7fb729020600] coded y,uvDC,uvAC intra: 61.5% 32.9% 12.1% inter: 7.5% 2.5% 0.1%>
14 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (39): <[libx264 @ 0x7fb729020600] i16 v,h,dc,p: 25% 34% 20% 21%>
13 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 39 message: <[libx264 @ 0x7fb729020600] i16 v,h,dc,p: 25% 34% 20% 21%>
12 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (40): <[libx264 @ 0x7fb729020600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 25% 21% 4% 4% 5% 5% 5% 6%>
11 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 40 message: <[libx264 @ 0x7fb729020600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 25% 21% 4% 4% 5% 5% 5% 6%>
10 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (41): <[libx264 @ 0x7fb729020600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 14% 7% 9% 8% 8% 7% 7%>
9 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 41 message: <[libx264 @ 0x7fb729020600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 14% 7% 9% 8% 8% 7% 7%>
8 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (42): <[libx264 @ 0x7fb729020600] i8c dc,h,v,p: 62% 16% 18% 4%>
7 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 42 message: <[libx264 @ 0x7fb729020600] i8c dc,h,v,p: 62% 16% 18% 4%>
6 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (43): <[libx264 @ 0x7fb729020600] Weighted P-Frames: Y:0.0% UV:0.0%>
5 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 43 message: <[libx264 @ 0x7fb729020600] Weighted P-Frames: Y:0.0% UV:0.0%>
4 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (44): <[libx264 @ 0x7fb729020600] ref P L0: 75.0% 10.0% 12.1% 2.9%>
3 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 44 message: <[libx264 @ 0x7fb729020600] ref P L0: 75.0% 10.0% 12.1% 2.9%>
2 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (45): <[libx264 @ 0x7fb729020600] ref B L0: 94.1% 5.3% 0.7%>
1 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 45 message: <[libx264 @ 0x7fb729020600] ref B L0: 94.1% 5.3% 0.7%>
2293 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (46): <[libx264 @ 0x7fb729020600] ref B L1: 97.3% 2.7%>
1 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 46 message: <[libx264 @ 0x7fb729020600] ref B L1: 97.3% 2.7%>
2 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (47): <[libx264 @ 0x7fb729020600] kb/s:1471.10>
3 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 47 message: <[libx264 @ 0x7fb729020600] kb/s:1471.10>
3 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (47): <[libx264 @ 0x7fb729020600] kb/s:1471.10>
2 2021/11/27-14:51:45:169 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 47 message: <[libx264 @ 0x7fb729020600] kb/s:1471.10>
1 2021/11/27-14:51:45:202 [ConcatTaskExecutor-2] DEBUG ws.schild.jave.ConversionOutputAnalyzer- Input Line (48): <Conversion failed!>
2298 2021/11/27-14:51:45:203 [ConcatTaskExecutor-2] INFO ws.schild.jave.ConversionOutputAnalyzer- Unhandled message in step: 2 Line: 48 message: <Conversion failed!>
From this log i have found some detail in which i am interesting.
- Input buffer exhausted before END element found
- Error while decoding stream #0:0: Invalid data found when processing input
- Too many packets buffered for output stream 0:0
- consecutive B-frames
- Unhandled message in step: 2 xxxxx
below is my analysis(but i cannot tell why)
- when system read file in buffer , it is still reading but it cannt seek the end element of mp4 when it read the max limit of buffer. i found a lot of mp4 have this error , but it seems just a warning not matter success.
- i don't know what cause this error . Literally,it tells me #0:0 (audio) is invalid. so i ffprobe this mp4,the log as below.But why short audio duration cause this error? could it be said that if audio duration not match video duration it will throw this err?
- what is the packets bufferd ? video packets that can not match the audio?
- consecutive B-frames if it may cause some DTS problem?
- what mean of Unbandled message in step:2 xxxxx?
# ffprobe 1_1635074320\&62179_1635073549_1635073851.mp4 -show_streams
ffprobe version 4.4-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2007-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[aac @ 0x7f8b2a011800] Input buffer exhausted before END element found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1_1635074320&62179_1635073549_1635073851.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2021-10-24T11:10:51.000000Z
com.android.version: 9
Duration: 00:04:59.31, start: 0.000000, bitrate: 1545 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 128 kb/s (default) //we can see this mp4 have audo stream
Metadata:
creation_time : 2021-10-24T11:10:51.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 1543 kb/s, SAR 1:1 DAR 16:9, 20.09 fps, 24 tbr, 90k tbn, 48 tbc (default)
Metadata:
creation_time : 2021-10-24T11:10:51.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=16000
channels=1
channel_layout=mono
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/16000
start_pts=0
start_time=0.000000
duration_ts=2
duration=0.000125 // we can see the audio stream last only 0.000125s. so if it is the reason of error 2?
bit_rate=128000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=1
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2021-10-24T11:10:51.000000Z
TAG:language=eng
TAG:handler_name=SoundHandle
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=1
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=Constrained Baseline
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1280
height=720
coded_width=1280
coded_height=720
closed_captions=0
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=31
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=unknown
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=24/1
avg_frame_rate=90210000/4489651
time_base=1/90000
start_pts=9
start_time=0.000100
duration_ts=26937906
duration=299.310067
bit_rate=1543415
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=6014
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2021-10-24T11:10:51.000000Z
TAG:language=eng
TAG:handler_name=VideoHandle
TAG:vendor_id=[0][0][0][0]
[/STREAM]
For comparison, i run ffmpeg directly in my command line.
#ffmpeg -i 1_1635074320\&62179_1635073549_1635073851.mp4 -vcodec h264 -movflags faststart -acodec aac -y abc.ts
ffmpeg version N-103117-g1f58503013-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 57. 3.100 / 57. 3.100
libavcodec 59. 3.102 / 59. 3.102
libavformat 59. 4.101 / 59. 4.101
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 1.103 / 8. 1.103
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
[aac @ 0x7f809b707780] Input buffer exhausted before END element found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1_1635074320&62179_1635073549_1635073851.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2021-10-24T11:10:51.000000Z
com.android.version: 9
Duration: 00:04:59.31, start: 0.000000, bitrate: 1545 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 128 kb/s (default)
Metadata:
creation_time : 2021-10-24T11:10:51.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 1543 kb/s, SAR 1:1 DAR 16:9, 20.09 fps, 24 tbr, 90k tbn (default)
Metadata:
creation_time : 2021-10-24T11:10:51.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7f809b605600] using SAR=1/1
[libx264 @ 0x7f809b605600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7f809b605600] profile High, level 3.1, 4:2:0, 8-bit
[aac @ 0x7f809b411ec0] Input buffer exhausted before END element found
Error while decoding stream #0:0: Invalid data found when processing input
Output #0, mpegts, to 'abc.ts':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
com.android.version: 9
encoder : Lavf59.4.101
Stream #0:0(eng): Video: h264, yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 90k tbn (default)
Metadata:
creation_time : 2021-10-24T11:10:51.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
encoder : Lavc59.3.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1(eng): Audio: aac (LC), 16000 Hz, mono, fltp, 69 kb/s (default)
Metadata:
creation_time : 2021-10-24T11:10:51.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
encoder : Lavc59.3.102 aac
frame= 5911 fps= 79 q=-1.0 Lsize= 56822kB time=00:04:59.25 bitrate=1555.5kbits/s dup=0 drop=103 speed=3.98x
video:54010kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.205368%
[libx264 @ 0x7f809b605600] frame I:24 Avg QP:15.51 size:122695
[libx264 @ 0x7f809b605600] frame P:1862 Avg QP:20.93 size: 19739
[libx264 @ 0x7f809b605600] frame B:4025 Avg QP:27.44 size: 3878
[libx264 @ 0x7f809b605600] consecutive B-frames: 7.1% 4.1% 6.4% 82.4%
[libx264 @ 0x7f809b605600] mb I I16..4: 13.9% 35.3% 50.8%
[libx264 @ 0x7f809b605600] mb P I16..4: 0.9% 2.1% 1.3% P16..4: 21.3% 8.2% 6.1% 0.0% 0.0% skip:60.0%
[libx264 @ 0x7f809b605600] mb B I16..4: 0.1% 0.1% 0.1% B16..8: 20.3% 3.3% 1.3% direct: 1.1% skip:73.7% L0:48.6% L1:42.0% BI: 9.4%
[libx264 @ 0x7f809b605600] 8x8 transform intra:45.1% inter:32.1%
[libx264 @ 0x7f809b605600] coded y,uvDC,uvAC intra: 60.9% 33.0% 12.0% inter: 7.6% 2.6% 0.1%
[libx264 @ 0x7f809b605600] i16 v,h,dc,p: 25% 34% 20% 21%
[libx264 @ 0x7f809b605600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 25% 21% 4% 4% 5% 5% 5% 6%
[libx264 @ 0x7f809b605600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 14% 7% 9% 8% 8% 7% 7%
[libx264 @ 0x7f809b605600] i8c dc,h,v,p: 62% 16% 18% 4%
[libx264 @ 0x7f809b605600] Weighted P-Frames: Y:0.1% UV:0.0%
[libx264 @ 0x7f809b605600] ref P L0: 75.0% 10.1% 12.0% 2.9% 0.0%
[libx264 @ 0x7f809b605600] ref B L0: 94.1% 5.3% 0.7%
[libx264 @ 0x7f809b605600] ref B L1: 97.3% 2.7%
[libx264 @ 0x7f809b605600] kb/s:1477.91
[aac @ 0x7f809b6069c0] Qavg: nan
it runs ok, and abc.ts can open successfully. but when i ffporbe abc.ts, some yellow log as bellow:
ffprobe abc.ts -show_streams
ffprobe version 4.4-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2007-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[mpegts @ 0x7fad28808200] start time for stream 1 is not set in estimate_timings_from_pts
[mpegts @ 0x7fad28808200] stream 1 : no TS found at start of file, duration not set
[mpegts @ 0x7fad28808200] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpegts, from 'abc.ts':
Duration: 00:04:59.38, start: 1.483333, bitrate: 1554 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc
Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 0 channels
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=[27][0][0][0]
codec_tag=0x001b
width=1280
height=720
coded_width=1280
coded_height=720
closed_captions=0
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=31
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=progressive
refs=1
is_avc=false
nal_length_size=0
id=0x100
r_frame_rate=24/1
avg_frame_rate=24/1
time_base=1/90000
start_pts=133500
start_time=1.483333
duration_ts=26943750
duration=299.375000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=unknown
codec_type=audio
codec_tag_string=[15][0][0][0]
codec_tag=0x000f
sample_fmt=unknown
sample_rate=0
channels=0
channel_layout=unknown
bits_per_sample=0
id=0x101
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=133500
start_time=1.483333
duration_ts=26943750
duration=299.375000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=eng
[/STREAM]
these errors make me confused and disoriented.
1.why now #0:0 change to Video stream and #0:1 change to audio stream? because it re-encode? defualt #0:0 is video and defualt #0:1 is audio?
2.Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 0 channels why abc.ts have no channels?
3.Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format,stream 1 : no TS found at start of file, duration not set,Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options these advice make my confused. could u help me explain why, if u have some experience about it .
i know it may be about ffmpeg side problem. but i meet these error through Jave framework. thank u.
Such errors are often due to some corrupt/incomplete media file. Perhaps if you run the conversion command manually you will see some more informations?