After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 797206 - There are duplicate frames when cutting and further gluing adjacent segments
There are duplicate frames when cutting and further gluing adjacent segments
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-editing-services
1.14.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-09-26 10:14 UTC by Oleg
Modified: 2018-11-03 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output file via Pitivi (501.29 KB, video/mp4)
2018-09-26 10:14 UTC, Oleg
Details

Description Oleg 2018-09-26 10:14:51 UTC
Created attachment 373767 [details]
output file via Pitivi

Hi!
I want to cut and then combine to segments from original file (duration of file is 2.569 seconds)

I use next command line for it:
ges-launch-1.0 +clip input.mkv inpoint=0 duration=1.5 +clip input.mkv inpoint=1.5 duration=1.5 -o output.via.ges-launch.ogv

and I use Pitivi also.

In both cases, the output file contains the jerks of the image at the glue point (see attachment).

Attachments can be downloaded here (a total of about 6 megabytes):
https://yadi.sk/d/etFcfITZCm-qvQ

input.mkv - original file
output.via.Pitivi.mp4 - output via Pitivi
output.via.ges-launch.ogv - output via ges-launch

What is the problem and how can I avoid it.
Big thanks!
Comment 1 Thibault Saunier 2018-09-26 13:00:54 UTC
There seems to be a problem when seeking on your input file (codec is `video/x-vp6-flash` which is not officially supported by Pitivi, thus not very well tested in GES).

You should use proxies in Pitivi for it to work, and I tested and it works just fine.

Also your file lasts 2.56sec but `ges-launch-1.0 +clip input.mkv inpoint=0 duration=1.5 +clip input.mkv inpoint=1.5 duration=1.5` will try to play that file from 1.5 to 3 (in the second part).

Please confirm it works using proxies and we should change the bug title as I believe the issue is much les generic than stated in there.
Comment 2 Oleg 2018-09-27 10:01:36 UTC
I found another video with a similar problem. Source video codec format is "video/mpeg" (mpegversion: 4)

source file: "Matrix_Reloaded_Trailer_XviD_AAC_11sub_640x346.mkv"
result file: "Matrix_Reloaded_Trailer_XviD_AAC_11sub_640x346.mkv_out.mkv"

Attachments (~25 Mb):
https://yadi.sk/d/v6hRV3g4MTFvCQ

I use next command file (under windows):

set file=Matrix_Reloaded_Trailer_XviD_AAC_11sub_640x346.mkv
ges-launch-1.0 
 +clip %file% inpoint=70 duration=5^
 +clip %file% inpoint=75 duration=5^
 -o %file%_out.mkv^
 -f video/x-matroska:video/x-h264:audio/mpeg

---
I want to use file with codec `video/x-vp6-flash` in my program.
How can I use GES in my program with fast and accurate editing with this and others video formats ?
Do I need to use proxy files, as Pitivi does (i.e. transcode the original video into the MJPEG codec format before editing)?
Comment 3 Oleg 2018-09-27 10:18:47 UTC
Actually use of proxy files for me is not quite an appropriate solution (in my programm). How can i use fast and accurate editing with this and others video formats via GES without proxy...?
Comment 4 Thibault Saunier 2018-09-27 12:15:07 UTC
(In reply to Oleg from comment #3)
> Actually use of proxy files for me is not quite an appropriate solution (in
> my programm). How can i use fast and accurate editing with this and others
> video formats via GES without proxy...?

To me there is a bug somewhere (not 100% sure where, but I would guess outside GES itself) and we will need to fix it :-)
Comment 5 Thibault Saunier 2018-09-27 12:44:37 UTC
(In reply to Oleg from comment #2)
> I found another video with a similar problem. Source video codec format is
> "video/mpeg" (mpegversion: 4)
> 
> source file: "Matrix_Reloaded_Trailer_XviD_AAC_11sub_640x346.mkv"
> result file: "Matrix_Reloaded_Trailer_XviD_AAC_11sub_640x346.mkv_out.mkv"
> 
> Attachments (~25 Mb):
> https://yadi.sk/d/v6hRV3g4MTFvCQ
> 
> I use next command file (under windows):
> 
> set file=Matrix_Reloaded_Trailer_XviD_AAC_11sub_640x346.mkv
> ges-launch-1.0 
>  +clip %file% inpoint=70 duration=5^
>  +clip %file% inpoint=75 duration=5^
>  -o %file%_out.mkv^
>  -f video/x-matroska:video/x-h264:audio/mpeg
> 
> ---
> I want to use file with codec `video/x-vp6-flash` in my program.
> How can I use GES in my program with fast and accurate editing with this and
> others video formats ?
> Do I need to use proxy files, as Pitivi does (i.e. transcode the original
> video into the MJPEG codec format before editing)?

Seeking on this file is broken (for some reason we start decoding before a keyframe and first frames are broken)
Comment 6 GStreamer system administrator 2018-11-03 12:54:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/43.