[FFmpeg-user] Add Image to Streaming Audio

Michael Davis admin at network13.net
Thu Dec 5 21:44:51 CET 2013

Thanks Lou!  Your example works great as a baseline.  Now I need to A) reduce bitrate on the video stream to as low as possible.  I’m not sure what the lowest frame rate can be with h.264 in a TS container, but in playing with the -r option, I am only able to get output as low as 8 fps.  Anything lower and I get zero byte TS chunks.  And B) the still image is actually being written over on disk every few minutes.  Is there a way to force ffmpeg to check the file mod time or read from disk at a given interval?  As it is, it seams to be reading the file once and caching.



On Dec 4, 2013, at 5:43 PM, Lou <lou at lrcd.com> wrote:

> On Tue, 3 Dec 2013 20:25:35 -0800
> Michael Davis <admin at network13.net> wrote:
>> I am using the following command, which outputs audio only.
> With what player(s)?
>> The image is not looping as I expect.  If I can get the image portion
>> added and/or to loop, the next step will be to set the video encoder
>> to h.264 baseline 3.0 at a minimal frame rate.  But first things
>> first…
> Why not just try what you are wanting?
> ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen \
> -vcodec libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p \
> -acodec copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 -f hls \
> mp3.m3u8
> I may be missing something, but that example may be a good starting
> point.
>> ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen -acodec copy \
>> -bsf h264_mp4toannexb -c:v copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 \
>> -f hls mp3.m3u8
> You're trying to stream copy both inputs. I assume MJPEG video is not an
> acceptable format for HLS.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list