[FFmpeg-user] unable to play mpeg transcoded stream on mplayer or Vlc

Tom Evans tevans.uk at googlemail.com
Fri Apr 19 17:38:35 CEST 2013


On Fri, Apr 19, 2013 at 3:20 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Tom Evans <tevans.uk <at> googlemail.com> writes:
>
>> MPEG PS is only supposed to have either MPEG 2 Part 1
>> or Mpeg 2 Part 2 video.
>
> Program streams may also contain h264 (and several
> other video codecs iirc).

Hmm, if I try to put h264 into a PS, I get a file that mplayer quickly
loses sync on:

> $ ffmpeg -y -i Oblivion_Trailer_720p.mp4 -c:v libx264 -bufsize 500000000 -profile:v baseline -level:v 3 -s 720x576 -b:v 3.3M temp.mpg
ffmpeg version N-52268-g42bcc40 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 19 2013 15:23:31 with gcc 4.6.4 (FreeBSD Ports
Collection) 20121102 (prerelease)
  configuration: --cc=/usr/local/bin/gcc46
--extra-libs=-L/usr/local/lib --extra-cflags=-I/usr/local/include
--prefix=/usr/local --mandir=/usr/local/man --enable-libx264
--enable-postproc --enable-libfaac --enable-libmp3lame
--enable-libxvid --enable-nonfree --enable-gpl --enable-version3
--enable-libtheora --enable-libvorbis --enable-ffmpeg --enable-ffplay
--enable-ffprobe
  libavutil      52. 27.100 / 52. 27.100
  libavcodec     55.  4.100 / 55.  4.100
  libavformat    55.  3.100 / 55.  3.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 58.100 /  3. 58.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Oblivion_Trailer_720p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp41
    creation_time   : 2012-12-09 02:51:05
    copyright       :
    copyright-eng   :
  Duration: 00:02:36.03, start: 0.000000, bitrate: 5641 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x544, 5506 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 5994 tbc
    Metadata:
      creation_time   : 2012-12-09 02:51:05
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 129 kb/s
    Metadata:
      creation_time   : 2012-12-09 02:51:05
      handler_name    : Apple Sound Media Handler
[libx264 @ 0x805020400] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x805020400] VBV buffer (500000) > level limit (10000)
[libx264 @ 0x805020400] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle Cache64
[libx264 @ 0x805020400] profile Constrained Baseline, level 3.0
Output #0, mpeg, to 'temp.mpg':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp41
    copyright-eng   :
    copyright       :
    encoder         : Lavf55.3.100
    Stream #0:0(eng): Video: h264, yuv420p, 720x576, q=-1--1, 3300
kb/s, 90k tbn, 23.98 tbc
    Metadata:
      creation_time   : 2012-12-09 02:51:05
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 2012-12-09 02:51:05
      handler_name    : Apple Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> mp2)
Press [q] to stop, [?] for help
frame= 3741 fps= 27 q=-2.0 Lsize=   74358kB time=00:02:36.03
bitrate=3903.8kbits/s
video:71598kB audio:2438kB subtitle:0 global headers:0kB muxing
overhead 0.433945%
[libx264 @ 0x805020400] frame I:262   Avg QP:13.22  size: 36029
[libx264 @ 0x805020400] frame P:3479  Avg QP:15.24  size: 18361
[libx264 @ 0x805020400] mb I  I16..4: 38.1%  0.0% 61.9%
[libx264 @ 0x805020400] mb P  I16..4:  6.9%  0.0% 12.6%  P16..4: 33.8%
19.6%  7.7%  0.0%  0.0%    skip:19.4%
[libx264 @ 0x805020400] final ratefactor: 15.59
[libx264 @ 0x805020400] coded y,uvDC,uvAC intra: 63.0% 57.2% 38.6%
inter: 34.3% 35.2% 8.4%
[libx264 @ 0x805020400] i16 v,h,dc,p: 54% 13%  9% 24%
[libx264 @ 0x805020400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 15% 15%  5%
 7%  8%  4%  7%  4%
[libx264 @ 0x805020400] i8c dc,h,v,p: 62% 12% 21%  5%
[libx264 @ 0x805020400] ref P L0: 78.3% 15.2%  6.5%
[libx264 @ 0x805020400] kb/s:3759.09


> $ mplayer temp.mpg
MPlayer UNKNOWN-4.6.4 (C) 2000-2013 MPlayer Team

Playing temp.mpg.
Cache fill:  0.00% (0 bytes)

libavformat version 55.3.100 (internal)
libavformat file format detected.
[mpeg @ 0xded460]max_analyze_duration 5000000 reached at 5004000 microseconds
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (mp2), -aid 0
VIDEO:  [H264]  720x576  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Could not find a UTF-8 locale, some keys will not be handled.
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.4.100 (internal)
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Trying to force audio codec driver family hwac3...
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 128.0 kbit/4.17% (ratio: 16000->384000)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1
and layer-2 audio)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 720x576 => 720x576 H.264 VDPAU acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:   0.9 V:   0.6 A-V:  0.311 ct:  0.003   0/  0 ??% ??% ??,?% 1 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.0 V:   0.8 A-V:  0.147 ct:  0.032   0/  0 ??% ??% ??,?% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.0 V:   0.9 A-V:  0.106 ct:  0.041   0/  0 36% 89%  0.4% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.0 V:   0.9 A-V:  0.117 ct:  0.045   0/  0 34% 86%  0.4% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.1 V:   0.9 A-V:  0.160 ct:  0.049   0/  0 31% 84%  0.4% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.1 V:   0.9 A-V:  0.192 ct:  0.053   0/  0 30% 79%  0.4% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.2 V:   0.9 A-V:  0.234 ct:  0.057   0/  0 28% 74%  0.4% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.2 V:   0.9 A-V:  0.266 ct:  0.062   0/  0 26% 70%  0.4% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.5 V:   1.2 A-V:  0.305 ct:  0.070   0/  0 18% 48%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.6 V:   1.2 A-V:  0.337 ct:  0.074   0/  0 17% 47%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.6 V:   1.2 A-V:  0.380 ct:  0.078   0/  0 17% 45%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.6 V:   1.2 A-V:  0.412 ct:  0.082   0/  0 16% 43%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.7 V:   1.2 A-V:  0.454 ct:  0.087   0/  0 16% 42%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   1.7 V:   1.2 A-V:  0.486 ct:  0.091   0/  0 15% 41%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   2.0 V:   1.5 A-V:  0.514 ct:  0.099   0/  0 12% 32%  0.3% 6 0 99%
No pts value from demuxer to use for frame!
pts after filters MISSING
A:   2.1 V:   1.5 A-V:  0.557 ct:  0.103   0/  0 12% 31%  0.3% 6 0 99%

A-V keeps increasing after that. I don't know why mplayer says
UNKNOWN, I built it about 10 minutes ago from f6ad441.

Cheers

Tom


More information about the ffmpeg-user mailing list