[FFmpeg-user] New To FFmpeg streaming question

Cooper_Benjamin Cooper_Benjamin at roberts.edu
Tue May 26 16:54:31 CEST 2015


> Am I on the right track with the FFmpeg command or should I be trying something different?
> ffmpeg -i "udp://@225.1.1.15:4454?fifo_size=640000&overrun_nonfatal=1" 
> -vcodec libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k -vf 
> scale="trunc(oh*a*2)/2:480" http://localhost:8080/myTest.mp4

> Using testsrc and sine as inputs, I get something quite different:

> [mp4 @ 0x9ca18e0] muxer does not support non seekable output [...] Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

> Are you sure your ffmpeg has http support compiled in ("ffmpeg -protocols")? Are you sure "localhost" can be resolved on your Windows machine? Are you sure you can open port 8080 for listening on your Windows machine? 
> (Most of these should produce a useful error message from ffmpeg though - but I haven't checked the source to confirm that.)

Hi Mortiz,

"localhost" can be resolved on the Windows PC and I am assuming port 8080 is open for listening.  I tested the port with the VLC player command I previously mentioned.  When I use the VLC command I can open the file on port 8080 on the website.

It looks like FFmpeg has http support:

C:\ffmpeg-20150521\bin>ffmpeg -protocols
ffmpeg version N-72259-g0b9d636 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzli
b --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu
ray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enab
le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
 --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena
ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --en
able-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 23.101 / 54. 23.101
  libavcodec     56. 39.101 / 56. 39.101
  libavformat    56. 33.101 / 56. 33.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100

Supported file protocols:

Input:
  bluray
  cache
  concat
  crypto
  data
  file
  ftp
  gopher
  hls
  http
  httpproxy
  https
  mmsh
  mmst
  pipe
  rtp
  srtp
  subfile
  tcp
  tls
  udp
  udplite
  rtmp
  rtmpe
  rtmps
  rtmpt
  rtmpte

Output:
  crypto
  file
  ftp
  gopher
  http
  httpproxy
  https
  icecast
  md5
  pipe
  rtp
  srtp
  tcp
  tls
  udp
  udplite
  rtmp
  rtmpe
  rtmps
  rtmpt
  rtmpte

Any other thoughts or suggestions?  I will keep searching Google to see if I can find something that might help. 

Ben Cooper


More information about the ffmpeg-user mailing list