[FFmpeg-user] decklink output crashing

Deron deron at pagestream.org
Sun May 24 03:05:25 CEST 2015


I decided to give the built in decklink output a test today and about 
2/3 of the files I try and play cause it to crash. I'm hoping I'm just 
missing some vital parameter. I've included uncut console output from 
running under gdb.

Deron


ffmpeg -i "/work/THE AUTO CHANNEL/ACTIVE SPOTS/spot Chrysler 200 Miggy 
60.wmv"  -vf scale=1280:720 -vol 19  -vsync 1 -c:v rawvideo -pix_fmt 
uyvy422 -s 1280x720 -r 60000/1001 -c:a pcm_s16le -ar 48000 -ac 2 -f 
decklink "DeckLink HD Extreme 3D+"


[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
ffmpeg version N-72309-gde0d3fe Copyright (c) 2000-2015 the FFmpeg 
developers
   built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
   configuration: --enable-shared --enable-gpl --enable-nonfree 
--enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libvorbis 
--enable-libfaac --enable-libopenjpeg --enable-librtmp --enable-decklink 
--disable-stripping
   libavutil      54. 23.101 / 54. 23.101
   libavcodec     56. 40.100 / 56. 40.100
   libavformat    56. 33.101 / 56. 33.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 16.101 /  5. 16.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
[wmv3 @ 0x653720] Extra data: 8 bits left, value: 0
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, asf, from '/work/THE AUTO CHANNEL/ACTIVE SPOTS/spot Chrysler 
200 Miggy 60.wmv':
   Metadata:
     SfOriginalFPS   : 299700
     WMFSDKVersion   : 12.0.7601.17514
     WMFSDKNeeded    : 0.0.0.0000
     IsVBR           : 0
     DeviceConformanceTemplate: MP at HL
   Duration: 00:01:00.03, start: 0.000000, bitrate: 12984 kb/s
     Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 
channels, fltp, 192 kb/s
     Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 
1440x1080, 16585 kb/s, SAR 4:3 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 
1k tbc
[New Thread 0x7ffff230a700 (LWP 43163)]
[New Thread 0x7ffff1b09700 (LWP 43164)]
[New Thread 0x7ffff1308700 (LWP 43165)]
[New Thread 0x7ffff0b07700 (LWP 43166)]
[New Thread 0x7ffff0306700 (LWP 43167)]
[New Thread 0x7fffefb05700 (LWP 43168)]
[New Thread 0x7fffef304700 (LWP 43169)]
[New Thread 0x7fffeeb03700 (LWP 43170)]
[New Thread 0x7fffee302700 (LWP 43171)]
[New Thread 0x7fffedb01700 (LWP 43172)]
[New Thread 0x7fffed300700 (LWP 43173)]
[New Thread 0x7fffecaff700 (LWP 43174)]
[New Thread 0x7fffec2fe700 (LWP 43175)]
[New Thread 0x7fffebafd700 (LWP 43176)]
[New Thread 0x7fffeb2fc700 (LWP 43177)]
[New Thread 0x7fffeaafb700 (LWP 43178)]
[New Thread 0x7fffea2fa700 (LWP 43179)]
[New Thread 0x7fffe9af9700 (LWP 43180)]
[New Thread 0x7fffe92f8700 (LWP 43181)]
[New Thread 0x7fffe8af7700 (LWP 43182)]
[New Thread 0x7fffe82f6700 (LWP 43183)]
[New Thread 0x7fffe7af5700 (LWP 43184)]
[New Thread 0x7fffe72f4700 (LWP 43185)]
[New Thread 0x7fffe6af3700 (LWP 43186)]
[New Thread 0x7fffe62f2700 (LWP 43187)]
[New Thread 0x7fffe5af1700 (LWP 43188)]
[New Thread 0x7fffe52f0700 (LWP 43189)]
[New Thread 0x7fffe4aef700 (LWP 43190)]
[New Thread 0x7fffe42ee700 (LWP 43191)]
[New Thread 0x7fffe3aed700 (LWP 43192)]
[New Thread 0x7fffe32ec700 (LWP 43193)]
[New Thread 0x7fffe2aeb700 (LWP 43194)]
[New Thread 0x7fffe22ea700 (LWP 43195)]
[New Thread 0x7fffe1ae9700 (LWP 43196)]
[New Thread 0x7fffe12e8700 (LWP 43197)]
[New Thread 0x7fffe0ae7700 (LWP 43198)]
[New Thread 0x7fffe02e6700 (LWP 43199)]
[New Thread 0x7fffdfae5700 (LWP 43200)]
[New Thread 0x7fffdf2e4700 (LWP 43201)]
[New Thread 0x7fffdeae3700 (LWP 43202)]
[New Thread 0x7fffde2e2700 (LWP 43203)]
[New Thread 0x7fffddae1700 (LWP 43204)]
[New Thread 0x7fffdd2e0700 (LWP 43205)]
[New Thread 0x7fffdcadf700 (LWP 43206)]
[New Thread 0x7fffdc2de700 (LWP 43207)]
[New Thread 0x7fffdbadd700 (LWP 43208)]
[New Thread 0x7fffdb2dc700 (LWP 43209)]
[New Thread 0x7fffdaadb700 (LWP 43210)]
[New Thread 0x7fffda2da700 (LWP 43211)]
[New Thread 0x7fffd9ad9700 (LWP 43212)]
[New Thread 0x7fffd92d8700 (LWP 43213)]
[New Thread 0x7fffd8ad7700 (LWP 43214)]
[New Thread 0x7fffd82d6700 (LWP 43215)]
[New Thread 0x7fffd7ad5700 (LWP 43216)]
[New Thread 0x7fffd72d4700 (LWP 43217)]
[New Thread 0x7fffd6ad3700 (LWP 43218)]
[New Thread 0x7fffd62d2700 (LWP 43219)]
[New Thread 0x7fffd5ad1700 (LWP 43220)]
[New Thread 0x7fffd52d0700 (LWP 43221)]
[New Thread 0x7fffd4acf700 (LWP 43222)]
[New Thread 0x7fffd42ce700 (LWP 43223)]
[New Thread 0x7fffd3acd700 (LWP 43224)]
[New Thread 0x7fffd32cc700 (LWP 43225)]
[New Thread 0x7fffd2acb700 (LWP 43226)]
[New Thread 0x7fffd22ca700 (LWP 43227)]
[New Thread 0x7fffd1ac9700 (LWP 43228)]
-vol has been deprecated. Use the volume audio filter instead.
-vol is forwarded to lavfi similarly to -af volume=0.074219.
[wmv3 @ 0x67e1a0] Extra data: 8 bits left, value: 0
[New Thread 0x7fffd053a700 (LWP 43229)]
[New Thread 0x7fffcfd39700 (LWP 43230)]
[decklink @ 0x674cc0] Found Decklink mode 1280 x 720 with rate 59.94
[Thread 0x7fffd053a700 (LWP 43229) exited]
[New Thread 0x7fffcf538700 (LWP 43231)]
[Thread 0x7fffcfd39700 (LWP 43230) exited]
[New Thread 0x7fffac2f5700 (LWP 43232)]
[New Thread 0x7fffabaf4700 (LWP 43233)]
Output #0, decklink, to 'DeckLink HD Extreme 3D+':
   Metadata:
     SfOriginalFPS   : 299700
     WMFSDKVersion   : 12.0.7601.17514
     WMFSDKNeeded    : 0.0.0.0000
     IsVBR           : 0
     DeviceConformanceTemplate: MP at HL
     encoder         : Lavf56.33.101
     Stream #0:0(eng): Video: rawvideo (UYVY / 0x59565955), uyvy422, 
1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 59.94 tbn, 
59.94 tbc
     Metadata:
       encoder         : Lavc56.40.100 rawvideo
     Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
     Metadata:
       encoder         : Lavc56.40.100 pcm_s16le
Stream mapping:
   Stream #0:1 -> #0:0 (wmv3 (native) -> rawvideo (native))
   Stream #0:0 -> #0:1 (wmav2 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[decklink @ 0x674cc0] Encoder did not produce proper pts, making some up.
frame=   81 fps=0.0 q=0.0 size=N/A time=00:00:01.35 bitrate=N/A dup=40 
drop=0
Program received signal SIGSEGV, Segmentation fault.
__memcpy_sse2_unaligned () at 
../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:33
33    ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file 
or directory.

(gdb) bt
#0  __memcpy_sse2_unaligned () at 
../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:33
#1  0x00007ffff59345ae in memcpy (__len=<optimized out>, 
__src=<optimized out>, __dest=<optimized out>) at 
/usr/include/x86_64-linux-gnu/bits/string3.h:51
#2  av_image_copy_plane (dst=0x108c0c0 "\210\277>\365\377\177", 
dst_linesize=-1424854976, src=0x7fffab127040 <error: Cannot access 
memory at address 0x7fffab127040>, src_linesize=5120,
     bytewidth=2560, height=720) at libavutil/imgutils.c:282
