[FFmpeg-user] Remuxed TS-file doesn't have any frame rate

Konfuusio Tonttu radioconfusion at gmail.com
Tue Apr 26 14:32:46 CEST 2011


Hi

I have a problem when remuxing AVC+AAC in MP4 to MPEG-TS.
The TS-file doesn't have any frame rate. I have tested with "-r" option but
no luck.
VLC plays broken file fine, but MPlayer doesn't show video without "-fps"
option. Mediainfo doesn't show any frame rate to TS-file.

How I can solve this problem?
Thanks.

Best Regards, Jussi


$ ffmpeg -i test1.mp4 -acodec copy -vcodec copy -vbsf h264_mp4toannexb -f
mpegts test1.ts

ffmpeg version git-N-29386-g3788a3c, Copyright (c) 2000-2011 the FFmpeg
developers
  built on Apr 26 2011 14:50:11 with gcc 4.4.3
  configuration: --prefix=/usr --enable-avfilter --enable-vdpau
--enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--disable-stripping --enable-runtime-cpudetect --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--enable-shared --disable-static --enable-libmp3lame
  libavutil    51.  0. 0 / 51.  0. 0
  libavcodec   53.  1. 0 / 53.  1. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  0. 0 /  2.  0. 0
  libswscale    0. 13. 0 /  0. 13. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 1 codec frame rate differs from container frame rate: 1200.00
(1200/1) -> 25.00 (25/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test1.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2008-10-08 18:07:47
  Duration: 00:02:40.89, start: 0.000000, bitrate: 6434 kb/s
    Stream #0.0(eng): Audio: aac, 32000 Hz, stereo, s16, 93 kb/s
    Metadata:
      creation_time   : 2008-10-08 18:07:47
    Stream #0.1(eng): Video: h264 (Main), yuv420p, 1280x544, 3058 kb/s, 25
fps, 25 tbr, 600 tbn, 1200 tbc
    Metadata:
      creation_time   : 2008-10-08 18:07:47
    Stream #0.2(eng): Data: rtp  / 0x20707472, 3179 kb/s
    Metadata:
      creation_time   : 2008-10-08 18:07:47
    Stream #0.3(eng): Data: rtp  / 0x20707472, 96 kb/s
    Metadata:
      creation_time   : 2008-10-08 18:07:47
File 'test1.ts' already exists. Overwrite ? [y/N] y
[mpegts @ 0x10e4380] muxrate VBR, pcr every 60 pkts, sdt every 200, pat/pmt
every 40 pkts
Output #0, mpegts, to 'test1.ts':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2008-10-08 18:07:47
    encoder         : Lavf53.0.3
    Stream #0.0(eng): Video: avc1 / 0x31637661, yuv420p, 1280x544, q=2-31,
3058 kb/s, 90k tbn, 600 tbc
    Metadata:
      creation_time   : 2008-10-08 18:07:47
    Stream #0.1(eng): Audio: aac, 32000 Hz, stereo, 93 kb/s
    Metadata:
      creation_time   : 2008-10-08 18:07:47
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 4022 fps=  0 q=-1.0 Lsize=   67273kB time=160.80
bitrate=3427.2kbits/s
video:60056kB audio:1832kB global headers:0kB muxing overhead 8.700379%




$ mplayer test1.ts
MPlayer SVN-r31097-4.4.3 (C) 2000-2010 MPlayer Team

Playing test1.ts.
TS file format detected.
VIDEO H264(pid=256) AUDIO AAC(pid=257) NO SUBS (yet)!  PROGRAM N. 1
FPS not specified in the header or invalid, use the -fps option.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)

Unsupported LATM configuration: 3 programs/ 56 subframes, 5 layers,
allstreams: 0

Unsupported LATM configuration: 10 programs/ 25 subframes, 7 layers,
allstreams: 0
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or
directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.8 (02.8) of 4305.4 ( 1:11:45.4)  0.8%

MPlayer interrupted by signal 2 in module: play_audio
A:   2.8 (02.8) of 4305.4 ( 1:11:45.4)  0.8%
Exiting... (Quit)



$ mediainfo test1.mp4 | grep -i "frame rate  "
Frame rate                       : 25.000 fps



$ mediainfo test1.ts | grep -i "frame rate"
$


More information about the ffmpeg-user mailing list