[FFmpeg-user] Converting .264 to .avi (audio is out of sync)

Daniel Sakuma daniel.sakuma at voicetechnology.com.br
Wed Oct 24 21:19:49 CEST 2012


I installed the latest version and it didn't solve the synchronism problem.
I tried to convert a h264+wav to an avi file with these commands:

ffmpeg -i input.264 -i input.wav output.avi
ffmpeg -r 15- i input.264 -i input.wav output.avi

in both cases the audio is out of sync. But when I specify an input frame
rate (-r 15) the result is better.

Here is the log:

ffmpeg version N-45982-ge3ba817 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Oct 24 2012 16:26:03 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration:
  libavutil      52.  0.100 / 52.  0.100
  libavcodec     54. 68.100 / 54. 68.100
  libavformat    54. 34.100 / 54. 34.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 20.105 /  3. 20.105
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadc2840] non-existing PPS referenced
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] non-existing PPS 0 referenced
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] no frame!
[h264 @ 0xadbc500] max_analyze_duration 5000000 reached at 5000000
[h264 @ 0xadbc500] Estimating duration from bitrate, this may be inaccurate
Input #0, h264, from 'H264-video-2.264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 176x144, 25 fps, 25 tbr,
1200k tbn, 50 tbc
[wav @ 0xadb6960] max_analyze_duration 5000000 reached at 5120000
Guessed Channel Layout for  Input Stream #1.0 : mono
Input #1, wav, from 'G711ULAW-audio-2.wav':
  Duration: 147:22:34.81, bitrate: 0 kb/s
    Stream #1:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono,
s16, 64 kb/s
File '2.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to '2.avi':
  Metadata:
    ISFT            : Lavf54.34.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 176x144,
q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 8000 Hz, mono, fltp, 96
kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg4)
  Stream #1:0 -> #0:1 (pcm_mulaw -> ac3)
Press [q] to stop, [?] for help
[h264 @ 0xadc2840] Missing reference picture
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] Missing reference picture
[h264 @ 0xadc2840] decode_slice_header error
[h264 @ 0xadc2840] concealing 99 DC, 99 AC, 99 MV errors in P frame
concealing 72 DC, 72 AC, 72 MV errors in P frame0:00:30.14 bitrate=
349.9kbits/s
[h264 @ 0xadc2840] concealing 61 DC, 61 AC, 61 MV errors in P frame
    Last message repeated 1 times
[h264 @ 0xadc2840] concealing 38 DC, 38 AC, 38 MV errors in P frame
[h264 @ 0xadc2840] concealing 5 DC, 5 AC, 5 MV errors in P frame
concealing 55 DC, 55 AC, 55 MV errors in P frame=00:00:54.72 bitrate=
330.1kbits/s
[h264 @ 0xadc2840] concealing 88 DC, 88 AC, 88 MV errors in P frame
Truncating packet of size 4096 to 364539kB time=00:02:32.06 bitrate=
309.2kbits/s
frame= 3907 fps=1450 q=8.5 Lsize=    7260kB time=00:04:22.65 bitrate=
226.4kbits/s
video:4046kB audio:3078kB subtitle:0 global headers:0kB muxing overhead
1.905338%


2012/10/24 Daniel Sakuma <daniel.sakuma at voicetechnology.com.br>

> Thanks Carl!! I will try with git head.
>
>
> 2012/10/23 Carl Eugen Hoyos <cehoyos at ag.or.at>
>
>> Daniel Sakuma <daniel.sakuma <at> voicetechnology.com.br> writes:
>>
>> > ffmpeg -r 15 -i input.264 output.avi
>> >
>> > The log is huge:
>> >
>> > FFmpeg version 0.6.5
>>
>> This is very old (and unfortunately, 0.6 is known as a
>> particularly buggy release series, it should not be used
>> if possible).
>>
>> Please try with current git head, as said, you cannot
>> specify an input frame rate for h264 (neither with
>> 0.6 nor current git head).
>>
>> Carl Eugen
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>


More information about the ffmpeg-user mailing list