![]() |
Problem: On Devuan-1.0.0-jessie-i386-DVD, avconv crashes while building a video from an image and audio. It worked until a recent update.
According to old notes, 6:11.9-1~deb8u1 worked. However, I do not know if a more recent version worked before I noticed this problem.
NOT WORKING – install FFmpeg ∞
(FFmpeg)
DO NOT DO THIS.
Spoiler
To recover, I had to unhold and force-uninstall all of that, and then get the jessie versions of the critical components I need to have back.
libc6_2.19-18+deb8u10_i386.deb libc6-dev_2.19-18+deb8u10_i386.deb libc-bin_2.19-18+deb8u10_i386.deb libc-dev-bin_2.19-18+deb8u10_i386.deb liblept4_1.71-2.1+b2_i386.deb libstdc++-6-pic_6.3.0-18+deb9u1_i386.deb
Then I farted around with some obvious reinstalls with Synaptic, just to get things like FocusWriter and qpdfview installed again.
Oh, also do an apt-get --reinstall install locales
Spoiler
#!/usr/bin/env sh # These versions of avconv crash: # https://packages.debian.org/stretch/i386/URL # https://packages.debian.org/stretch/i386/URL/download # ^ # .---------------------------------------' # Where URL is any of: local list=" ffmpeg libavcodec-extra57 libavdevice57 libavfilter-extra6 libavformat57 libavresample3 libavutil55 libc6 libpostproc54 libsdl2-2.0-0 libswresample2 libswscale4 libva1 ffmpeg-doc libsndio6.1 libopenal1 libopenal-data libnetcdf11 libsz2 libaec0 libzmq5 libtesseract3 librubberband2 libflite1 libebur128-1 libssh-gcrypt-4 libopenmpt0 libgme0 libgnutls30 libchromaprint1 libx265-95 libx264-148 libwebpmux2 libwebp6 libvpx4 amrwbenc0 libsnappy1v5 libopenjp2-7 libopencore-amrwb0 libopencore-amrnb0 libsodium18 libpgm-5.2-0 liblept5 libnettle6 libhogweed4 libpng16-16 libgif7 libxkbcommon0 Now the major rabbit hole.. I think it's busted from here on.. libstdc++-6-pic " # If you want to open the above packages as tabs in a browser, do something like: \echo "$list" | \xargs -I {} \palemoon -new-tab 'https://packages.debian.org/stretch/i386/'{} \echo "$list" | \xargs -I {} \palemoon -new-tab 'https://packages.debian.org/stretch/i386/'{}'/download' # During my exploration, I was repeating this: dpkg --force-all -i /l/__/*.deb ; mv /l/__/*.deb . ; \ffmpeg # I am left with `ffmpeg` giving: #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/i386-linux-gnu/libzmq.so.5) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libzmq.so.5) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libtesseract.so.3) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/i386-linux-gnu/librubberband.so.2) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/librubberband.so.2) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/i386-linux-gnu/libopenmpt.so.0) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libopenmpt.so.0) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/i386-linux-gnu/libgme.so.0) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libchromaprint.so.1) #ffmpeg: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libsnappy.so.1) \echo "$list" | \xargs -I {} \apt-mark unhold {} \ionice \nice \apt-get remove libav-tools \ionice \nice \dpkg --install ./*.deb #\ionice \nice \dpkg --force-all --install ./*.deb #\ionice \nice \dpkg --simulate --install ./*.deb # Prevent upgrading to a broken version: \echo "$list" | \xargs -I {} \apt-mark hold {}
Test ∞
According to apt-cache show libav-tools I have 6:11.12-1~deb8u1
I am trying to do a command like:
\rm --force output.mp4 \avconv \ -loop 1 \ -i "image.jpg" \ -i "audio.ogg" \ -shortest \ -acodec copy \ -c:v:1 libx264 \ -profile:v high \ -r 1 \ output.mp4
Error ∞
When running the above and appending 2> foo.txt I get:
Spoiler
avconv version 11.12-6:11.12-1~deb8u1, Copyright (c) 2000-2018 the Libav developers
built on Feb 19 2018 11:34:38 with gcc 4.9.2 (Debian 4.9.2-10)
[image2 @ 0x86e4c60] max_analyze_duration 5000000 reached
Input #0, image2, from './image.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 1920x1080 [PAR 89:89 DAR 16:9], 25 fps, 25 tbn
Input #1, ogg, from './audio.ogg':
Duration: 00:01:56.73, start: 0.000000, bitrate: 190 kb/s
Stream #1.0: Audio: vorbis, 48000 Hz, stereo, fltp, 256 kb/s
Metadata:
[...]
[libx264 @ 0x88ff060] using SAR=1/1
[libx264 @ 0x88ff060] using cpu capabilities: MMX2 SSE2Fast LZCNT
[libx264 @ 0x88ff060] profile High, level 4.0
[libx264 @ 0x88ff060] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/developers/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x88fe760] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to './output.mp4':
Metadata:
encoder : Lavf56.1.0
Stream #0.0: Video: libx264, yuvj420p, 1920x1080 [PAR 89:89 DAR 16:9], q=-1--1, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc56.1.0 libx264
Stream #0.1: Audio: libvorbis, 48000 Hz, stereo, 256 kb/s
Metadata:
[...]
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (copy)
Press ctrl-c to stop encoding
frame= 4 fps= 0 q=0.0 size= 0kB time=3.97 bitrate= 0.1kbits/s
frame= 8 fps= 8 q=0.0 size= 0kB time=8.10 bitrate= 0.0kbits/s
frame= 12 fps= 8 q=0.0 size= 47kB time=12.30 bitrate= 31.6kbits/s
frame= 16 fps= 8 q=0.0 size= 150kB time=16.40 bitrate= 74.9kbits/s
frame= 21 fps= 8 q=0.0 size= 250kB time=20.47 bitrate= 100.1kbits/s
frame= 25 fps= 8 q=0.0 size= 341kB time=24.62 bitrate= 113.5kbits/s
frame= 29 fps= 8 q=0.0 size= 435kB time=28.73 bitrate= 124.1kbits/s
frame= 33 fps= 8 q=0.0 size= 533kB time=32.77 bitrate= 133.4kbits/s
frame= 37 fps= 8 q=0.0 size= 620kB time=36.88 bitrate= 137.7kbits/s
frame= 41 fps= 8 q=0.0 size= 715kB time=41.01 bitrate= 142.9kbits/s
frame= 45 fps= 8 q=0.0 size= 810kB time=45.09 bitrate= 147.1kbits/s
frame= 49 fps= 8 q=0.0 size= 903kB time=49.12 bitrate= 150.6kbits/s
frame= 53 fps= 8 q=17.0 size= 1016kB time=53.20 bitrate= 156.4kbits/s
frame= 57 fps= 8 q=17.0 size= 1108kB time=4.00 bitrate=2269.8kbits/s
frame= 62 fps= 8 q=17.0 size= 1201kB time=9.00 bitrate=1093.0kbits/s
frame= 66 fps= 8 q=17.0 size= 1300kB time=13.00 bitrate= 819.3kbits/s
frame= 70 fps= 8 q=17.0 size= 1395kB time=17.00 bitrate= 672.4kbits/s
frame= 74 fps= 8 q=17.0 size= 1489kB time=21.00 bitrate= 580.8kbits/s
frame= 78 fps= 8 q=17.0 size= 1592kB time=25.00 bitrate= 521.7kbits/s
frame= 82 fps= 8 q=17.0 size= 1692kB time=29.00 bitrate= 478.1kbits/s
frame= 86 fps= 8 q=17.0 size= 1778kB time=33.00 bitrate= 441.3kbits/s
frame= 91 fps= 8 q=17.0 size= 1867kB time=38.00 bitrate= 402.4kbits/s
frame= 95 fps= 8 q=17.0 size= 1968kB time=42.00 bitrate= 383.9kbits/s
frame= 99 fps= 8 q=17.0 size= 2066kB time=46.00 bitrate= 367.9kbits/s
frame= 103 fps= 8 q=17.0 size= 2163kB time=50.00 bitrate= 354.4kbits/s
frame= 107 fps= 8 q=17.0 size= 2263kB time=54.00 bitrate= 343.3kbits/s
frame= 111 fps= 8 q=17.0 size= 2363kB time=58.00 bitrate= 333.7kbits/s
frame= 115 fps= 8 q=17.0 size= 2460kB time=62.00 bitrate= 325.1kbits/s
frame= 117 fps= 8 q=-1.0 Lsize= 2804kB time=114.00 bitrate= 201.5kbits/s
video:19kB audio:2677kB other streams:0kB global headers:0kB muxing overhead: 3.965110%
[libx264 @ 0x88ff060] frame I:1 Avg QP:10.02 size: 10857
[libx264 @ 0x88ff060] frame P:29 Avg QP:12.01 size: 77
[libx264 @ 0x88ff060] frame B:87 Avg QP:20.33 size: 68
[libx264 @ 0x88ff060] consecutive B-frames: 0.9% 0.0% 0.0% 99.1%
[libx264 @ 0x88ff060] mb I I16..4: 13.8% 85.2% 1.0%
[libx264 @ 0x88ff060] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x88ff060] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0: 0.0% L1:100.0% BI: 0.0%
[libx264 @ 0x88ff060] 8x8 transform intra:85.2% inter:100.0%
[libx264 @ 0x88ff060] coded y,uvDC,uvAC intra: 0.7% 1.2% 1.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x88ff060] i16 v,h,dc,p: 75% 25% 0% 0%
[libx264 @ 0x88ff060] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 0% 100% 0% 0% 0% 0% 0% 0%
[libx264 @ 0x88ff060] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 16% 3% 7% 5% 6% 7% 4%
[libx264 @ 0x88ff060] i8c dc,h,v,p: 98% 1% 1% 0%
[libx264 @ 0x88ff060] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x88ff060] kb/s:1.30
- The error seems to happen at different times under the same conditions, though I have not done specific testing to confirm this.
- I have tried variations of the above command, with no luck.
-
I have tried different audio and images, with no luck.
Fix attempts ∞
Downgrade libav-tools ∞
apt-cache showpkg libav-tools
I see 6:11.11-1~deb8u1
.. I didn’t take very good notes at this point, but I think I did something like:
apt-get install libav-tools-6:11.11-1~deb8u1 apt-mark hold libav-tools
Fetch old libav-tools and its dependency chain ∞
I have tried fetching the dependency chain from an old version of Debian, but that was a nightmare that ultimately didn’t work out.
Spoiler
#!/usr/bin/env sh # These versions of avconv crash: # 6:11.12-1~deb8u1 # 6:11.11-1~deb8u1 # Solution: Downgrade from jessie packages to wheezy packages # Oh god fucking damn it's not working.. # To learn what's available: # \apt-cache showpkg libav-tools # Unfortunately, this version does not fix things: # \apt-get install libav-tools=6:11.11-1~deb8u1 :<<'}' # URLs https://tracker.debian.org/pkg/libav https://packages.debian.org/wheezy/i386/[URL] https://packages.debian.org/wheezy/i386/[URL]/download Where [URL] is each of: libav-tools I don't think I need both of these: libavcodec53 libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53 libavutil51 libswscale2 libx264-123 libopenjpeg2 libopencv-core2.3 libgnutls26 librtmp0 libopencv-imgproc2.3 libgcrypt11 libtasn1-3 } #apt-get -f install \apt-mark unhold \ libav-tools \ libavcodec53 \ libavcodec-extra-53 \ libavdevice53 \ libavfilter2 \ libavformat53 \ libavutil51 \ libswscale2 \ libx264-123 \ libopenjpeg2 \ libopencv-core2.3 \ libgnutls26 \ librtmp0 \ libopencv-imgproc2.3 \ libgcrypt11 \ libtasn1-3 \ ` # ` #\ionice \nice \dpkg --simulate --install ./*.deb \ionice \nice \dpkg --force-all --install ./*.deb #\ionice \nice \dpkg --install ./*.deb # Prevent upgrading to a broken version: \apt-mark hold \ libav-tools \ libavcodec53 \ libavcodec-extra-53 \ libavdevice53 \ libavfilter2 \ libavformat53 \ libavutil51 \ libswscale2 \ libx264-123 \ libopenjpeg2 \ libopencv-core2.3 \ libgnutls26 \ librtmp0 \ libopencv-imgproc2.3 \ libgcrypt11 \ libtasn1-3 \ ` # ` :<<'}' \apt-get remove \ libav-tools \ libavcodec53 \ libavcodec-extra-53 \ libavdevice53 \ libavfilter2 \ libavformat53 \ libavutil51 \ libswscale2 \ libx264-123 \ libopenjpeg2 \ libopencv-core2.3 \ libgnutls26 \ librtmp0 \ libopencv-imgproc2.3 \ libgcrypt11 \ libtasn1-3 \ ` # ` } # What about just forcing this and not anything else? #\ionice \nice \apt-get install libav-tools #\ionice \nice \dpkg --force-all --install libav-tools*.deb # Not needeed? #libavfilter2
Install Debian ∞
I have.. tried installing Debian, but good god damn its disk access is busted. A bad scheduler? Well it serves me right.

