Skip to content

Instantly share code, notes, and snippets.

@vishwasnavadak

vishwasnavadak/errored_avi_file.out Secret

Last active Oct 18, 2020
Embed
What would you like to do?
ffprobe outputs for errored stream conversions.
{ streams:
[ { index: 0,
codec_name: 'cinepak',
codec_long_name: 'Cinepak',
profile: 'unknown',
codec_type: 'video',
codec_time_base: '1/16',
codec_tag_string: 'cvid',
codec_tag: '0x64697663',
width: 704,
height: 480,
coded_width: 704,
coded_height: 480,
closed_captions: 0,
has_b_frames: 0,
sample_aspect_ratio: 'N/A',
display_aspect_ratio: 'N/A',
pix_fmt: 'rgb24',
level: '-99',
color_range: 'unknown',
color_space: 'unknown',
color_transfer: 'unknown',
color_primaries: 'unknown',
chroma_location: 'unspecified',
field_order: 'unknown',
timecode: 'N/A',
refs: 1,
id: 'N/A',
r_frame_rate: '16/1',
avg_frame_rate: '16/1',
time_base: '1/16',
start_pts: 0,
start_time: 0,
duration_ts: 29992,
duration: 1874.5,
bit_rate: 227486,
max_bit_rate: 'N/A',
bits_per_raw_sample: 'N/A',
nb_frames: 29992,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
disposition: [Object] } ],
format:
{ filename: 'errored_avi1.avi',
nb_streams: 1,
nb_programs: 0,
format_name: 'avi',
format_long_name: 'AVI (Audio Video Interleaved)',
start_time: 0,
duration: 1874.5,
size: 54021652,
bit_rate: 230553,
probe_score: 100 },
chapters: [] }
{ streams:
[ { index: 0,
codec_name: 'h264',
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
profile: 'unknown',
codec_type: 'video',
codec_time_base: '1/60',
codec_tag_string: 'H264',
codec_tag: '0x34363248',
width: 720,
height: 480,
coded_width: 720,
coded_height: 480,
closed_captions: 0,
has_b_frames: 0,
sample_aspect_ratio: 'N/A',
display_aspect_ratio: 'N/A',
pix_fmt: 'unknown',
level: '-99',
color_range: 'unknown',
color_space: 'unknown',
color_transfer: 'unknown',
color_primaries: 'unknown',
chroma_location: 'unspecified',
field_order: 'unknown',
timecode: 'N/A',
refs: 1,
is_avc: 'false',
nal_length_size: 0,
id: 'N/A',
r_frame_rate: '30/1',
avg_frame_rate: '30/1',
time_base: '1/30',
start_pts: 0,
start_time: 0,
duration_ts: 2646,
duration: 88.2,
bit_rate: 'N/A',
max_bit_rate: 'N/A',
bits_per_raw_sample: 'N/A',
nb_frames: 2646,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
disposition: [Object] },
{ index: 1,
codec_name: 'pcm_s16le',
codec_long_name: 'PCM signed 16-bit little-endian',
profile: 'unknown',
codec_type: 'audio',
codec_time_base: '1/8000',
codec_tag_string: '[1][0][0][0]',
codec_tag: '0x0001',
sample_fmt: 's16',
sample_rate: 8000,
channels: 2,
channel_layout: 'unknown',
bits_per_sample: 16,
id: 'N/A',
r_frame_rate: '0/0',
avg_frame_rate: '0/0',
time_base: '1/8000',
start_pts: 0,
start_time: 0,
duration_ts: 'N/A',
duration: 'N/A',
bit_rate: 256000,
max_bit_rate: 'N/A',
bits_per_raw_sample: 'N/A',
nb_frames: 706560,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
disposition: [Object] } ],
format:
{ filename: 'errored_avi3_withoutthumb.avi',
nb_streams: 2,
nb_programs: 0,
format_name: 'avi',
format_long_name: 'AVI (Audio Video Interleaved)',
start_time: 0,
duration: 88.2,
size: 15623460,
bit_rate: 1417093,
probe_score: 100 },
chapters: [] }
{ streams:
[ { index: 0,
codec_name: 'h264',
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
profile: 'High 4:4:4 Predictive',
codec_type: 'video',
codec_time_base: '1/58',
codec_tag_string: 'avc1',
codec_tag: '0x31637661',
width: 704,
height: 480,
coded_width: 704,
coded_height: 480,
closed_captions: 0,
has_b_frames: 2,
sample_aspect_ratio: 'N/A',
display_aspect_ratio: 'N/A',
pix_fmt: 'yuv444p',
level: 30,
color_range: 'unknown',
color_space: 'unknown',
color_transfer: 'unknown',
color_primaries: 'unknown',
chroma_location: 'left',
field_order: 'unknown',
timecode: 'N/A',
refs: 1,
is_avc: 'true',
nal_length_size: 4,
id: 'N/A',
r_frame_rate: '29/1',
avg_frame_rate: '29/1',
time_base: '1/14848',
start_pts: 505,
start_time: 0.034011,
duration_ts: 26727936,
duration: 1800.103448,
bit_rate: 615402,
max_bit_rate: 'N/A',
bits_per_raw_sample: 8,
nb_frames: 52203,
nb_read_frames: 'N/A',
nb_read_packets: 'N/A',
tags: [Object],
disposition: [Object] } ],
format:
{ filename: 'errored_mp4.mp4',
nb_streams: 1,
nb_programs: 0,
format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
format_long_name: 'QuickTime / MOV',
start_time: 0.034011,
duration: 1800.104,
size: 139101471,
bit_rate: 618193,
probe_score: 100,
tags:
{ major_brand: 'isom',
minor_version: '512',
compatible_brands: 'isomiso2avc1mp41',
encoder: 'Lavf58.45.100' } },
chapters: [] }
ffmpeg started on 2020-10-18 at 16:24:13
Report written to "ffmpeg-20201018-162413.log"
Log level: 48
Command line:
/usr/local/bin/ffmpeg -i sample.avi -y -c:v libx264 -profile:v main -pix_fmt yuv420p -vf "scale=1280:-2" -hls_list_size 0 -start_number 0 -hls_time 10 -loglevel verbose -report sample.avi-streams/sample.avi.m3u8
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 11.0.3 (clang-1103.0.32.62)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --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. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'sample.avi'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-profile:v' ... matched as option 'profile' (set profile) with argument 'main'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=1280:-2'.
Reading option '-hls_list_size' ... matched as AVOption 'hls_list_size' with argument '0'.
Reading option '-start_number' ... matched as AVOption 'start_number' with argument '0'.
Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument '10'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'verbose'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option 'sample.avi-streams/sample.avi.m3u8' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument verbose.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url sample.avi.
Successfully parsed a group of options.
Opening an input file: sample.avi.
[NULL @ 0x7f8ab1809200] Opening 'sample.avi' for reading
[file @ 0x7f8ab0f04540] Setting default whitelist 'file,crypto,data'
[avi @ 0x7f8ab1809200] Format avi probed with size=2048 and score=100
[avi @ 0x7f8ab0e04700] use odml:1
st:0 removing common factor 100 from timebase
[avi @ 0x7f8ab1809200] Something went wrong during header parsing, tag JUNK has size 7784424, I will ignore it and try to continue anyway.
[avi @ 0x7f8ab1809200] Before avformat_find_stream_info() pos: 86964 bytes read:65536 seeks:3 nb_streams:2
[avi @ 0x7f8ab1809200] parser not found for codec pcm_s16le, packets or times may be invalid.
[avi @ 0x7f8ab1809200] Could not find codec parameters for stream 0 (Video: h264, 1 reference frame (H264 / 0x34363248), none, 720x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[avi @ 0x7f8ab1809200] After avformat_find_stream_info() pos: 15623460 bytes read:15602032 seeks:3 frames:0
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'sample.avi':
Duration: 00:01:28.20, start: 0.000000, bitrate: 1417 kb/s
Stream #0:0, 0, 1/30: Video: h264, 1 reference frame (H264 / 0x34363248), none, 720x480, 30 fps, 30 tbr, 30 tbn, 60 tbc
Stream #0:1, 0, 1/8000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, stereo, s16, 256 kb/s
Successfully opened the file.
Parsing a group of options: output url sample.avi-streams/sample.avi.m3u8.
Applying option c:v (codec name) with argument libx264.
Applying option profile:v (set profile) with argument main.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option vf (set video filters) with argument scale=1280:-2.
Successfully parsed a group of options.
Opening an output file: sample.avi-streams/sample.avi.m3u8.
Successfully opened the file.
detected 4 logical cores
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
[AVIOContext @ 0x7f8ab0f04680] Statistics: 15602032 bytes read, 3 seeks
Conversion failed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment