export always crash (slow down track inside project)

Bug #1226080 reported by Esteban
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
New
Undecided
Unassigned

Bug Description

Xubuntu 13.04 64 bits.
OpenShot 1.4.3 from ubuntu's official repository.

OpenShot always crash here when i'm trying to export to any format.
The project has an slowdown video-audio track.

If i remove that track, the export finishes just fine.
Put slowed down track back, export crash instantly.

This is the error i get trought the console:

python: /build/buildd/libav-extra-0.8.6ubuntu2/libav/libavutil/mathematics.c:79: av_rescale_rnd: Assertion `c > 0' failed.
Aborted (core dumped)

Revision history for this message
Olivier Girard (eolinwen) wrote :

Hum. This fork of FFmpeg full of bugs.
First, follow this FAQ's :
https://answers.launchpad.net/openshot/+faq/2197
https://answers.launchpad.net/openshot/+faq/2245

Could you follow too this FAQ with your file ? : https://answers.launchpad.net/openshot/+faq/983
Thanks.

Revision history for this message
Esteban (tcattd) wrote :
Download full text (5.9 KiB)

Bug Date: Sept 16th and Today

Reporter: Me

Architecture (64 bits or 32 bits): 64 bits

Plateform (Linux, Windows, Mac OSX): Linux

Operating System (Ubuntu, Archlinux, Seven, Mountain Lion, .....): Xubuntu

Version OS ( 12.04, 7, 10.6, ....): 13.04

New installation or update: fresh install, updated too.

Installation Method: software center, ubuntu's repos

Version of Openshot installed: Openshot 1.4.3

Revision used (if any): no idea.

MLT Version: melt 0.8.8 / MLT 0.8.8-1

FFmpeg version: ffmpeg 6:0.8.6-1ubuntu2

Ffmpeg installation: Ubuntu repos

Summary/Description: OpenShot always crash here when i'm trying to export (to any format) WHEN the project has a slowed down video-audio track inside it.
Also happen with a speedup clip (fastest speed time).

Steps to reproduce: Insert a video, go to clip properties, change speed (slow it down) 1/3 for example, apply, and then try to export to a video.

Additional information: output with OpenShot running in a console:
python: /build/buildd/libav-extra-0.8.6ubuntu2/libav/libavutil/mathematics.c:79: av_rescale_rnd: Assertion `c > 0' failed.
Aborted (core dumped)

######################

Second FAQ, with the script:
Kernel
------
Linux ATTD-Zen 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Architecture
------
x86_64

OS Version
------
Ubuntu 13.04

ffmpeg Version
------
ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
  built on Mar 30 2013 22:20:06 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
ffmpeg 0.8.6-6:0.8.6-1ubuntu2
libavutil 51. 22. 1 / 51. 22. 1
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0

openshot Version
------
openshot 1.4.3-1

ffmpeg Version
------
ffmpeg 6:0.8.6-1ubuntu2

melt / mlt Version
------

Version libreria MLT
------
ii libmlt++3 0.8.8-1 amd64 MLT multimedia framework C++ wrapper (runtime)
ii libmlt-data 0.8.8-1 all multimedia framework (data)
ii libmlt5 0.8.8-1 amd64 multimedia framework (runtime)

Version libreria libav
------
ii gstreamer1.0-libav:amd64 1.0.6-1 amd64 FFmpeg plugin for GStreamer
ii libav-tools 6:0.8.6-1ubuntu2 amd64 Multimedia player, server, encoder and transcoder
ii libavahi-client3:amd64 0.6.31-1ubuntu3 amd64 Avahi client library
ii libavahi-client3:i386 0.6.31-1ubuntu3 i386 Avahi client library
ii libavahi-common-data:amd64 0.6.31-1ubuntu3 amd64 Avahi common data files
ii libavahi-c...

Read more...

Revision history for this message
Olivier Girard (eolinwen) wrote :

I've tried to reproduce your steps but I got any errors but I'm using the true version of ffmpeg (in this last release) on a Manjaro. And it was a 1808 P file with H264 and AAC. Hum I should try on my Linux Mint Olivia.

Revision history for this message
Esteban (tcattd) wrote :

I just test this into a clean Fedora 19 (x64) installation.

OpenShot installed by: yum -y install openshot
OpenShot version: 1.4.3

Exact same error happens.
Crash on exporting a movie with an slowed down clip inside.

FFmpeg version on Fedora 19, from ffmpeg -version on console:
ffmpeg version 1.2.2
built on Aug 4 2013 08:24:19 with gcc 4.8.1 (GCC) 20130603 (Red Hat 4.8.1-1)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100

Revision history for this message
Olivier Girard (eolinwen) wrote :

[olivier@manjaro ~]$ ffmpeg -version
ffmpeg version 2.0.1
built on Aug 11 2013 14:52:28 with gcc 4.8.1 (GCC) 20130725 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[olivier@manjaro ~]$

I'm finishing two things and I'm going to try on Olivia and see if I got the same issue.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Do you have the same version of MlT ?

Revision history for this message
Esteban (tcattd) wrote :

From yum install mlt:

Package mlt-0.8.8-5.fc19.x86_64 already installed and latest version

Revision history for this message
Esteban (tcattd) wrote :

The terminal output from Fedora 19 when OpenShot crash exporting video:

