RidgeRun / gst-crypto

GNU Lesser General Public License v2.1
11 stars 7 forks source link

video stop after few seconds with default blocksize #8

Open ghost opened 6 years ago

ghost commented 6 years ago

With default blocksize avi video stop after few seconds, with blocksize=32768 crash after few minutes, but video length is 27minutes.

I tried raspbian jessie with default gstreamer and raspbian strech with compiled gstreamer 1.12.5 without X, but the result was same. here is gstreamer log:

0:00:26.104758227 867 0x1dee9b0 INFO crypto gstcrypto.c:541:remove_padding: Padding inconsistent, number: x1 expected x93 0:00:26.105107027 867 0x1dee9b0 INFO crypto gstcrypto.c:541:remove_padding: Padding inconsistent, number: x1 expected xCA 0:00:26.105461088 867 0x1dee9b0 INFO crypto gstcrypto.c:541:remove_padding: Padding inconsistent, number: x1 expected x7E 0:00:26.106431499 867 0x1dee9b0 INFO crypto gstcrypto.c:541:remove_padding: Padding inconsistent, number: x1 expected xE0 0:00:26.146880771 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 2944 < 57970 0:00:26.147112124 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 7040 < 57970 0:00:26.147717590 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 11136 < 57970 0:00:26.147865141 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 15232 < 57970 0:00:26.148006078 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 19328 < 57970 0:00:26.148146181 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 23422 < 57970 0:00:26.148285764 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 27518 < 57970 0:00:26.148423732 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 31614 < 57970 0:00:26.148561752 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 35710 < 57970 0:00:26.148699043 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 39806 < 57970 0:00:26.148838000 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 43902 < 57970 0:00:26.148975916 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 47998 < 57970 0:00:26.149118989 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 52094 < 57970 0:00:26.149258155 867 0x1dee980 INFO avidemux gstavidemux.c:1030:gst_avi_demux_peek_chunk: need more 56190 < 57970 0:00:26.147527174 867 0x1dee9b0 INFO crypto gstcrypto.c:541:remove_padding: Padding inconsistent, number: x1 expected xDF 0:00:26.150664137 867 0x1dee9b0 INFO basesrc gstbasesrc.c:2849:gst_base_src_loop: pausing after gst_pad_push() = eos 0:00:26.150901740 867 0x1dee9b0 INFO task gsttask.c:319:gst_task_func: Task going to paused 0:00:26.172019392 867 0x1dee980 INFO task gsttask.c:319:gst_task_func: Task going to paused 0:00:26.867205625 867 0x1dee8c0 WARN audiobasesink gstaudiobasesink.c:1491:gst_audio_base_sink_skew_slaving: correct clock skew -0:00:00.020016235 < -+0:00:00.020000000 0:00:27.891688080 867 0x1dee8c0 WARN audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment: Unexpected discontinuity in audio timestamps of -0:00:00.040000000, resyncing 0:00:28.479085533 867 0x1dee660 ERROR glmemory gstglmemoryegl.c:201:_gl_mem_copy: GstGLMemoryEGL does not support copy 0:00:28.486582162 867 0x6fd53630 INFO task gsttask.c:319:gst_task_func: Task going to paused 0:00:28.487141898 867 0x1dee920 INFO task gsttask.c:319:gst_task_func: Task going to paused 0:00:28.510681207 867 0x1dee8c0 INFO task gsttask.c:319:gst_task_func: Task going to paused 0:00:28.518345856 867 0x1dee860 INFO task gsttask.c:319:gst_task_func: Task going to paused

josejich commented 6 years ago

Hi @michalpustejovsky ,

Have you tested this with other AVI files and had the same results? It will be of great use if you can point us to the file you are using to reproduce the issue. Also, please provide the pipeline you are using.

ghost commented 6 years ago

Yes, im having same issue with other files.

big_buck_bunny_720p_stereo.avi stop after 2'25'', with blocksize=32768 there is no problem and video finished after 9'56

big_buck_bunny_720p_h264.mov stop after 2'01'', change blocksize parameter doesn't make any differences

when i tried to convert file with avconv to mp4 avconv -i big_buck_bunny_720p_h264.mov -b:v 12M big_buck_bunny_720p_h264.mp4

im getting:

(gst-launch-1.0:800): GStreamer-WARNING **: Trying to set string on structure field 'debug', but string is not valid UTF-8. Please file a bug.

encoded files

josejich commented 6 years ago

Thanks, a ticket was created for this and will be checking the issue.