I can't seem to open 1080i MPEG2 with AC3 audio in a .ts file using r7902 on OSX.
I'm not sure when this started, as I haven't tried this before. I used dd to make a
small sample file of a PBS (Public Broadcast System) TV show that was broadcast
over the air in HD recently. It is legal content from a commercial free network.
Error Summary:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000011235c000
0x00007fff94b13d51 in memmove$VARIANT$sse42 ()
Steps to reproduce:
Build avidemux-2.6 in debug mode (or release mode) using llvm-gcc or clang.
Open this file (10 MB): https://github.com/2bits/samples/raw/master/PBS.1080i.sample.ts
Segfault 11 before it gets finished loading it.
This happens using avidemux or avidemux_cli, with or without OpenGL enabled.
Logfiles: I have pasted into a gist the following data:
- The MediInfo for that video (https://gist.github.com/raw/2508185/89d9057d1044b927d4e21d36ff7c5bf600fd6bfd/MediInfo.txt)
- The Avidemux log copied from the terminal output (https://gist.github.com/raw/2508185/04a4fb7c2a600e4ad2692d0ab635516d5551a355/Terminal.output.txt)
- The OSX crash report (https://gist.github.com/raw/2508185/fb642123678e92e4a6a5b789dd7a1af3a6924e6b/OSX%20Crash%20Report)
- The gdb backtrace (https://gist.github.com/raw/2508185/3062bb0ba3d75f6905248585997df756f048a8a6/gdb%20backtrace)
- The gdb disass $pc-32,$pc+32 (https://gist.github.com/raw/2508185/10f25e81021a5abb2dbeb625608f21f622b26f22/gdb%20disass%20of%20memmove)
- The gdb info all-registers (https://gist.github.com/raw/2508185/ba582e47f3b2c042d120b1541a07f263e1e82cb5/gdb%20info%20all-registers)
I would try to provide more info, e.g. what BitBlit was sending to memmove, but I'm not sure how to do that.
I have tried to open a few other 1080i videos that were all encoded the same way using the same setup, without success.
I can successfully open a 480i encoded the same way. I suppose it goes through different steps.
This is not critical, but it would be nice if it worked.
Opens here (Ubuntu 11.10 64-bit) with 2.6 r7902. The terminal output when opening the clip uploaded by you: https://gist.github.com/2508662
Try not using OpenGL (only for Nvidia) in avidemux, have problems to with OpenGL on Intel core I3 and I5 gpu's. Try, if you have the choice, X11 or xvideo for output
Seems to crash in a sse4 variant of memmove
If the source & destination address are legit, shouldnt crash
With the gdb backtrack could you try to dump what it's trying to copy to see if the source& dest address are ok ?
@jan thanks for checking that it works for you. In my OP I mentioned it occurs with or without OpenGL.
@mean Here is the output of bt full (https://raw.github.com/gist/2516440) that shows a lot of more information than the backtrace I linked above. If there's another command I should use, please let me know.
Ok, found the problem
It is an issue with coded height vs real height
The real height is 1080 but it is coded inside 1088 height
Avidemux tries to copy the 1088 lines, but only 1080 are actually usable
I fixed something similar for h264, need to do it for mpeg2
Thanks for the infos, it helped a lot
Should be fixed now
& Remove the index file
Thanks for the fix. It works now using r7907, built with clang or llvm-gcc.