[FFmpeg-user] New To FFmpeg streaming question

Cooper_Benjamin Cooper_Benjamin at roberts.edu
Fri May 22 20:32:47 CEST 2015


Hi,

I'm new to ffmpeg and I am trying to stream a live udp stream to my website in a mp4 format so I can show it using the html5 video tag.  I feel like I am close.  Here is the command I am running:

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

and here is what it outputs:

C:\ffmpeg-20150521\bin>ffmpeg -i "udp://@225.1.1.15:4454?fifo_size=640000&overrun_nonfatal=1" -vcode
c libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k -vf scale="trunc(oh*a*2)/2:480" "http://l
ocalhost:8080/myTest.mp4"
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
[mpeg2video @ 0000000000396840] Invalid frame dimensions 0x0.
    Last message repeated 11 times
Input #0, mpegts, from 'udp://@225.1.1.15:4454?fifo_size=640000&overrun_nonfatal=1':
  Duration: N/A, start: 89776.894611, bitrate: N/A
  Program 1
    Stream #0:0[0x21]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x480 [SAR 8
:9 DAR 4:3], max. 5000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x24]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
http://localhost:8080/myTest.mp4: Unknown error

Any help would be appreciated.

Ben Cooper


More information about the ffmpeg-user mailing list