#3  0x00007ffff593471b in av_image_copy (dst_data=0x952b40, 
dst_linesizes=0x952b80, src_data=0x675eb0, src_linesizes=0x675ef0, 
pix_fmt=AV_PIX_FMT_UYVY422, width=1280, height=720)
     at libavutil/imgutils.c:320
#4  0x00007ffff7bcdd42 in decklink_write_video_packet 
(pkt=0x7fffffffd9a0, pkt=0x7fffffffd9a0, avctx=0x674cc0) at 
libavdevice/decklink_enc.cpp:237
#5  ff_decklink_write_packet (avctx=0x674cc0, pkt=0x7fffffffd9a0) at 
libavdevice/decklink_enc.cpp:419
#6  0x00007ffff7583425 in write_packet (pkt=0x7fffffffd9a0, s=0x674cc0) 
at libavformat/mux.c:641
#7  av_interleaved_write_frame (s=s at entry=0x674cc0, pkt=0x0, 
pkt at entry=0x7fffffffdca0) at libavformat/mux.c:951
#8  0x000000000041f8ae in write_frame (s=s at entry=0x674cc0, 
pkt=pkt at entry=0x7fffffffdca0, ost=ost at entry=0x675980) at ffmpeg.c:717
#9  0x0000000000422946 in do_audio_out (frame=0x676300, ost=0x675980, 
s=0x674cc0) at ffmpeg.c:795
#10 reap_filters (flush=flush at entry=0) at ffmpeg.c:1324
#11 0x0000000000407d92 in transcode_step () at ffmpeg.c:3857
#12 transcode () at ffmpeg.c:3900
#13 main (argc=<optimized out>, argv=<optimized out>) at ffmpeg.c:4082


