Advertisement
Guest User

Mlt on Win32

a guest
Jul 24th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. Using SDL:
  2.  
  3. VM@VM-PC MSYS ~/mltBuild/mlt/build
  4. $ gcc test.c -lmlt -L/c/msys32/home/VM/mltBuild/mlt/build/lib && ./a.exe
  5. start
  6. Creating consumer 003B67E0
  7. Creating producer 002ED260
  8. Connecting 002ED260 to 003B67E0
  9. Starting consumer 003B67E0
  10. Wait for consumer
  11. Wait more for consumer...
  12. Wait more for consumer...
  13. (... forever. SDL window is spawned but is unresponsive, using 1 full cpu core)
  14.  
  15. // Let's say maybe it is a problem with SDL on windows. Using avformat. Pointing to valid file and valid writable directory.
  16.  
  17. mlt_consumer consumer = mlt_factory_consumer(NULL, "avformat", "C:\\msys32\\home\\VM\\mltBuild\\mlt\\build\\OUT.mp4");
  18. mlt_producer producer = mlt_factory_producer(NULL, "avformat", "C:\\msys32\\home\\VM\\mltBuild\\mlt\\build\\test.mp4");
  19.  
  20. VM@VM-PC MSYS ~/mltBuild/mlt/build
  21. $ gcc test.c -lmlt -L/c/msys32/home/VM/mltBuild/mlt/build/lib && ./a.exe
  22. Segmentation fault
  23.  
  24. In GDB:
  25. $ gdb a.exe
  26. GNU gdb (GDB) 7.10.1
  27. Copyright (C) 2015 Free Software Foundation, Inc.
  28. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  29. This is free software: you are free to change and redistribute it.
  30. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  31. and "show warranty" for details.
  32. This GDB was configured as "i686-w64-mingw32".
  33. Type "show configuration" for configuration details.
  34. For bug reporting instructions, please see:
  35. <http://www.gnu.org/software/gdb/bugs/>.
  36. Find the GDB manual and other documentation resources online at:
  37. <http://www.gnu.org/software/gdb/documentation/>.
  38. For help, type "help".
  39. Type "apropos word" to search for commands related to "word"...
  40. Reading symbols from a.exe...done.
  41. (gdb) r
  42. The program being debugged has been started already.
  43. Start it from the beginning? (y or n) [answered Y; input not from terminal]
  44. Starting program: C:\msys32\home\VM\mltBuild\mlt\build\a.exe
  45. [New Thread 3016.0x534]
  46. [New Thread 3016.0x9c0]
  47. [New Thread 3016.0xc08]
  48. [New Thread 3016.0xec8]
  49. [New Thread 3016.0xf78]
  50. [New Thread 3016.0xd44]
  51. [New Thread 3016.0x4ec]
  52. [New Thread 3016.0xe84]
  53. [New Thread 3016.0xf98]
  54. [New Thread 3016.0x24c]
  55. [New Thread 3016.0x9f0]
  56. [New Thread 3016.0xa78]
  57. [New Thread 3016.0x400]
  58.  
  59. Program received signal SIGSEGV, Segmentation fault.
  60. [Switching to Thread 3016.0x9c0]
  61. convert_image (self=self@entry=0x1ae5958, frame=0x24c4800,
  62. buffer=0xc1f0040 "", pix_fmt=0, format=format@entry=0x2db21c, width=720,
  63. height=576, alpha=alpha@entry=0x272fdc4) at producer_avformat.c:1361
  64. 1361 mlt_log_debug( MLT_PRODUCER_SERVICE(self->parent), "%s @ %dx%d space %d->%d\n",
  65. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement