Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Audio files are sometimes interpreted as the wrong type by ffmpeg #7

Open
cofiem opened this issue Apr 14, 2015 · 1 comment
Open

Comments

@cofiem
Copy link
Contributor

cofiem commented Apr 14, 2015

BawAudioTools::Exceptions::NotAnAudioFileError

Not an audio file /mnt/workers/production/01/temp/fa2958e1384b46.wav ('video' is not 'audio'): {"STREAM index":"0","STREAM codec_name":"mpeg4","STREAM codec_long_name":"MPEG-4 part 2","STREAM profile":"unknown","STREAM codec_type":"video","STREAM codec_time_base":"768/16640","STREAM codec_tag_string":"[1][0][0][0]","STREAM codec_tag":"0x0001","STREAM width":"4032","STREAM height":"2984","STREAM has_b_frames":"1","STREAM sample_aspect_ratio":"0:1","STREAM display_aspect_ratio":"0:1","STREAM pix_fmt":"yuv420p","STREAM level":"-99","STREAM timecode":"N/A","STREAM quarter_sample":"0","STREAM divx_packed":"0","STREAM id":"N/A","STREAM r_frame_rate":"16640/768","STREAM avg_frame_rate":"0/0","STREAM time_base":"1/22050","STREAM start_pts":"77930","STREAM start_time":"0:00:03.534240","STREAM duration_ts":"662029","STREAM duration":"0:00:30.023991","STREAM bit_rate":"352800","STREAM max_bit_rate":"N/A","STREAM nb_frames":"N/A","STREAM nb_read_frames":"N/A","STREAM nb_read_packets":"N/A","STREAM DISPOSITION:default":"0","STREAM DISPOSITION:dub":"0","STREAM DISPOSITION:original":"0","STREAM DISPOSITION:comment":"0","STREAM DISPOSITION:lyrics":"0","STREAM DISPOSITION:karaoke":"0","STREAM DISPOSITION:forced":"0","STREAM DISPOSITION:hearing_impaired":"0","STREAM DISPOSITION:visual_impaired":"0","STREAM DISPOSITION:clean_effects":"0","STREAM DISPOSITION:attached_pic":"0","FORMAT filename":"/mnt/workers/production/01/temp/fa2958e1384b46.wav","FORMAT nb_streams":"1","FORMAT nb_programs":"0","FORMAT format_name":"wav","FORMAT format_long_name":"WAV / WAVE (Waveform Audio)","FORMAT start_time":"0:00:03.534240","FORMAT duration":"0:00:30.023991","FORMAT size":"1324102","FORMAT bit_rate":"352811","FORMAT probe_score":"99"} External Program: status=0;killed=false;time_out_sec=20;time_taken_sec=0.141020957;timed_out=false;exceptions=[];command=ffprobe -sexagesimal -print_format default -show_error -show_streams -show_format "/mnt/workers/production/01/temp/fa2958e1384b46.wav" Standard output: [STREAM] index=0 codec_name=mpeg4 codec_long_name=MPEG-4 part 2 profile=unknown codec_type=video codec_time_base=768/16640 codec_tag_string=[1][0][0][0] codec_tag=0x0001 width=4032 height=2984 has_b_frames=1 sample_aspect_ratio=0:1 display_aspect_ratio=0:1 pix_fmt=yuv420p level=-99 timecode=N/A quarter_sample=0 divx_packed=0 id=N/A r_frame_rate=16640/768 avg_frame_rate=0/0 time_base=1/22050 start_pts=77930 start_time=0:00:03.534240 duration_ts=662029 duration=0:00:30.023991 bit_rate=352800 max_bit_rate=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 [/STREAM] [FORMAT] filename=/mnt/workers/production/01/temp/fa2958e1384b46.wav nb_streams=1 nb_programs=0 format_name=wav format_long_name=WAV / WAVE (Waveform Audio) start_time=0:00:03.534240 duration=0:00:30.023991 size=1324102 bit_rate=352811 probe_score=99 [/FORMAT] Standard Error: ffprobe version N-63893-gc69defd Copyright (c) 2007-2014 the FFmpeg developers built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 66.101 / 55. 66.101 libavformat 55. 43.100 / 55. 43.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 8.100 / 4. 8.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Marker bit missing before time_increment [NULL @ 0x317b5e0] hmm, seems the headers are not complete, trying to guess time_increment_bits [NULL @ 0x317b5e0] my guess is 16 bits ;) Marker bit missing before vop_coded Marker bit missing before time_increment [mpeg4 @ 0x317b5e0] hmm, seems the headers are not complete, trying to guess time_increment_bits [mpeg4 @ 0x317b5e0] my guess is 16 bits ;) Marker bit missing before vop_coded [mpeg4 @ 0x317b5e0] header damaged Marker bit missing before width Marker bit missing before height [mpeg4 @ 0x317b5e0] new pred not supported Marker bit missing before time_increment_resolution Marker bit missing before fixed_vop_rate Marker bit missing before height Marker bit missing after height [mpeg4 @ 0x317b5e0] Static Sprites not supported [mpeg4 @ 0x317b5e0] N-bit not supported [mpeg4 @ 0x317b5e0] quant precision 0 [mpeg4 @ 0x317b5e0] reduced resolution VOP not supported [mpeg4 @ 0x317b5e0] illegal chroma format Marker bit missing before time_increment_resolution Marker bit missing before fixed_vop_rate Marker bit missing before height Marker bit missing after height [mpeg4 @ 0x317b5e0] N-bit not supported [mpeg4 @ 0x317b5e0] quant precision 2 Marker bit missing in complexity estimation part 1 Marker bit missing before time_increment Input #0, wav, from '/mnt/workers/production/01/temp/fa2958e1384b46.wav': Duration: 00:00:30.02, start: 3.534240, bitrate: 352 kb/s Stream #0:0: Video: mpeg4 ([1][0][0][0] / 0x0001), yuv420p, 4032x2984, 352 kb/s, 21.67 tbr, 22050 tbn, 21.67 tbc

@cofiem
Copy link
Contributor Author

cofiem commented Apr 14, 2015

ffprobe also interprets the file type incorrectly for the same file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant