Menu

#233 melt jpg/mkv (maybe broken) crash

unknown
closed
nobody
None
5
2016-02-17
2015-11-11
CarlFK
No

http://5cda49ca88af98bf1f1e-b4c3b47b38bb1b572e0805ecabeeb59c.r76.cf2.rackcdn.com/20_42_43.mkv

65K 20_42_43.mkv

I am not sure if that file is valid.

Created using the gstreamer pipleline below. hit ^c a few times to get out of the bash loop.

gst-play-1.0 complains about it (also below)

carl@twist:~/temp$ melt $PWD/20_42_43.mkv 
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/carl/local/Shotcut/Shotcut.app/bin/melt...done.
(gdb) run
Starting program: /home/carl/local/Shotcut/Shotcut.app/bin/melt /home/carl/temp/20_42_43.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[mjpeg @ 0x768900] Found EOI before any SOF, ignoring
[mjpeg @ 0x768900] No JPEG data found in image
[matroska,webm @ 0x765120] Could not find codec parameters for stream 0 (Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown), 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mjpeg @ 0x7c8e40] Found EOI before any SOF, ignoring
[mjpeg @ 0x7c8e40] No JPEG data found in image
[matroska,webm @ 0x7c8840] Could not find codec parameters for stream 0 (Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown), 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Assertion desc failed at libswscale/swscale_internal.h:658

Program received signal SIGABRT, Aborted.
0x00007ffff75f5267 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:55
55  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff75f5267 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007ffff75f6eca in __GI_abort () at abort.c:89
#2  0x00007ffff529f9cb in sws_setColorspaceDetails ()
   from /home/carl/local/Shotcut/Shotcut.app/lib/libswscale.so.3
#3  0x00007ffff525b441 in sws_init_context ()
   from /home/carl/local/Shotcut/Shotcut.app/lib/libswscale.so.3
#4  0x00007ffff52a09d3 in sws_getContext ()
   from /home/carl/local/Shotcut/Shotcut.app/lib/libswscale.so.3
#5  0x00007ffff6ee7b61 in get_basic_info (
    filename=0x618e10 "/home/carl/temp/20_42_43.mkv", profile=0x6186b0, 
    self=0x7622c0) at producer_avformat.c:620
#6  producer_open (self=self@entry=0x7622c0, profile=profile@entry=0x6186b0, 
    URL=<optimized out>, take_lock=take_lock@entry=1)
    at producer_avformat.c:688
#7  0x00007ffff6eeaada in producer_avformat_init (profile=0x6186b0, 
    service=<optimized out>, 
    file=0x7fffffffe039 "/home/carl/temp/20_42_43.mkv")
    at producer_avformat.c:185
#8  0x00007ffff7bcc61a in mlt_factory_producer (
    profile=profile@entry=0x6186b0, service=service@entry=0x760310 "avformat", 
    resource=resource@entry=0x7fffffffe039) at mlt_factory.c:305
#9  0x00007fffea06fa0f in create_from (services=<optimized out>, 
    file=0x7fffffffe039 "/home/carl/temp/20_42_43.mkv", profile=0x6186b0)
    at producer_loader.c:57
#10 create_producer (profile=profile@entry=0x6186b0, 
    file=file@entry=0x7fffffffe039 "/home/carl/temp/20_42_43.mkv")
    at producer_loader.c:123
#11 0x00007fffea06fca2 in producer_loader_init (profile=0x6186b0, 
    type=<optimized out>, id=0x608830 "loader", 
    arg=0x7fffffffe039 "/home/carl/temp/20_42_43.mkv") at producer_loader.c:220
---Type <return> to continue, or q <return> to quit---
#12 0x00007ffff7bcc61a in mlt_factory_producer (
    profile=profile@entry=0x6186b0, service=0x608830 "loader", 
    service@entry=0x7fffffffe039 "/home/carl/temp/20_42_43.mkv", 
    resource=0x7fffffffe039) at mlt_factory.c:305
#13 0x00007fffea070fe9 in create_producer (file=<optimized out>, 
    field=0x75db40, profile=0x6186b0) at producer_melt.c:86
#14 producer_melt_init (profile=0x6186b0, type=<optimized out>, 
    id=<optimized out>, argv=0x7fffffffdc40) at producer_melt.c:438
#15 0x00007ffff7bcc61a in mlt_factory_producer (
    profile=profile@entry=0x6186b0, service=service@entry=0x404bff "melt", 
    resource=resource@entry=0x7fffffffdc40) at mlt_factory.c:305
#16 0x000000000040277c in main (argc=2, argv=0x7fffffffdc38) at melt.c:863
(gdb) 
dir=$(date +%Y-%m-%d/atlys)

mkdir -p $dir

while [ 1 ]; do

gst-launch-1.0 --eos-on-shutdown v4l2src device=/dev/video1 \
    ! image/jpeg,width=1280,height=720 \
      ! queue max-size-bytes=100000000 max-size-time=0 \
    ! matroskamux name=mux \
    alsasrc device=hw:CARD=CODEC latency-time=100 \
      ! queue max-size-bytes=100000000 max-size-time=0 \
    ! audioconvert \
      ! queue max-size-bytes=100000000 max-size-time=0 \
    ! vorbisenc \
      ! queue max-size-bytes=100000000 max-size-time=0 \
    ! mux. mux. \
      ! queue max-size-bytes=100000000 max-size-time=0 \
    ! filesink location=$dir/$(date +%H_%M_%S).mkv

done
carl@twist:~/temp$ gst-play-1.0 20_42_43.mkv 
Now playing /home/carl/temp/20_42_43.mkv
ERROR No valid frames decoded before end of stream for file:///home/carl/temp/20_42_43.mkv
ERROR debug information: gstvideodecoder.c(1070): gst_video_decoder_sink_event_default (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstJpegDec:jpegdec0:
no valid frames found
Reached end of play list.

Discussion

  • Dan Dennedy

    Dan Dennedy - 2015-11-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     http://5cda49ca88af98bf1f1e-b4c3b47b38bb1b572e0805ecabeeb59c.r76.cf2.rackcdn.com/20_42_43.mkv
    
      65K  20_42_43.mkv
    
    • status: open --> accepted
     
  • Dan Dennedy

    Dan Dennedy - 2015-11-11

    Fixed in git commit 3f1662b. Now, it rejects the video, but still thinks it is valid (some audio?) and displays a frame of white, which is normally how melt displays audio-only files.

     
  • Dan Dennedy

    Dan Dennedy - 2016-02-17
    • status: accepted --> closed
     
  • Dan Dennedy

    Dan Dennedy - 2016-02-17

    mlt 6.0.0 released

     

Log in to post a comment.