Hi got a problem, hope you can help:

I have been using code from the output_example.c that is provided with ffmpeg to mux and packetise a mpeg2 video stream and PCM audio (16bit 48Khz 1 channel).

The problem is that when I am muxing in the audio (a sine wave for debug) that the file that comes out will play in mplayer, however the audio is just noise until you seek back to the start, then you get normal audio playback.

I have managed to extract the audio from the resulting mpeg file with ffmpeg again using
tmonag...@waen:/opt/root/davinci/mv5/opt/dvsdk/dm365/examples$ ffmpeg -i test.mpeg2 -vn -acodec copy -f S16BE ES_Audio.m2a
I am worried about the line below as the timestamps seem to be a issues and may explain the issues with playback, does anyone have any ideas to correct this?? is this a PTS initialization issue?

[mpeg @ 0xa000290]Invalid timestamps stream=0, pts=0, dts=8589930992, size=2011
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration:
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Sep  7 2009 15:04:32, gcc: 4.3.3
[mpeg @ 0xa000290]Invalid timestamps stream=0, pts=0, dts=8589930992, size=2011
[mpeg2video @ 0xa025b60]end mismatch left=10 7F
[mpeg2video @ 0xa025b60]Warning MVs not available
[mpeg2video @ 0xa025b60]concealing 45 DC, 45 AC, 45 MV errors

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Input #0, mpeg, from 'test.mpeg2':
  Duration: 00:01:13.84, start: 0.000000, bitrate: 2306 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 1:1 DAR 5:4], 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
File 'ES_Audio.m2a' already exists. Overwrite ? [y/N] y
Output #0, mp2, to 'ES_Audio.m2a':
    Stream #0.0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
[mpeg @ 0xa000290]Invalid timestamps stream=0, pts=0, dts=8589930992, size=2011 size= 13845kB time=73.84 bitrate=1535.9kbits/s video:0kB audio:13845kB global headers:0kB muxing overhead 0.000000%



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

Reply via email to