Trying to make a simple video. The audio is a song, and the "video" is a static image displaying the words to the song.
Was able to create a simple video with avconv by:
where "stanza1_%03d.jpg" was 25 copies of a jpeg image with the words of the song.
avconv -i stanza1_%03d.jpg 1sec.avi
cat 1sec.avi 1sec.avi 1sec.avi > 3secraw.avi
cat 3secraw.avi 3secraw.avi 3secraw.avi >9secraw.avi
avconv -i 9secraw.avi 9sec.avi
The audio track is also nine seconds long (used sox with the "trim" command). Put the audio in WAV format (44100 samples/sec, 16 b/sample, 2 channels), on the hope or guess that most software would support it.
Here's what happens when trying to merge the audio and video:
In examining this output, it looks like I need to specify some parameters for the audio stream, but not sure what to put. Or should the input audio be reformatted? Any suggestions?
$ avconv -i 9sec.avi -i 9sec.wav test.avi
avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jun 12 2012 16:37:58 with gcc 4.6.3
Input #0, avi, from '9sec.avi':
encoder : Lavf53.21.0
Duration: 00:00:09.00, start: 0.000000, bitrate: 638 kb/s
Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 1024x767 [PAR 1:1 DAR 1024:767], 25 tbr, 25 tbn, 25 tbc
[wav @ 0x96282e0] max_analyze_duration reached
Input #1, wav, from '9sec.wav':
Duration: 00:00:09.00, bitrate: 1411 kb/s
Stream #1.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
[buffer @ 0x971f0c0] w:1024 h:767 pixfmt:yuv420p
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 0x96c8720] channel_layout not specified
[ac3 @ 0x96c8720] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[ac3 @ 0x96c8720] invalid bit rate
Output #0, avi, to 'test.avi':
encoder : Lavf53.21.0
Stream #0.0: Video: mpeg4, yuv420p, 1024x767 [PAR 1:1 DAR 1024:767], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: ac3, 44100 Hz, stereo, flt, 200 kb/s
Stream #0:0 -> #0:0 (mpeg4 -> mpeg4)
Stream #1:0 -> #0:1 (pcm_s16le -> ac3)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Thanks for any help -