(gdb) up
#1  0x00007ffff59345ae in memcpy (__len=<optimized out>, 
__src=<optimized out>, __dest=<optimized out>) at 
/usr/include/x86_64-linux-gnu/bits/string3.h:51
51      return __builtin___memcpy_chk (__dest, __src, __len, __bos0 
(__dest));
(gdb) up
#2  av_image_copy_plane (dst=0x108c0c0 "\210\277>\365\377\177", 
dst_linesize=-1424854976, src=0x7fffab127040 <error: Cannot access 
memory at address 0x7fffab127040>, src_linesize=5120,
     bytewidth=2560, height=720) at libavutil/imgutils.c:282
282            memcpy(dst, src, bytewidth);
(gdb) up
#3  0x00007ffff593471b in av_image_copy (dst_data=0x952b40, 
dst_linesizes=0x952b80, src_data=0x675eb0, src_linesizes=0x675ef0, 
pix_fmt=AV_PIX_FMT_UYVY422, width=1280, height=720)
     at libavutil/imgutils.c:320
320                av_image_copy_plane(dst_data[i], dst_linesizes[i],
(gdb) up
#4  0x00007ffff7bcdd42 in decklink_write_video_packet 
(pkt=0x7fffffffd9a0, pkt=0x7fffffffd9a0, avctx=0x674cc0) at 
libavdevice/decklink_enc.cpp:237
237                      tmp->height);
(gdb) up
#5  ff_decklink_write_packet (avctx=0x674cc0, pkt=0x7fffffffd9a0) at 
libavdevice/decklink_enc.cpp:419
419            return decklink_write_video_packet(avctx, pkt);
(gdb) up
#6  0x00007ffff7583425 in write_packet (pkt=0x7fffffffd9a0, s=0x674cc0) 
at libavformat/mux.c:641
641            ret = s->oformat->write_packet(s, pkt);
(gdb) up
#7  av_interleaved_write_frame (s=s at entry=0x674cc0, pkt=0x0, 
pkt at entry=0x7fffffffdca0) at libavformat/mux.c:951
951            ret = write_packet(s, &opkt);
(gdb) up
#8  0x000000000041f8ae in write_frame (s=s at entry=0x674cc0, 
pkt=pkt at entry=0x7fffffffdca0, ost=ost at entry=0x675980) at ffmpeg.c:717
717        ret = av_interleaved_write_frame(s, pkt);
(gdb) up
#9  0x0000000000422946 in do_audio_out (frame=0x676300, ost=0x675980, 
s=0x674cc0) at ffmpeg.c:795
795            write_frame(s, &pkt, ost);
(gdb) up
#10 reap_filters (flush=flush at entry=0) at ffmpeg.c:1324
1324                    do_audio_out(of->ctx, ost, filtered_frame);



More information about the ffmpeg-user mailing list