HI Luca, Thanks for the answer. I went to check how the ffmpeg program
computes the DTS and the PTS because i compute them the same way. I did
print it and got the same results but the difference is that ffmpeg
writes into the file.  Now if the DTS and PTS have AV_NOPTS_VALUE, does
the avcodec_decode_audio2 decodes 2 frames or more at the same time? 



[EMAIL PROTECTED] ffmpeg09]# ./ffmpeg -i /dev/video /home/video1.mpeg
FFmpeg version SVN-r12569, Copyright (c) 2000-2008 Fabrice Bellard, et
al.
  configuration: 
  libavutil version: 49.6.0
  libavcodec version: 51.53.0
  libavformat version: 52.12.0
  libavdevice version: 52.0.0
  built on Mar 24 2008 12:33:29, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
Input #0, mpeg, from '/dev/video':
  Duration: N/A, start: 0.289444, bitrate: 8224 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR
4:3], 8000 kb/s, 29.97 tb(r)
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 224 kb/s
File '/home/video1.mpeg' already exists. Overwrite ? [y/N] y
Output #0, mpeg, to '/home/video1.mpeg':
    Stream #0.0: Video: mpeg1video, yuv420p, 720x480 [PAR 8:9 DAR 4:3],
q=2-31, 200 kb/s, 29.97 tb(c)
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
audio pkt
audio coded_frame pts [-9223372036854775808]
audio coded_frame [-9223372036854775808]
pkt.dts [-9223372036854775808]
pkt.pts [-9223372036854775808]
audio pkt
audio coded_frame pts [-9223372036854775808]
audio coded_frame [0]
pkt.dts [-9223372036854775808]
pkt.pts [-9223372036854775808]
audio pkt
audio coded_frame pts [-9223372036854775808]
audio coded_frame [2160]
pkt.dts [-9223372036854775808]
pkt.pts [-9223372036854775808]
video pkt
pkt.dts [-9223372036854775808]
pkt.pts [-9223372036854775808]
video pkt
pkt.dts [-9223372036854775808]
pkt.pts [0]
pkt.dts [-9223372036854775808]
pkt.pts [3003]
pkt.dts [-9223372036854775808]
pkt.pts [6006]
video pkt


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to