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

Daniel Sakuma daniel.sakuma at voicetechnology.com.br
Mon Oct 29 15:36:59 CET 2012


Roger,

Thanks for the reply. Here are the outputs:
*
*
*output for wav:*
*
*
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
[wav @ 0x9e26500] max_analyze_duration 5000000 reached at 5120000
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from 'audio-final.wav':
  Duration: 00:04:24.84, bitrate: 256 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, stereo,
s16, 256 kb/s
At least one output file must be specified

*
*
*output for h264:*

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 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x997c840] non-existing PPS referenced
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] non-existing PPS 0 referenced
[h264 @ 0x997c840] decode_slice_header error
[h264 @ 0x997c840] no frame!
[h264 @ 0x9976500] max_analyze_duration 5000000 reached at 5000000
[h264 @ 0x9976500] 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
At least one output file must be specified



2012/10/26 Roger Pack <rogerdpack2 at gmail.com>

> > I am converting a .264 with its .wav file to .avi and the duration of the
> > generated file is smaller than it should be. This is a problem for me
> > because the video is not synchronized with the audio.
>
> What is the output of $ ffmpeg -i <filename>
> for both the .wav and .264 file?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list