[FFmpeg-user] ffmpeg can generate raw stream but can't read it

Massimo Battistel battistel at gmail.com
Sat Nov 9 17:49:52 CET 2013


Hi,
with the following command line:

ffmpeg -re -i anyvideo.ext -vcodec rawvideo -acodec pcm_s16le -f mpegts
udp://127.0.0.1:1400

I can stream raw video and audio with no errors/warnings on the ffmpeg
output.

The problem is that I haven't found a way to play/probe it.

If I try to read the stream with this command:

ffmpeg -i udp://127.0.0.1:1400 -analyzeduration 100000000 -probesize
100000000

it fails with the following output:

ffmpeg version N-57367-g2f31b73 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Oct 23 2013 20:22:19 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 38.101 / 55. 38.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 89.100 /  3. 89.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Trailing options were found on the commandline.
[mpegts @ 028da8e0] probed stream 0 failed
[mpegts @ 028da8e0] probed stream 1 failed
[mpegts @ 028da8e0] Could not find codec parameters for stream 0 (Unknown:
none ([6][0][0][0] / 0x0006)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 028da8e0] Could not find codec parameters for stream 1 (Unknown:
none ([6][0][0][0] / 0x0006)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
udp://127.0.0.1:1400: could not find codec parameters

Any advice?
thanks


More information about the ffmpeg-user mailing list