[FFmpeg-trac] #1235(avformat:new): ffio_limit does not work correctly with named pipes on OSX (Snow Leopard)
FFmpeg
trac at avcodec.org
Thu Apr 19 19:39:28 CEST 2012
#1235: ffio_limit does not work correctly with named pipes on OSX (Snow Leopard)
----------------------------------+--------------------------------------
Reporter: ls | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
{{{
$ ffmpeg -f s16le -ac 2 -ar 48000 -i <(ffmpeg -loglevel warning -i camera-
raw.mp4 -c:a pcm_s16le -f s16le -ac 2 -ar 48000 -) out.wav
ffmpeg version git-2012-04-19-ab75ad0 Copyright (c) 2000-2012 the FFmpeg
developers
built on Apr 19 2012 19:20:02 with gcc 4.2.1 (Apple Inc. build 5666)
(dot 3)
configuration: --prefix=/homes/lschilli/src/ffmpeg-gar-osx/build
--enable-shared --disable-static --enable-gpl --enable-nonfree --enable-
libmp3lame --enable-libx264 --enable-libxvid --enable-sram --cpu=core2
--enable-hwaccel=h264_vaapi --enable-hwaccel=mpeg2_vaapi --enable-
hwaccel=mpeg4_vaapi --enable-libfaac --disable-ffserver --enable-
libfreetype --enable-x11grab
libavutil 51. 46.100 / 51. 46.100
libavcodec 54. 14.101 / 54. 14.101
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 70.100 / 2. 70.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, s16le, from '/dev/fd/63':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Guessed Channel Layout for Input Stream #0.0 : stereo
Output #0, wav, to '/tmp/out.wav':
Metadata:
encoder : Lavf54.3.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
Press [q] to stop, [?] for help
Truncating packet of size 4096 to 1
[pcm_s16le @ 0x101853e00] invalid PCM packet
Error while decoding stream #0:0
Truncating packet of size 4096 to 1
[pcm_s16le @ 0x101853e00] invalid PCM packet
Error while decoding stream #0:0
Truncating packet of size 4096 to 1
[pcm_s16le @ 0x101853e00] invalid PCM packet
Error while decoding stream #0:0
Truncating packet of size 4096 to 1
[pcm_s16le @ 0x101853e00] invalid PCM packet
[...]
}}}
Removing `size= ffio_limit(s, size);` from `av_get_packet` in
`libavformat/utils.c` seems to be a workaround for this problem. On linux
the same command line results in only one of the error messages above.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1235>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list