OpenShot unable to select middle part of .MTS files

Bug #825870 reported by robu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Invalid
Undecided
Unassigned

Bug Description

When I select a middle part of imported .MTS file, the resulting fragment has the correct part for the audio, however the selected part of the video is from the start.

Input format: .MTS (AVCHD), 1280x720, from Parasonic Lumix TZ7
Output format: Web - Vimeo SD Widescreen - Square NTSC Widescreen - Average
Platform: OpenShot 1.3.1 on Ubuntu 10.04 on Intel Q8300

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

@Andy Finch: Thanks. I will follow the FAQ. This will take a few days, as I am abroad now.

Revision history for this message
robu (robu) wrote :
Download full text (5.5 KiB)

Attached are the used input .MTS file and the generated .mp4 file.
The video starts with title of 4 seconds build from a JPEG image on track 1 and a Smoke 2 title on track 2

both ffplay and melt give a "invalid" screen for the first 4 seconds. After this the fragment has the same problem as reported. Note that the sound of the Geysir doesn't match the image.

Seems related to https://bugs.launchpad.net/openshot/+bug/826830

Output:

r@R:~/Video's/Bug Openshot middle part$ ffplay Export_Vimeo-SD-Widescreen_Square-NTSC-Widescreen_Average.mp4
FFplay version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2003-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 1 / 52.20. 1
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Mar 31 2011 18:59:37, gcc: 4.4.3
Export_Vimeo-SD-Widescreen_Square-NTSC-Widescreen_Average.mp4: no such file or directory
ronald@RoLiQuad:~/Video's/Bug Openshot middle part$ ffplay Export_Vimeo-SD-Widescreen_Square-NTCS-Widescreen_Average.mp4
FFplay version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2003-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 1 / 52.20. 1
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Mar 31 2011 18:59:37, gcc: 4.4.3
r@R:~/Video's/Bug Openshot middle part$ ffplay Export_Vimeo-SD-Widescreen_Square-NTCS-Widescreen_Average.mp4
FFplay version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2003-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 1 / 52.20. 1
  libavformat 52.31. 0 / 52.31. 0
  libavdevi...

Read more...

Revision history for this message
robu (robu) wrote :

Here the input file

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

I'm a bit confused, the input MTS file you have attached doesn't seem to relate at all to your output video. Also, you should use the ffplay & melt commands on the input files, not the exported output file. Thanks.

Revision history for this message
robu (robu) wrote :
Revision history for this message
robu (robu) wrote :

I corrected the input file.

ffplay and melt both show the input file with sound and video in sync.
ffplay shows the file perfect, melt plays the file with white pixels in people moving, an artifact I also have in the output file.

I did some extra actions here. When I start from scatch and create a simple project with just this fragment then the problem doesn't occur. Also when I reimported the .mts file again then the problem seem to solve. I can imagine that the problem is difficult to reproduce.

The output of the ffmpeg -i command on the input file is as follows:

$ ffmpeg -i 20110707_133134_00008.MTS
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 1 / 52.20. 1
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Mar 31 2011 18:59:37, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 100.00 (100/1) -> 25.00 (25/1)
Input #0, mpegts, from '20110707_133134_00008.MTS':
  Duration: 00:00:40.03, start: 0.377122, bitrate: 15465 kb/s
  Program 1
    Stream #0.0[0x1011]: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 100 tbc
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified

Revision history for this message
robu (robu) wrote :

Correction: after a re-export the video showed good in the preview pane, however the exprted video had still the same problem

Revision history for this message
robu (robu) wrote :

And below is the output when openshot is started from a terminal, I open the project and I play it and close it again. The [h264... messages are displayed at the beginning of the fragment which has the problems.

I also noted that after import you get a good preview, however if you close and open the project, then the preview is also invalid again.

$ openshot

------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
--------------------------------
   OpenShot (version 1.3.1)
--------------------------------
Process no longer exists: 3714. Creating new pid lock file.
state saved
project modified: Opened project
state saved
NEW SDL CONSUMER
on_tlbPlay_clicked called with self.GtkToolButton
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[h264 @ 0x7fc4102e1af0]sps_id out of range
[h264 @ 0x7fc4102e1af0]non-existing SPS 31 referenced in buffering period
[h264 @ 0x7fc4102e1af0]non-existing PPS referenced
[producer avformat] /home/ronald/Video's/2011 SNP IJsland/20110707_133134_00008.MTS
    invalid PTS; DISABLING NEW_SEEK!
on_frmMain_destroy

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

Yes you're right, I'm having trouble reproducing this. I'm having no problems in Openshot with this file, after cutting a section out of the file, and closing and reopening the project. I also do not see that terminal output. I DO see that terminal output when seeking within the file when playing it back with ffplay (I also get a green flash), I do not get any white pixels with melt either. My versions of ffmpeg/ffplay are version 0.6.2-4:0.6.2-1ubuntu1 and MLT is 0.6.2.

Maybe this is an issue with the particular combination of versions of ffmpeg/MLT that you have?

Revision history for this message
robu (robu) wrote :

I have removed melt ffmpeg and OpenShot and updated OpenShot with a PPA. This didn update melt and ffmpeg. How do I get new versions of them? Which PPA's?

Revision history for this message
robu (robu) wrote :

I used the experimental PPA of lucid-bleed to get a new mlt. I had to experiment to get things working again, as the dependencies are not perfect.

The preview is in-sync, although the preview is not smooth, it stops regularly. The errors on terminal are disappeared.
The exported file could not be played by totem as the h264 codec is removed due to dependencies the codecs, I don't know how to fix.
The exported file could be played on the netbook running Ubuntu 11.04. The video and audio are in sync now, and the correct part is indeed shown. Also the white pixels problem seem to be disappeared.

So I hope there is a better way to upgrade OpenShot/melt/mlt/ffmpeg in Ubuntu 10.04. This is likely to solve my problems.

Revision history for this message
robu (robu) wrote :

Note: The video exported with the experimental versions has new artifacts: Track 2 is delayed for ca 1 second, and the title (on track 2) didn't cover the picture (on track 1) anymore completely, it was shifted some mm to the left. Hopefully this is solved by using stable versions.

Revision history for this message
robu (robu) wrote :

I have shifted the fragments on track 2. With this workaround my videos where fine.
I installed VLC, this shows the videos perfect.

@Andy: Thanks for your great help. I guess I update ubuntu to 11.10 when available to get a stable and consistent set again.

SUMMARY:
Problem likely to be solved in ffmpeg/ffplay/MLT version 0.6.2. So in Ubuntu 11.04 and above.

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