[FFmpeg-user] Add Image to Streaming Audio
Michael Davis
admin at network13.net
Wed Dec 4 05:25:35 CET 2013
Hi All,
I’m attempting to add a still image to an MP3 audio stream coming from an Icecast server. I am using the following command, which outputs audio only. 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…
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
ffmpeg version 2.0-tessus Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 11 2013 00:54:32 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from ’still.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj444p, 449x300 [SAR 72:72 DAR 449:300], 25 fps, 25 tbr, 25 tbn, 25 tbc
[mp3 @ 0x103801000] Header missing
Input #1, mp3, from 'http://localhost:8002/listen':
Duration: N/A, start: 0.000000, bitrate: 128 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Output #0, hls, to 'mp3.m3u8':
Metadata:
encoder : Lavf55.12.100
Stream #0:0: Video: mjpeg, yuvj444p, 449x300 [SAR 72:72 DAR 449:300], q=2-31, 25 fps, 90k tbn, 25 tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls @ 0x10200ca00] Non-monotonous DTS in output stream 0:1; previous: 2351, current: 0; changing to 2352. This may result in incorrect timestamps in the output file.
frame= 986 fps= 25 q=-1.0 Lsize=N/A time=00:00:47.77 bitrate=N/A
video:78667kB audio:747kB subtitle:0 global headers:0kB muxing overhead -100.000027%
More information about the ffmpeg-user
mailing list