Assertion (int64_t)st2->time_base.num*ast2->rate == (int64_t)st2->time_base.den*ast2->scale failed at /builddir/build/BUILD/ffmpeg-1.2.2/libavformat/avidec.c:1518
Aborted (core dumped)

Revision history for this message
Olivier Girard (eolinwen) wrote :

Strange that 's working on Olivia and the worse, I have the fork................
olivier@fondcombe:~$ ffmpeg -version
ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
  built on Mar 30 2013 22:20:06 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
ffmpeg 0.8.6-6:0.8.6-1ubuntu2
libavutil 51. 22. 1 / 51. 22. 1
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 3.100
libpostproc 52. 0. 0 / 52. 0. 0
olivier@fondcombe:~$

Hum just a idea. Do you have libx264, aac, libmp3lame in Openshot Preferences second tabs ?

A segfault ?

Revision history for this message
Olivier Girard (eolinwen) wrote :

Oupss, an issue when Ffmpeg has been compiled on Fedora.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Could you be able to use gdb and run Openshot with after ?

Revision history for this message
Esteban (tcattd) wrote :

libx264, aac, libmp3lame, all present.

http://i.imm.io/1hcvF.png
http://i.imm.io/1hcvI.png

From:
gdb /usr/bin/openshot

Output:
GNU gdb (GDB) Fedora 7.6.1-41.fc19
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/usr/bin/openshot": not in executable format: File format not recognized
(gdb)

:/

Revision history for this message
Esteban (tcattd) wrote :

Still. Same.

Exporting:
http://i.imgur.com/FPztevF.png

Error when slowed down track hits exporting process:
http://i.imgur.com/dz85vgm.png

Crash and core dump:
http://i.imgur.com/GS9NtpB.png

Console stills says:
Assertion (int64_t)st2->time_base.num*ast2->rate == (int64_t)st2->time_base.den*ast2->scale failed at /builddir/build/BUILD/ffmpeg-1.2.4/libavformat/avidec.c:1518

Fedora 19 x86_64 up to date.

no longer affects: fedora
Revision history for this message
Olivier Girard (eolinwen) wrote : Re: [Openshot.bugs] [Bug 1226080] Re: export always crash (slow down track inside project)

Hum Esteban. I've got the impression that I've lost your answer in my mail
box. Sorry. :-(

That's okay for libx264 and libmp3lame.

I'm going to give you the good explanations for using gdb. I think that 's
the best solution to know where is this issue.
Following this thread (a bit outdated now)
http://openshotusers.com/forum/viewtopic.php?f=12&t=180#p647 and after
testing a working solution , run gdb by the following code :
gdb python
*
*
*
(gdb)run /usr/bin/openshot

and normally openshot should run. And make the same thing and copy paste
the result or make a screenshot like you have already done.
To close gdb use the shortcut : CTRL + D

2013/10/31 Esteban <email address hidden>

> Still. Same.
>
> Exporting:
> http://i.imgur.com/FPztevF.png
>
> Error when slowed down track hits exporting process:
> http://i.imgur.com/dz85vgm.png
>
> Crash and core dump:
> http://i.imgur.com/GS9NtpB.png
>
> Console stills says:
> Assertion (int64_t)st2->time_base.num*ast2->rate ==
> (int64_t)st2->time_base.den*ast2->scale failed at
> /builddir/build/BUILD/ffmpeg-1.2.4/libavformat/avidec.c:1518
>
> Fedora 19 x86_64 up to date.
>
> ** Also affects: fedora
> Importance: Undecided
> Status: New
>
> ** No longer affects: fedora
>
> --
> You received this bug notification because you are a member of OpenShot
> Bugs, which is subscribed to OpenShot Video Editor.
> https://bugs.launchpad.net/bugs/1226080
>
> Title:
> export always crash (slow down track inside project)
>
> Status in OpenShot Video Editor:
> New
>
> Bug description:
> Xubuntu 13.04 64 bits.
> OpenShot 1.4.3 from ubuntu's official repository.
>
> OpenShot always crash here when i'm trying to export to any format.
> The project has an slowdown video-audio track.
>
> If i remove that track, the export finishes just fine.
> Put slowed down track back, export crash instantly.
>
> This is the error i get trought the console:
>
> python:
> /build/buildd/libav-extra-0.8.6ubuntu2/libav/libavutil/mathematics.c:79:
> av_rescale_rnd: Assertion `c > 0' failed.
> Aborted (core dumped)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openshot/+bug/1226080/+subscriptions
>
> --
> Mailing list: https://launchpad.net/~openshot.bugs
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.bugs
> More help : https://help.launchpad.net/ListHelp
>

--
Olivier
Cenwen un elfe sur la banquise/ an elve on the ice
Mon blog perso sur le multimédia, Ubuntu, Linux et OpenShot :
http://linuxevolution.wordpress.com/
Le forum d'Openshot où vous me trouverez : http://openshotusers.com/
http://openshotusers.com/forum/index.php
Nothing is lost until the last second.
The family motto : When we want, we can.
Astuces, Actualités, Logiciels, bref sur tout ce que je ne fais d'articles
dessus Google+ <https://plus.google.com/u/0/111472725110173916234/posts>

Revision history for this message
Olivier Girard (eolinwen) wrote :

Another thought.
Could you put the output of Mediainfo about your file. I'll prefer to have the text version more complete. Thanks.

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.