[FFmpeg-user] New To FFmpeg streaming question
dopelabs at dubstep.fm
Tue May 26 17:26:51 CEST 2015
your example is writing an mp4 file directly to disk. it is not ‘streaming’ it in real time, even though you are saving it to a web accessible directory, it doesnt quite work that way with mp4’s. the file will only be playable after the file has finished writing. (from my experience at least)…
you might want to look into using something like ffserv or wowza or nimble, or back out via udp if you want to use ffmpeg output for streaming real time.
> On May 26, 2015, at 8:13 AM, Cooper_Benjamin <Cooper_Benjamin at roberts.edu> wrote:
> I did a little more testing and it appears that the following works to create a .mp4 file:
> ffmpeg -i "udp://@18.104.22.168: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" "C:\inetpub\testVideo\myTest.mp4"
> However, it doesn't seem to be playable/live while the command is running. I have to terminate the batch job before the file can be viewed. So there must be something funny going on with the localhost, or port 8080, or permissions for FFmpeg to write to that port.
> Ben Cooper
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
More information about the ffmpeg-user