Openshot crashes when exporting video

Bug #1075277 reported by CBnation
This bug report is a duplicate of:  Bug #1283675: Editor often crashes. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
New
Undecided
Unassigned

Bug Description

I made a small movie (1'10"), but when I try to export the video (using profile BluRay/AVCHD), openshot crashes after approximately 80% of the process. I have installed the latest openshot (1.4.3) on my Xubuntu 12.04. I had the same problem with openshot 1.4.0, which comes with Xubuntu 12.04 by default.

Full dump of command line below:

------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
--------------------------------
   OpenShot (version 1.4.3)
--------------------------------
Process no longer exists: 3687. Creating new pid lock file.
No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.

Detecting formats, codecs, and filters...
---
video_codecs:
  - a64multi
  - a64multi5
  - asv1
  - asv2
  - bmp
  - cljr
  - dnxhd
  - dpx
  - dvvideo
  - ffv1
  - ffvhuff
  - flashsv
  - flv
  - gif
  - h261
  - h263
  - h263p
  - huffyuv
  - jpegls
  - ljpeg
  - mjpeg
  - mpeg1video
  - mpeg2video
  - mpeg4
  - msmpeg4v2
  - msmpeg4
  - pam
  - pbm
  - pcx
  - pgm
  - pgmyuv
  - png
  - ppm
  - qtrle
  - rawvideo
  - roqvideo
  - rv10
  - rv20
  - sgi
  - snow
  - svq1
  - targa
  - tiff
  - v210
  - v410
  - wmv1
  - wmv2
  - zlib
  - zmbv
  - libdirac
  - libschroedinger
  - libtheora
  - libvpx
  - libx264
  - libxvid
...
---
audio_codecs:
  - aac
  - ac3
  - ac3_fixed
  - alac
  - eac3
  - flac
  - mp2
  - nellymoser
  - real_144
  - vorbis
  - wmav1
  - wmav2
  - roq_dpcm
  - adpcm_adx
  - g722
  - g726
  - adpcm_ima_qt
  - adpcm_ima_wav
  - adpcm_ms
  - adpcm_swf
  - adpcm_yamaha
  - libgsm
  - libgsm_ms
  - libmp3lame
  - libspeex
  - libvo_aacenc
  - libvo_amrwbenc
  - libvorbis
...
---
formats:
  - a64
  - ac3
  - adts
  - adx
  - aiff
  - amr
  - asf
  - ass
  - asf_stream
  - au
  - avi
  - avm2
  - cavsvideo
  - crc
  - daud
  - dirac
  - dnxhd
  - dts
  - dv
  - eac3
  - ffm
  - ffmetadata
  - filmstrip
  - flac
  - flv
  - framecrc
  - framemd5
  - g722
  - gif
  - gxf
  - h261
  - h263
  - h264
  - image2
  - image2pipe
  - ipod
  - ivf
  - latm
  - m4v
  - md5
  - matroska
  - matroska
  - mjpeg
  - mlp
  - mmf
  - mov
  - mp2
  - mp3
  - mp4
  - mpeg
  - vcd
  - mpeg1video
  - dvd
  - svcd
  - mpeg2video
  - vob
  - mpegts
  - mpjpeg
  - mxf
  - mxf_d10
  - null
  - nut
  - ogg
  - oma
  - alaw
  - mulaw
  - f64be
  - f64le
  - f32be
  - f32le
  - s32be
  - s32le
  - s24be
  - s24le
  - s16be
  - s16le
  - s8
  - u32be
  - u32le
  - u24be
  - u24le
  - u16be
  - u16le
  - u8
  - psp
  - rawvideo
  - rm
  - RoQ
  - rso
  - rtp
  - rtsp
  - sap
  - segment
  - smjpeg
  - sox
  - spdif
  - srt
  - swf
  - 3g2
  - 3gp
  - truehd
  - rcv
  - voc
  - wav
  - webm
  - yuv4mpegpipe
  - alsa
  - oss
...
state saved
project state modified
state saved
NEW SDL CONSUMER
on_mnuMakeMovie1_activate called with self.GtkImageMenuItem
on_tlbMakeMovie_clicked called with self.GtkImageMenuItem
on_cboExportType_changed
on_cboUploadServices_changed
on_cboProjectType_changed
on_cboExportTo_changed
on_cboProjectType_changed
on_btnExportVideo_clicked
NEW SDL CONSUMER
[libx264 @ 0xa31a1520] interlace + weightp is not implemented
[ac3_fixed @ 0xa3ffa780] channel_layout not specified
[ac3_fixed @ 0xa3ffa780] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[h264 @ 0x17620140] get_buffer() failed (-1 1 (nil))
[h264 @ 0x17620140] decode_slice_header error
[h264 @ 0x17620140] no frame!
[h264 @ 0x17620b00] get_buffer() failed (-1 0 (nil))
[h264 @ 0x17620b00] decode_slice_header error
[h264 @ 0x18885500] mmco: unref short failure
[h264 @ 0x17620140] get_buffer() failed (-1 1 (nil))
[h264 @ 0x17620140] decode_slice_header error
[h264 @ 0x17620140] no frame!
[h264 @ 0x17620b00] get_buffer() failed (-1 1 (nil))
[h264 @ 0x17620b00] decode_slice_header error
[h264 @ 0x17620b00] no frame!
[h264 @ 0x18885500] get_buffer() failed (-1 0 (nil))
[h264 @ 0x18885500] decode_slice_header error
[h264 @ 0x18885900] mmco: unref short failure
Segmentation fault (core dumped)

Revision history for this message
Andy Finch (fincha) wrote :

It looks as if there is a problem with the libx264 encoder. It's hard to guess what the problem might be. You could try transcoding your source files to a different format and see if that helps. But it appears as if libx264 is having problems with your source files.

Revision history for this message
CBnation (cedric-baelemans) wrote :

Not so familiar with the encoder. What can I do to test further? I would really like to get to the bottom of this problem. Any help appreciated.

Revision history for this message
Andy Finch (fincha) wrote :

The only thing I can think of at the moment is to try transcoding one of your files to a different format, using something like WinFF. If you follow the instructions here with one of your files:

https://answers.launchpad.net/openshot/+faq/983

You will most likely see the same messages in the terminal as you originally posted above.

But it's not possible for us to tell if there is a problem with how you're files were generated or the libx264 decoder itself.

Revision history for this message
CBnation (cedric-baelemans) wrote :

I checked out that link. My movies play just fine with both ffplay and melt. Also, sometimes I manage to export a video, but most of the times it fails. I also experience regular crashes of openshot while editing.

I googled on the errors I was getting, like the get_buffer() failed. On http://ubuntuforums.org/archive/index.php/t-1349956.html, they discuss the same problem but with another software. One thing mentioned is that Nvidia drivers could play a role. I have an Nvidia card. Can this play a role?

I'm currently at the point where openshot is too unstable to continue using. Never had this in the past on older ubuntu versions. I hope someone can help.

Revision history for this message
Andy Finch (fincha) wrote :

Did you try transcoding one of your files to another format?

Revision history for this message
CBnation (cedric-baelemans) wrote :
Download full text (4.1 KiB)

Just tried transcoding, without any errors. See below.

Is there a way to get a verbose output of openshot to see with which options it calls the different tools/libraries?

cedric@PC-living:~/Videos/hb0/deel1$ ffmpeg -i MAH00029.MP4 -vcodec libx264 -s 352x288 -b 300k -r 10 -acodec ac3 -ar 22050 -ab 64k -f mp4 output.mp4

ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Nov 6 2012 16:50:25 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MAH00029.MP4':
  Metadata:
    major_brand : MSNV
    minor_version : 21364851
    compatible_brands: MSNVmp42isom
    creation_time : 2012-06-05 19:31:22
  Duration: 00:00:54.05, start: 0.000000, bitrate: 11028 kb/s
    Stream #0.0(und): Video: h264 (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 10870 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
    Metadata:
      creation_time : 2012-06-05 19:31:22
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time : 2012-06-05 19:31:22
[buffer @ 0x9b804c0] w:1920 h:1080 pixfmt:yuv420p
[scale @ 0x9b7a680] w:1920 h:1080 fmt:yuv420p -> w:352 h:288 fmt:yuv420p flags:0x4
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[libx264 @ 0x9b7f8c0] using SAR=16/11
[libx264 @ 0x9b7f8c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x9b7f8c0] profile Main, level 1.3
[libx264 @ 0x9b7f8c0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=300 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand : MSNV
    minor_version : 21364851
    compatible_brands: MSNVmp42isom
    creation_time : 2012-06-05 19:31:22
    encoder : Lavf53.21.0
    Stream #0.0(und): Video: libx264, yuv420p, 352x288 [PAR 16:11 DAR 16:9], q=-1--1, 300 kb/s, 10 tbn, 10 tbc
    Metadata:
      creation_time : 2012-06-05 19:31:22
    Stream #0.1(und): Audio: ac3, 22050 Hz, stereo, flt, 64 kb/s
    Metadata:
      creation_time : 2012-06-05 19:31:22
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Input stream #0.1 frame changed from rate:48000 fmt:s16 ch:2 to rate:48000 fmt:flt ch:2
Warning, using s16 intermediate sample format for resampling
frame= 542 fps= 14 q=21.0 Lsize= 2412kB time=53.92 bitrate= 366.5kbits/s dup=0 drop=1078
video:1976kB audio:421kB global headers:0kB muxing overhead 0.625923%
frame I:3 Avg QP:15.80 s...

Read more...

Revision history for this message
CBnation (cedric-baelemans) wrote :

I just did a fresh install of ubuntu 12.10, installed openshot, the libavformat-extra and tried to export my video. Exactly the same error. This drives me crazy. Impossible to continue to use openshot like this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.