Shawn Lewis <[email protected]> added the comment:

we implemented a proxying solution whereby a 
background process is downloading the file locally, 
then we serve it to ffmpeg locally...

in doing this, i think the root of the problem "may 
be" (and i say that because I am not familiar with 
AAC compression), that the AAC decoder may require 
look-ahead, or "complete frames", and when it doesnt 
have a complete frame, it causes the whole thing to 
barf.  As you can see in the output below.  So I 
guess the question is, can the AAC decoding be fixed 
where  the bytes have not arrived into the buffer 
yet, basically, when this error point occurs, it can 
be smart enough, to back step the pointer to 
beginning of the buffer it was trying to transcode, 
and exit out, and allow to be reentered again (this 
time maybe having the data, maybe not) but the 
pointer needs to be reset to the beginning of the 
frame it was trying to decode in the first place.

Feedback would be appreciated so I can gain some sort 
of direction of what I should do for a next step.

Thanks
Shawn




ffmpeg  -v 1  -y  -
i "http://192.168.2.205:42000/faststream/file?
filename=C:%5CProgramData%5CNokNok%5CPMPAPP%
5CTempWork%
5C37766139.MP4V&transcode=1&stream=33701031"  -re   -
acodec wmav2  -vcodec wmv2 -b 1200k -f asf -
y "C:\ProgramData\NokNok\PMPAPP\TempWork\37766139.ASF"



errordata: FFmpeg version SVN-r25443, Copyright (c) 
2000-2010 the FFmpeg developers
errordata:   built on Oct 11 2010 04:07:03 with gcc 
4.4.2
errordata:   configuration: --enable-gpl --enable-
version3 --enable-libgsm --enable-pthreads --enable-
libvorbis --enable-libtheora --enable-libspeex --
enable-libmp3lame --enable-libopenjpeg --enable-
libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-
runtime-cpudetect --enable-libxvid --enable-libx264 --
extra-libs='-lx264 -lpthread' --enable-librtmp --
extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --
target-os=mingw32 --enable-avisynth --cross-
prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --
enable-memalign-hack
errordata:   libavutil     50.32. 3 / 50.32. 3
errordata:   libavcore      0. 9. 1 /  0. 9. 1
errordata:   libavcodec    52.92. 0 / 52.92. 0
errordata:   libavformat   52.80. 0 / 52.80. 0
errordata:   libavdevice   52. 2. 2 / 52. 2. 2
errordata:   libavfilter    1.49. 0 /  1.49. 0
errordata:   libswscale     0.12. 0 /  0.12. 0
errordata: [h264 @ 03912870] brainfart cropping not 
supported, this could look slightly wrong ...
errordata: Seems stream 0 codec frame rate differs 
from container frame rate: 59.94 (54000000/900901) -> 
29.97 (2997/100)
errordata: Input #0, mov,mp4,m4a,3gp,3g2,mj2, 
from 'http://192.168.2.205:42000/faststream/file?
filename=C:%5CProgramData%5CNokNok%5CPMPAPP%
5CTempWork%
5C37766139.MP4V&transcode=1&stream=33701031':
errordata:   Metadata:
errordata:     major_brand     : mp42
errordata:     minor_version   : 0
errordata:     compatible_brands: isommp42
errordata:   Duration: 00:00:38.15, start: 0.000000, 
bitrate: 261 kb/s
errordata:     Stream #0.0(eng): Video: h264, 
yuv420p, 768x436 [PAR 108:108 DAR 192:109], 671 kb/s, 
29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc
errordata:     Stream #0.1(eng): Audio: aac, 44100 
Hz, stereo, s16, 35 kb/s
errordata: [buffer @ 0436b6d0] w:768 h:436 
pixfmt:yuv420p
errordata: [h264 @ 03912870] brainfart cropping not 
supported, this could look slightly wrong ...
errordata: Output #0, asf, 
to 'C:\ProgramData\NokNok\PMPAPP\TempWork\37766139.ASF
':
errordata:   Metadata:
errordata:     WM/EncodingSettings: Lavf52.80.0
errordata:     Stream #0.0(eng): Video: wmv2, 
yuv420p, 768x436 [PAR 1:1 DAR 192:109], q=2-31, 1200 
kb/s, 1k tbn, 29.97 tbc
errordata:     Stream #0.1(eng): Audio: wmav2, 44100 
Hz, stereo, s16, 64 kb/s
errordata: Stream mapping:
errordata:   Stream #0.0 -> #0.0
errordata:   Stream #0.1 -> #0.1
errordata: Press [q] to stop encoding
errordata: frame=   16 fps=  0 q=9.0 size=     210kB 
time=0.33 bitrate=5294.6kbits/s    
errordata: frame=   32 fps= 30 q=10.5 size=     360kB 
time=1.02 bitrate=2886.1kbits/s    
errordata: frame=   44 fps= 28 q=9.2 size=     432kB 
time=1.47 bitrate=2410.3kbits/s    
errordata: frame=   63 fps= 30 q=10.0 size=     510kB 
time=2.00 bitrate=2092.3kbits/s    
errordata: frame=   74 fps= 28 q=9.9 size=     613kB 
time=2.47 bitrate=2034.5kbits/s    
errordata: frame=   89 fps= 28 q=9.6 size=     682kB 
time=2.97 bitrate=1880.9kbits/s    
errordata: frame=   99 fps= 27 q=9.0 size=     744kB 
time=3.30 bitrate=1846.3kbits/s    
errordata: frame=  119 fps= 28 q=9.4 size=     832kB 
time=3.97 bitrate=1716.2kbits/s    
errordata: frame=  134 fps= 28 q=9.5 size=     941kB 
time=4.47 bitrate=1724.7kbits/s    
errordata: frame=  144 fps= 27 q=9.9 size=     969kB 
time=4.80 bitrate=1652.8kbits/s    
errordata: frame=  164 fps= 28 q=10.1 size=    1088kB 
time=5.47 bitrate=1629.1kbits/s    
errordata: frame=  174 fps= 28 q=10.9 size=    1148kB 
time=5.81 bitrate=1619.1kbits/s    
errordata: frame=  189 fps= 28 q=13.6 size=    1223kB 
time=6.31 bitrate=1588.2kbits/s    
errordata: frame=  199 fps= 27 q=16.0 size=    1279kB 
time=6.64 bitrate=1577.7kbits/s    
errordata: frame=  219 fps= 28 q=15.5 size=    1379kB 
time=7.31 bitrate=1545.8kbits/s    
errordata: frame=  231 fps= 28 q=14.8 size=    1435kB 
time=7.71 bitrate=1525.2kbits/s    
errordata: [aac @ 03908970] Input buffer exhausted 
before END element found
errordata: Error while decoding stream #0.1
errordata: [mov,mp4,m4a,3gp,3g2,mj2 @ 01948d30] 
stream 1, offset 0xbc6fc: partial file
errordata: frame=  247 fps= 13 q=11.5 Lsize=    
1510kB time=8.24 bitrate=1501.0kbits/s dup=2 
drop=0    
errordata: video:1415kB audio:69kB global headers:0kB 
muxing overhead 1.726537%

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2282>
________________________________________________

Reply via email to