Before I submit this bug (have not been able to figure out how to make a 
'minimal' testcase, yet), I do have a question.
I think I can see that the video stream of what comes out of the remuxing 
process is playing at half speed, and badly out of sync with the audio.
The original video has these specs according to VLC:
Stream 0 (video): MPEG1/2 Video (mpgv), 1280x720, 119.880120 frame rate, 
Streams 1-4 (subtitle)
Stream 5 (audio): A52 Audio (aka AC3) (a52), Channels: 3F2R/LFE, 48 kHz sample 
rate, 384 kb/s bitrate

Is there anything I should be doing to the file before I throw it to
ProjectX or between ProjectX and kmttg?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libav in Ubuntu.
https://bugs.launchpad.net/bugs/997360

Title:
  ffmpeg goes into infinite loop in libavutil51

Status in “libav” package in Ubuntu:
  Incomplete

Bug description:
  I'm using kmttg to convert files downloaded from my TiVo to a format I
  can play on my computer.  Part of the processing for this uses ffmpeg
  to do some conversion.  The ffmpeg command line looks like:

    /usr/bin/ffmpeg -y -fflags genpts -i "/home/me/MyTv/MyShow.m2v" -i
  "/home/me/MyTv/MyShow.ac3" -acodec copy -vcodec

  Whenever I run this it goes a long way, then appears to hang (I've
  left it for 10+ hours, overnight, and it never ended or did anything
  else).

  When I strace the process I can see that it's just running mmap() then
  munmap(), over and over and over with slightly higher memory every
  time.  Even after I left it all that time it still didn't run out of
  memory or die... here's some strace output:

    mmap(NULL, 1292320768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x7f84be747000
    munmap(0x7f850b7bb000, 1292304384)      = 0
    mmap(NULL, 1292374016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x7f84716c6000
    munmap(0x7f84be747000, 1292320768)      = 0
    mmap(NULL, 1292386304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x7f850b7a7000
    munmap(0x7f84716c6000, 1292374016)      = 0
    mmap(NULL, 1292414976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x7f84be71c000
    munmap(0x7f850b7a7000, 1292386304)      = 0

  etc. etc. (this is close to the end, when I killed it--I have 4G
  physical RAM).

  Next I used GDB to attach to the process and set a breakpoint in
  mmap() and got this stacktrace:

  #0  0x00007f855d435860 in mmap64 () from /lib/x86_64-linux-gnu/libc.so.6
  #1  0x00007f855d3c7f5d in ?? () from /lib/x86_64-linux-gnu/libc.so.6
  #2  0x00007f855d3c8291 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
  #3  0x00007f855d3ca556 in memalign () from /lib/x86_64-linux-gnu/libc.so.6
  #4  0x00007f855d3cb799 in posix_memalign ()
     from /lib/x86_64-linux-gnu/libc.so.6
  #5  0x00007f855dc282ab in av_malloc ()
     from /usr/lib/x86_64-linux-gnu/libavutil.so.51
  #6  0x00007f855dc24df9 in av_fifo_alloc ()
     from /usr/lib/x86_64-linux-gnu/libavutil.so.51
  #7  0x00007f855dc2508f in av_fifo_realloc2 ()
     from /usr/lib/x86_64-linux-gnu/libavutil.so.51
  #8  0x00007f855f11ee93 in ?? ()
     from /usr/lib/x86_64-linux-gnu/libavformat.so.53
  #9  0x00007f855f168559 in av_write_trailer ()
     from /usr/lib/x86_64-linux-gnu/libavformat.so.53
  #10 0x000000000040c5ba in ?? ()
  #11 0x0000000000407904 in ?? ()
  #12 0x00007f855d36876d in __libc_start_main ()
     from /lib/x86_64-linux-gnu/libc.so.6
  #13 0x0000000000407a71 in ?? ()
  #14 0x00007fff538af158 in ?? ()
  #15 0x000000000000001c in ?? ()
  #16 0x000000000000000f in ?? ()
  #17 0x00007fff538b1363 in ?? ()
  #18 0x00007fff538b1373 in ?? ()
  #19 0x00007fff538b1376 in ?? ()
  #20 0x00007fff538b137e in ?? ()
  #21 0x00007fff538b1385 in ?? ()
  #22 0x00007fff538b1388 in ?? ()
  #23 0x00007fff538b13d3 in ?? ()
  #24 0x00007fff538b13d6 in ?? ()
  #25 0x00007fff538b1421 in ?? ()
  #26 0x00007fff538b1429 in ?? ()
  #27 0x00007fff538b142e in ?? ()
  #28 0x00007fff538b1436 in ?? ()
  #29 0x00007fff538b143b in ?? ()
  #30 0x00007fff538b143e in ?? ()
  #31 0x00007fff538b1442 in ?? ()
  #32 0x0000000000000000 in ?? ()

  I tried to continue as best I could and from what I can tell, it comes
  back up to the av_write_trailer() function but never leaves that
  function; the infinite looping is happening somewhere under there.  So
  I'm marking this against libav.

  This happens every time, on a couple of different files I tried.

  ~$ uname -smrv
  Linux 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64

  ~$ lsb_release -rd
  Description:  Ubuntu 12.04 LTS
  Release:      12.04

  ~$ apt-cache policy ffmpeg libavutil51 libavformat53
  ffmpeg:
    Installed: 4:0.8.1-0ubuntu1
    Candidate: 4:0.8.1-0ubuntu1
    Version table:
   *** 4:0.8.1-0ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  libavutil51:
    Installed: 4:0.8.1-0ubuntu1
    Candidate: 4:0.8.1-0ubuntu1
    Version table:
   *** 4:0.8.1-0ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  libavformat53:
    Installed: 4:0.8.1-0ubuntu1
    Candidate: 4:0.8.1-0ubuntu1
    Version table:
   *** 4:0.8.1-0ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libav/+bug/997360/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to