[FFmpeg-user] Why can I play ogg file but not convert to mkv with FFMPEG?

Erik Streb del Toro mail at erikstreb.de
Sat Mar 1 09:28:25 CET 2014


I want to convert a ogg video to mkv, but different errors appear.

I have two streams (from the same source) that I captured. They are in
an ogg container.

If I try to convert them to mkv with
    ffmpeg -i stream.ogg -c copy -map 0 stream.mkv

the output is as follows

ffmpeg version 0.10.7 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 14 2013 21:35:02 with gcc 4.7.2 20120921 (Red Hat 4.7.2-2)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib --mandir=/usr/share/man --arch=i686
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables' --enable-bzlib --disable-crystalhd
--enable-gnutls --enable-libass --enable-libcdio --enable-libcelt
--enable-libdc1394 --disable-indev=jack --enable-libfreetype
--enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
--enable-avfilter --enable-postproc --enable-pthreads --disable-static
--enable-shared --enable-gpl --disable-debug --disable-stripping
--shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[ogg @ 0x8685b00] Estimating duration from bitrate, this may be inaccurate
Input #0, ogg, from 'stream.ogg':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: theora, yuv420p, 640x480 [SAR 1:1 DAR 4:3], 8
fps, 8 tbr, 8 tbn, 8 tbc
    Stream #0:1: Audio: flac, 48000 Hz, 1 channels, s16
    Metadata:
      ENCODER         : Lavf53.32.100
Output #0, matroska, to '/dev/shm/stream.mkv':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0: Video: theora (theo / 0x6F656874), yuv420p, 640x480
[SAR 1:1 DAR 4:3], q=2-31, 8 fps, 1k tbn, 8 tbc
    Stream #0:1: Audio: flac ([172][241][0][0] / 0xF1AC), 48000 Hz, 1
channels
    Metadata:
      ENCODER         : Lavf53.32.100
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x8835880] Application provided invalid, non monotonically
increasing dts to muxer in stream 1: 1440 >= 1440
av_interleaved_write_frame(): Invalid argument


The files can be played with mplayer and ffplay. They contain one video
and one audio stream:

    $ ffmpeg -i stream.ogg
    [ogg @ 0x85a9b00] Estimating duration from bitrate, this may be
inaccurate
    Input #0, ogg, from 'stream.ogg':
      Duration: N/A, start: 0.000000, bitrate: N/A
        Stream #0:0: Video: theora, yuv420p, 640x480 [SAR 1:1 DAR 4:3],
8 fps, 8 tbr, 8 tbn, 8 tbc
        Stream #0:1: Audio: flac, 48000 Hz, 1 channels, s16
        Metadata:
          ENCODER         : Lavf53.32.100

When I play the files with VLC I get two warnings and two errors (in
red), but the files play:

    TagLib: Vorbis::File::read() - Could not find the Vorbis comment header.
    TagLib: Vorbis::File::read() - Could not find the Vorbis comment header.
    [0xb71029c0] ogg demux error: Got invalid packet, read 62187 of
63676: OggS
    [0xb6d00618] main input error: Invalid PCR value in
ES_OUT_SET_(GROUP_)PCR !

What is the problem with the files? Is there a way to convert the files,
e.g. telling ffmpeg to ignore the errors? It would be no problem to skip
the first or last seconds of the video if that would solve the problem.

Thank you for your attention
Erik

-- 
GPG-Schlüssel-ID: 0x036B38E6
Fingerabdruck: F057 EEEB F0F5 9144 D95C BD98 B822 138F 036B 38E6

Außerdem kann man per Jabber mit mir reden (chatten):
Jabber-ID: wicking at jabber.org
Off-The-Record: DEBD08C2 95E7C8CE 901EC136 E39A1E43 4FC13142

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140301/788b0da0/attachment.asc>


More information about the ffmpeg-user mailing list