[MPlayer-dev-eng] [PATCH v2] Fix offsetting in Theora video files

Giorgio mywing81 at gmail.com
Tue Mar 23 00:11:13 CET 2010


2010/3/22 Carl Eugen Hoyos <cehoyos at ag.or.at>:
> Giorgio <mywing81 <at> gmail.com> writes:
>
>> This is my second attempt at fixing offsetting in Theora video files
>> with mplayer (you can read about the first one here:
>> http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2010-March/064022.html
>
> I'd just like to add that for the mentioned sample -
> http://v2v.cc/~j/theora_testsuite/offset_test.ogv - ffmpeg ignores crop and
> offset values and simply decodes the whole encoded frame (and I believe that
> makes sense), MPlayer (with vc theora) crops but ignores the offset (which does
> not make sense at all).

Uhm, I just tried ffmpeg with
http://blip.tv/file/get/Miropcf-Miro20Introduction771.ogv (frame size
is 560x384, picture size is 556x370 and offset [2,6]) and it does not
ignore the picture size, but it ignores the offsets. What I get is an
output video with a black bar on the top:

holden at rye:~/ogv$ ../src/ffmpeg/ffmpeg -i
Miropcf-Miro20Introduction771.ogv out.avi
FFmpeg version SVN-r22612, Copyright (c) 2000-2010 the FFmpeg developers
  built on Mar 21 2010 01:58:25 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-gpl --enable-libtheora --enable-libvorbis
--enable-libx264 --enable-libxvid
  libavutil     50.12. 0 / 50.12. 0
  libavcodec    52.59. 0 / 52.59. 0
  libavformat   52.56. 1 / 52.56. 1
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[theora @ 0x1104830]7 bits left in packet 82
Input #0, ogg, from 'Miropcf-Miro20Introduction771.ogv':
  Duration: 00:01:51.75, start: 0.000000, bitrate: 713 kb/s
    Stream #0.0: Video: theora, yuv420p, 556x370, PAR 1:1 DAR 278:185,
30 fps, 30 tbr, 30 tbn, 30 tbc
    Stream #0.1: Audio: vorbis, 44100 Hz, mono, s16, 69 kb/s
[theora @ 0x1104830]7 bits left in packet 82
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf52.56.1
    Stream #0.0: Video: mpeg4, yuv420p, 556x370 [PAR 1:1 DAR 278:185],
q=2-31, 200 kb/s, 30 tbn, 30 tbc
    Stream #0.1: Audio: mp2, 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 3352 fps=218 q=31.0 Lsize=    4722kB time=111.73 bitrate=
346.2kbits/s
video:3654kB audio:873kB global headers:0kB muxing overhead 4.291983%

so it doesn't seem to work in the same way with all files :(

> So either this (or a similar patch) should be applied, or the cropping disabled,
> imo.

I hope it will be the former :)

Giorgio Vazzana



More information about the MPlayer-dev-eng mailing list