Segfault batch converting flac to ogg

*nix specific usage questions
rmvb
Blank Cone
Blank Cone
Posts: 47
Joined: 19 Oct 2011 11:14
Operating System: Linux

Segfault batch converting flac to ogg

Postby rmvb » 05 Jan 2018 11:35

Hi
Please help me:
I had a converting script working (picked and tweaked from wiki), but today it crashes when trying to compress too huge flacs for my phone (I see 96000 in the log, I'm not sure how I did these braindead files):

Code: Select all

#!/bin/bash acodec="vorb" arate="320" ext="ogg" mux="ogg" vlc="/usr/bin/vlc" fmt="flac" for i in *$fmt; do f=${i%%.${fmt}} echo -e $f $vlc -I dummy -vvv "$i" --sout "#transcode{vcodec=none,acodec=$acodec,ab=$arate,channels=2,samplerate=48000}:standard{mux=$mux,dst=\"$f.$ext\",access=file}}" vlc://quit done
Here is the output for first loop (I even tried to rename input file with no spaces, no dashes, no parenthesis in full path and filename - also my original script ended this way

Code: Select all

"... ,access=file{no-overwrite}}" vlc://quit done
and I don't know where/why I got/added this {no-overwrite} thing)

Code: Select all

~/Musique/1975PinkFloydWishYouWereHere2$ ./cvflac2ogg.sh ./cvflac2ogg.sh 01ShineOnYouCrazyDiamondPart1 VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28) [0x990118] main libvlc debug: VLC media player - 2.1.6 Rincewind [0x990118] main libvlc debug: Copyright © 1996-2015 the VideoLAN team [0x990118] main libvlc debug: revision 2.1.6-0-gea01d28 [0x990118] main libvlc debug: configured with ./configure '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-dependency-tracking' '--build=x86_64-linux-gnu' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=0ubuntu14.04.4' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libfreerdp' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-oss' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu' [0x990118] main libvlc debug: searching plug-in modules [0x990118] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat [0x990118] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x990118] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0x990118] main libvlc debug: plug-ins loaded: 428 modules [0x990118] main libvlc debug: opening config file (/home/me/.config/vlc/vlcrc) [0x990118] main libvlc debug: translation test: code is "fr" [0x990118] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX FPU [0x9a3c48] main input debug: Creating an input for 'Bibliothèque' [0x9a3c48] main input debug: Input is a meta file: disabling unneeded options [0x9a3c48] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x9a3c48] main input debug: `file/xspf-open:///home/me/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/me/.local/share/vlc/ml.xspf' [0x9a3c48] main input debug: creating demux: access='file' demux='xspf-open' location='/home/me/.local/share/vlc/ml.xspf' file='/home/me/.local/share/vlc/ml.xspf' [0x9acbd8] main demux debug: looking for access_demux module matching "file": 21 candidates [0x9acbd8] main demux debug: no access_demux modules matched [0x9a3c48] main input debug: creating access 'file' location='/home/me/.local/share/vlc/ml.xspf', path='/home/me/.local/share/vlc/ml.xspf' [0xb912a8] main access debug: looking for access module matching "file": 25 candidates [0xb912a8] filesystem access debug: opening file `/home/me/.local/share/vlc/ml.xspf' [0xb912a8] main access debug: using access module "filesystem" [0xb92258] main stream debug: Using stream method for AStream* [0xb92258] main stream debug: starting pre-buffering [0xb92258] main stream debug: received first data after 0 ms [0xb92258] main stream debug: pre-buffering done 1024 bytes in 0s - 38461 KiB/s [0xb924b8] main stream debug: looking for stream_filter module matching "any": 9 candidates [0xb924b8] main stream debug: no stream_filter modules matched [0xb924b8] main stream debug: looking for stream_filter module matching "record": 9 candidates [0xb924b8] main stream debug: using stream_filter module "record" [0x9a3c48] main input debug: creating demux: access='file' demux='xspf-open' location='/home/me/.local/share/vlc/ml.xspf' file='/home/me/.local/share/vlc/ml.xspf' [0xb955e8] main demux debug: looking for demux module matching "xspf-open": 63 candidates [0xb955e8] playlist demux debug: using XSPF playlist reader [0xb955e8] main demux debug: using demux module "playlist" [0xb95888] main demux meta debug: looking for meta reader module matching "any": 2 candidates [0xb95888] lua demux meta debug: Trying Lua scripts in /home/me/.local/share/vlc/lua/meta/reader [0xb95888] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xb95888] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xb95888] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xb95888] main demux meta debug: no meta reader modules matched [0x9a3c48] main input debug: `file/xspf-open:///home/me/.local/share/vlc/ml.xspf' successfully opened [0xa584e8] main xml reader debug: looking for xml reader module matching "any": 1 candidates [0xa584e8] main xml reader debug: using xml reader module "xml" [0xb955e8] playlist demux debug: parsed 244 tracks successfully [0x9a3c48] main input debug: EOF reached [0xb955e8] main demux debug: removing module "playlist" [0xb924b8] main stream debug: removing module "record" [0xb912a8] main access debug: removing module "filesystem" [0xb8b248] main playlist debug: creating audio output [0xb92258] main audio output debug: looking for audio output module matching "any": 7 candidates [0xb92258] pulse audio output debug: using library version 4.0.0 [0xb92258] pulse audio output debug: (compiled with version 4.0.0, protocol 28) [0xb92258] pulse audio output debug: connected locally to unix:/run/user/1000/pulse/native as client #248 [0xb92258] pulse audio output debug: using protocol 28, server protocol 28 [0xb92258] main audio output debug: using audio output module "pulse" [0xb92258] pulse audio output debug: adding sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Audio interne Stéréo analogique) [0xb8b248] main playlist debug: keeping audio output [0xb8b248] main playlist debug: adding item `quit' ( vlc://quit ) [0x7fdd10000958] main input debug: Creating an input for 'quit' [0xb8b248] main playlist debug: adding item `01ShineOnYouCrazyDiamondPart1.flac' ( file:///home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac ) [0xb8b248] main playlist debug: no fetch required for (null) (art currently (null)) [0xa595a8] main interface debug: looking for interface module matching "hotkeys,none": 19 candidates [0x7fdd10003f58] main input debug: Creating an input for '01ShineOnYouCrazyDiamondPart1.flac' [0xa595a8] main interface debug: using interface module "hotkeys" [0x9edd08] main interface debug: looking for interface module matching "globalhotkeys,none": 19 candidates [0x9edd08] main interface debug: using interface module "globalhotkeys" [0x9edac8] main interface debug: looking for interface module matching "dbus,none": 19 candidates [0xb8b248] main playlist debug: no fetch required for Shine On You Crazy Diamond (Part 1) (art currently (null)) [0x9edac8] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance13423 [0x9edac8] main interface debug: using interface module "dbus" [0x9ea028] main interface debug: looking for interface module matching "dummy": 19 candidates [0x9ea028] dummy interface: using the dummy interface module... [0x9ea028] main interface debug: using interface module "dummy" [0xb8b248] main playlist debug: processing request item: null, node: Liste de lecture, skip: 0 [0xb8b248] main playlist debug: rebuilding array of current - root Liste de lecture [0xb8b248] main playlist debug: rebuild done - 2 items, index -1 [0xb8b248] main playlist debug: starting playback of the new playlist item [0xb8b248] main playlist debug: resyncing on Shine On You Crazy Diamond (Part 1) [0xb8b248] main playlist debug: Shine On You Crazy Diamond (Part 1) is at 0 [0xb8b248] main playlist debug: creating new input thread [0x7fdd10003f58] main input debug: Creating an input for 'Shine On You Crazy Diamond (Part 1)' [0x7fdd08000c58] main stream output debug: using sout chain=`transcode{vcodec=none,acodec=vorb,ab=320,channels=2,samplerate=48000}:standard{mux=ogg,dst="01ShineOnYouCrazyDiamondPart1.ogg",access=file}}' [0x7fdd08000c58] main stream output debug: stream=`standard' [0x7fdd080012c8] main stream out debug: looking for sout stream module matching "standard": 21 candidates [0x7fdd080012c8] main stream out debug: set config option: sout-standard-mux to ogg [0x7fdd080012c8] main stream out debug: set config option: sout-standard-dst to 01ShineOnYouCrazyDiamondPart1.ogg [0x7fdd080012c8] main stream out debug: set config option: sout-standard-access to file [0x7fdd08002258] main access out debug: looking for sout access module matching "file": 8 candidates [0x7fdd08002258] access_output_file access out debug: file access output opened (01ShineOnYouCrazyDiamondPart1.ogg) [0x7fdd08002258] main access out debug: using sout access module "access_output_file" [0x7fdd08003428] main mux debug: looking for sout mux module matching "ogg": 10 candidates [0x7fdd08003428] mux_ogg mux: Open [0x7fdd08003428] main mux debug: using sout mux module "mux_ogg" [0x7fdd08000c58] main stream output debug: muxer support adding stream at any time [0x7fdd08000c58] main stream output debug: muxer prefers to wait for all ES before starting to mux [0x7fdd080012c8] stream_out_standard stream out debug: using `file/ogg://01ShineOnYouCrazyDiamondPart1.ogg' [0x7fdd080012c8] main stream out debug: using sout stream module "stream_out_standard" [0x7fdd08000c58] main stream output debug: stream=`transcode' [0x7fdd08003c58] main stream out debug: looking for sout stream module matching "transcode": 21 candidates [0x7fdd08003c58] main stream out debug: set config option: sout-transcode-vcodec to none [0x7fdd08003c58] main stream out debug: set config option: sout-transcode-acodec to vorb [0x7fdd08003c58] main stream out debug: set config option: sout-transcode-ab to 320 [0x7fdd08003c58] main stream out debug: set config option: sout-transcode-channels to 2 [0x7fdd08003c58] main stream out debug: set config option: sout-transcode-samplerate to 48000 [0x7fdd08003c58] stream_out_transcode stream out debug: codec audio=vorb 48000Hz 2 channels 320Kb/s [0x7fdd08003c58] stream_out_transcode stream out debug: codec video=none 0x0 scaling: 0.000000 0kb/s [0x7fdd08003c58] main stream out debug: using sout stream module "stream_out_transcode" [0x7fdd10003f58] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x7fdd10003f58] main input debug: `file:///home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' gives access `file' demux `' path `/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' [0x7fdd10003f58] main input debug: enforced demux ` any' [0x7fdd10003f58] main input debug: creating demux: access='file' demux='any' location='/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' file='/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' [0x7fdd08006208] main demux debug: looking for access_demux module matching "file": 21 candidates [0x7fdd08006208] main demux debug: no access_demux modules matched [0x7fdd10003f58] main input debug: creating access 'file' location='/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac', path='/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' [0x7fdd08006578] main access debug: looking for access module matching "file": 25 candidates [0x7fdd08006578] filesystem access debug: opening file `/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' [0x7fdd08006578] main access debug: using access module "filesystem" [0x7fdd080066c8] main stream debug: Using stream method for AStream* [0x7fdd080066c8] main stream debug: starting pre-buffering [0x7fdd080066c8] main stream debug: received first data after 0 ms [0x7fdd080066c8] main stream debug: pre-buffering done 1024 bytes in 0s - 83333 KiB/s [0x7fdd08c06938] main stream debug: looking for stream_filter module matching "any": 9 candidates [0x7fdd08c06938] main stream debug: no stream_filter modules matched [0x7fdd08c06938] main stream debug: looking for stream_filter module matching "record": 9 candidates [0x7fdd08c06938] main stream debug: using stream_filter module "record" [0x7fdd10003f58] main input debug: creating demux: access='file' demux='any' location='/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' file='/home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' [0x7fdd08c06bd8] main demux debug: looking for demux module matching "any": 63 candidates [0x7fdd08c072b8] main demux packetizer debug: looking for packetizer module matching "any": 21 candidates [0x7fdd08c072b8] main demux packetizer debug: using packetizer module "packetizer_flac" [0x7fdd08c06bd8] main demux debug: using demux module "flacsys" [0x7fdd10003f58] main input debug: looking for a subtitle file in /home/me/Musique/1975PinkFloydWishYouWereHere2/ [0x7fdd10003f58] main input debug: starting in sync mode [0x7fdd08c079d8] main demux meta debug: looking for meta reader module matching "any": 2 candidates [0x7fdd08c079d8] main demux meta debug: using meta reader module "taglib" [0x7fdd08c06bd8] main demux debug: removing module "taglib" [0x7fdd10003f58] main input debug: `file:///home/me/Musique/1975PinkFloydWishYouWereHere2/01ShineOnYouCrazyDiamondPart1.flac' successfully opened [0x7fdd10003f58] main input debug: selecting program id=0 [0x7fdd08c07b28] main decoder debug: looking for packetizer module matching "any": 21 candidates [0x7fdd08c07b28] main decoder debug: using packetizer module "packetizer_flac" [0x7fdd10003f58] main input debug: Buffering 0% [0x7fdd10003f58] main input debug: switching to async mode [0x7fdd10003f58] main input debug: Buffering 16% [0x7fdd08000c58] main stream output debug: adding a new sout input (sout_input:0x7fdd00004010) [0x7fdd10003f58] main input debug: Buffering 32% [0x7fdd08003c58] stream_out_transcode stream out debug: creating audio transcoding from fcc=`flac' to fcc=`vorb' [0x7fdd10003f58] main input debug: Buffering 48% [0x7fdd00004118] main generic debug: looking for decoder module matching "any": 39 candidates [0x7fdd10003f58] main input debug: Buffering 64% [0x7fdd10003f58] main input debug: Buffering 80% [0x7fdd10003f58] main input debug: Buffering 96% [0x7fdd10003f58] main input debug: Stream buffering done (336 ms in 0 ms) [0x7fdd00004118] main generic debug: using decoder module "flac" [0x7fdd00004568] main encoder debug: looking for encoder module matching "any": 17 candidates [0x7fdd00004568] main encoder debug: using encoder module "vorbis" [0x7fdd08003c58] main stream out debug: input 's32l' 96000 Hz Stereo frame=1 samples/8 bytes [0x7fdd08003c58] main stream out debug: conversion: 's32l'->'f32l' 96000 Hz->96000 Hz Stereo->Stereo [0x7fdd00063678] main audio converter debug: looking for audio converter module matching "any": 12 candidates [0x7fdd00063678] audio_format audio converter debug: s32l->f32l, bits per sample: 32->32 [0x7fdd00063678] main audio converter debug: using audio converter module "audio_format" [0x7fdd08003c58] main stream out debug: conversion pipeline complete [0x7fdd0006b628] main audio resampler debug: looking for audio resampler module matching "any": 3 candidates [0x7fdd0006b628] main audio resampler debug: using audio resampler module "samplerate" [0x7fdd08003428] main mux debug: adding a new input [0x7fdd08003428] mux_ogg mux debug: adding input [0x7fdd08003428] mux_ogg mux debug: vorbis stream [0x7fdd10003f58] main input debug: Decoder buffering done in 11 ms [0x7fdd00004118] flac generic debug: decode STREAMINFO [0x7fdd00004118] flac generic debug: channels:2 samplerate:96000 bitspersamples:24 [0x7fdd00004118] flac generic debug: STREAMINFO decoded ./cvflac2ogg.sh : ligne 9 : 13423 Erreur de segmentation $vlc -I dummy -vvv "$i" --sout "#transcode{vcodec=none,acodec=$acodec,ab=$arate,channels=2,samplerate=48000}:standard{mux=$mux,dst=\"$f.$ext\",access=file}}" vlc://quit
You can see this flac file has tags that show the original file name
Thank you for reading and happy '18 to all VLC fans

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Segfault batch converting flac to ogg

Postby InTheWings » 05 Jan 2018 12:49

VLC media player 2.1.6
OK bye.
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

rmvb
Blank Cone
Blank Cone
Posts: 47
Joined: 19 Oct 2011 11:14
Operating System: Linux

Re: Segfault batch converting flac to ogg

Postby rmvb » 05 Jan 2018 18:22

So much ?
I can't upgrade (ubuntu 14). It worked before. I gave -vvv output (I gave the script)
Thank you Santa


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests