Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been having trouble getting an image input in FFMPEG to appear when the audio is a live mp3 stream. When using the same command and an mp3 file on disk, it works. Here's the command:

ffmpeg -i http://www.example.com:8000/live -loop 1 -i image1.jpg -acodec copy \
-map 0 -c:v libx264 -vbsf h264_mp4toannexb -f segment -segment_time 10 \
-segment_format mpegts -segment_list mp3.m3u8 -segment_list_flags +live \
-segment_list_flags -cache -segment_list_size 6 segment%d.ts

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
[mp3 @ 0x103000000] Header missing
Input #0, mp3, from 'http://www.jambay.com:8002/listen':
  Duration: N/A, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Input #1, image2, from 'http://www.jambay.com/albumart/art-00.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: mjpeg, yuvj420p, 200x200 [SAR 200:200 DAR 1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc
Output #0, segment, to 'segment%d.ts':
  Metadata:
    encoder         : Lavf55.12.100
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=N/A time=00:01:51.28 bitrate=N/A    

This creates an audio only transport stream and segments it. Anyone know why the image is not being muxed?

share|improve this question
    
Please show the complete ffmpeg console output. –  LordNeckbeard Dec 1 '13 at 6:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.