OpenShot crashes on importing camstudio videos

Bug #691396 reported by phil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Fix Released
Undecided
Unassigned

Bug Description

I am trying to edit screen captures made using CamStudio on windows.

This video plays fine with ffplay.
melt segfaults if you try to play it.
OpenShot segfaults if you try to import it.

Here are the details from ffmpeg about my video:
Input #0, avi, from 'openshot_website.avi':
  Duration: 00:00:02.00, start: 0.000000, bitrate: 5109 kb/s
    Stream #0.0: Video: camstudio, rgb32, 1005x721, 30 tbr, 30 tbn, 30 tbc

This is on Ubuntu 10.04 with OpenShot 1.2.2 installed via PPA.

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

Hi,
I don't know what is this codec but personally, i am not able to read it and he didn't find the appropriated greffon for this.
I prefer to use Mediainfo who gives us more explanations. See here how to install it : http://openshotusers.com/forum/viewtopic.php?f=11&t=654&hilit=mediainfo and here too : http://openshotusers.com/forum/viewtopic.php?f=13&t=371
Thanks.

Revision history for this message
phil (fongpwf) wrote :

Here is the information from Mediainfo:
Complete name : \\evomain\home directories\pfong\openshot_website.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 1.22 MiB
Duration : 2s 0ms
Overall bit rate : 5 110 Kbps

Video
Format : CamStudio
Codec ID : CSCD
Codec ID/Info : RenderSoft CamStudio lossless (LZO & GZIP compression)
Duration : 2s 0ms
Bit rate : 5 095 Kbps
Width : 1 005 pixels
Height : 721 pixels
Display aspect ratio : 1.394
Frame rate : 30.000 fps
Bits/(Pixel*Frame) : 0.234
Stream size : 1.21 MiB (100%)

BTW, should this (http://openshotusers.com/forum/viewtopic.php?f=11&t=237) forum post be updated with instructions about Mediainfo? I used those instructions for this bug report.

Also, if you are wondering what CamStudio is... It is a GPLed screen capture program for Windows. The codec is also GPLed and implemented in ffmpeg. http://camstudio.org/

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

>>>BTW, should this (http://openshotusers.com/forum/viewtopic.php?f=11&t=237) forum post be updated with instructions about Mediainfo? I used those instructions for this bug report.
No but Mediainfo is a great tool and you can either have an ouput in a file text either in a graphical way.

>>>Also, if you are wondering what CamStudio is... It is a GPLed screen capture program for Windows. The codec is also GPLed and implemented in ffmpeg. http://camstudio.org/
I know it same if i was having never used it. The problem is not FFmeg who is a conversion tool but more for read it and works with. Strange that this author continue to use a special codec while there is existing a lot of good codecs and free codecs (like it is a free software).
I am not sure that you will find a editor who can work with, without a conversion.

Revision history for this message
phil (fongpwf) wrote :

I'm not sure what you mean the Camstudio codec is open source (GPL) as far as I can tell. Also, it seems to very efficient for screen captures and lossless (at least to my eyes).

In any case, further experimentation seems to show it is not a codec problem. OpenShot still crashes if I convert it to HuffyUV. However, it works after converting to HuffyUV and resizing to a multiple of 4.

Also, even if OpenShot cannot load a file, it should not segfault.

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

>>>I'm not sure what you mean the Camstudio codec is open source (GPL) as far as I can tell. Also, it seems to very efficient for screen captures and lossless (at least to my eyes).
It is not obligatory to use a GPL codec if you are a open source project.

>>>In any case, further experimentation seems to show it is not a codec problem. OpenShot still crashes if I convert it to HuffyUV. However, it works after converting to HuffyUV and resizing to a multiple of 4.
The fact that you must add a multiple of 4 is linked at the specification of the codec. When you have some extra-codecs like this, a conversion is the best way for working with. And it is a reason for privileged the Open codecs.

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

The segfault appears to be coming from MLT (the video library Openshot uses) - as you say the melt player segfaults when you try and play your file. Openshot depends on MLT/ffmpeg for video file support. There is no code in Openshot regarding video file compatibility. I would guess the segfault occurring on import is due to the call to MLT to extract some properties of the file and the initial frame for the thumbnail.

In short, there is nothing that can be fixed in Openshot to enable playback of this file.

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

If you convert the cam studio video files with the following syntax, the resulting video file plays fine in OpenShot. I know this doesn't fix the issue, but until MLT fixes the seg fault, this is the best work-around:

Your filename (i.e. cam studio): input.avi
The output filename: output.mp4

ffmpeg -i input.avi -sameq output.mp4

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

What is your version of MLT? The file plays ok for me using the melt player from v0.5.10.

Revision history for this message
moimael (moimael) wrote :

Works for me with mlt 0.6, i mark this as fixed

Changed in openshot:
status: New → Fix Released
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.