FAAD error lines in h264 encode and part of audio lost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



On Sun, Feb 21, 2010 at 10:46 PM, Miroslav Rovis <m.rovis at inet.hr> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi every good ole mencoder users!
>
> mencoder input.avi -o output_p1.avi -profile h264_profile
>
> (p1 in output_p1.avi is because I keep the divx2pass.log and may later
> use it for output_p2.avi)
>
> The conf file ~user/.mplayer/mencoder.conf contains the relevant profile:
>
> [h264_profile]
> profile=h264_profile
> profile-desc="h264_profile_description"
>
> x264encopts=pass=1:turbo=1:frameref=1:subq=1:bframes=1:partitions=all:qp_step=4:qcomp=0.7:keyint=300
>
> I get files that are well compressed, but lose sync at the end of the
> stream.
> And, what is worse, in the newly coded file, the end portion of the
> audio of about 2 seconds is plain lost.
> Now I don't mind that, to get the file play well synced, I need to
> play it with:
>
> mplayer -delay 0.120 output_p1.avi
>
> But the loss of information at end is what I do mind!
>
> It shows in the mplayer output as:
>
> ...
> VIDEO:  [h264]  720x576  24bpp  25.000 fps  872.5 kbps (106.5 kbyte/s)
> Clip info:
>  Software: MEncoder SVN-r29796-4.3.4
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
> ==========================================================================
> ==========================================================================
> Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
> AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 23994->192000)
> Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
> ==========================================================================
> AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
> Starting playback...
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.?% 0 0
> VO: [xv] 720x576 => 768x576 Planar YV12
> ...
> FAAD: error: Unable to find ADTS syncword, trying to resync!3.2% 102 0
> FAAD: Failed to decode frame: Unable to find ADTS syncword
> FAAD: error: Unable to find ADTS syncword, trying to resync!3.2% 102 0
> FAAD: Failed to decode frame: Unable to find ADTS syncword
> ...
> ... (dozens of these FAAD lines, I spare you)
> ...
> A: 247.9 V: 248.8 A-V: -0.988 ct:  0.099 6222/6222 34% 10%  2.6% 102 0
>
> Exiting... (End of file)
>
> What's the remedy to this annoyance, clever people?
> Thanx!
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.12 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkuCDD0ACgkQ5NaGZVDan0rTjQCgkta8bciUT1ww5b8wwQd33Ss9
> 98MAoJPHMj98zXPGTnqfkleG+5jokeNv
> =6WHh
> -----END PGP SIGNATURE-----
>
> I have myself given up on the built-in encoder/decoder but switched to
FAAC. I managed to screw up a number of files before coming to that
conclusion. I would be interested in further analysis as well. I have some
samples I could upload if they prove to be useful although it is not
pressing for me having switched.


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux