vlc crashes when transcoding mp4a flv to mp3
Posted: 18 Oct 2011 02:04
I was piping rtmpdump to vlc for transcoding. If the format is flv and codec is mp4a, vlc crashes with a glibc corruption error. This happens if you use vlc directly on the rtmp url as well.
Here is the output
Starting download at: -0.001 kB
INFO: Metadata:
INFO: duration 2620.08
INFO: moovPosition 36.00
INFO: width 80.00
INFO: height 60.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 66.00
INFO: avclevel 31.00
INFO: aacaot 2.00
INFO: videoframerate 20.00
INFO: audiosamplerate 44100.00
INFO: audiochannels 1.00
INFO: trackinfo:
INFO: length 2620020.00
INFO: timescale 1000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 2620079.00
INFO: timescale 1000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
INFO: length 2619053.00
INFO: timescale 1000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype amf0
0.688 kB / 0.00 sec (0.0%)[flv @ 0x16df6a0] Estimating duration from bitrate, this may be inaccurate
*** glibc detected *** /usr/bin/vlc: double free or corruption (!prev): 0x00000000016e4600 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7ffac5110a8f]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7ffac51148e3]
/usr/lib/vlc/plugins/stream_out/libstream_out_transcode_plugin.so(+0x5314)[0x7ffabb5eb314]
/usr/lib/vlc/plugins/stream_out/libstream_out_transcode_plugin.so(+0x2cad)[0x7ffabb5e8cad]
/usr/lib/libvlccore.so.4(+0xa9362)[0x7ffac58f7362]
/usr/lib/libvlccore.so.4(+0x42ebc)[0x7ffac5890ebc]
/usr/lib/libvlccore.so.4(+0x438bb)[0x7ffac58918bb]
/usr/lib/libvlccore.so.4(+0x8f914)[0x7ffac58dd914]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c)[0x7ffac5636d8c]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffac517e04d]
======= Memory map: ========
00400000-00403000 r-xp 00000000 fb:00 11809695 /usr/bin/vlc
00602000-00603000 r--p 00002000 fb:00 11809695 /usr/bin/vlc
00603000-00604000 rw-p 00003000 fb:00 11809695 /usr/bin/vlc
00985000-01972000 rw-p 00000000 00:00 0 [heap]
7ffaaa934000-7ffaaa939000 r-xp 00000000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaa939000-7ffaaab38000 ---p 00005000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaab38000-7ffaaab39000 r--p 00004000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaab39000-7ffaaab3a000 rw-p 00005000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaab3a000-7ffaaab3d000 r-xp 00000000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaab3d000-7ffaaad3c000 ---p 00003000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaad3c000-7ffaaad3d000 r--p 00002000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaad3d000-7ffaaad3e000 rw-p 00003000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaad3e000-7ffaaad3f000 r-xp 00000000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaad3f000-7ffaaaf3e000 ---p 00001000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaaf3e000-7ffaaaf3f000 r--p 00000000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaaf3f000-7ffaaaf40000 rw-p 00001000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaaf40000-7ffaaaf42000 r-xp 00000000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaaaf42000-7ffaab141000 ---p 00002000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaab141000-7ffaab142000 r--p 00001000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaab142000-7ffaab143000 rw-p 00002000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaab143000-7ffaab145000 r-xp 00000000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab145000-7ffaab344000 ---p 00002000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab344000-7ffaab345000 r--p 00001000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab345000-7ffaab346000 rw-p 00002000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab346000-7ffaab347000 r-xp 00000000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab347000-7ffaab546000 ---p 00001000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab546000-7ffaab547000 r--p 00000000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab547000-7ffaab548000 rw-p 00001000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab548000-7ffaab54a000 r-xp 00000000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab54a000-7ffaab74a000 ---p 00002000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab74a000-7ffaab74b000 r--p 00002000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab74b000-7ffaab74c000 rw-p 00003000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab74c000-7ffaab74e000 r-xp 00000000 fb:00 13510852 /usr/lib/vlc/plugins/audio_filter/libconverter_fixed_plugin.so
Caught signal: 13, cleaning up, just a second...
ERROR: Download: Failed writing, exiting!
Also, output of cvlc -v
VLC media player 1.1.12 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x149d160] inhibit interface error: Failed to connect to the D-Bus session daemon: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
[0x149d160] main interface error: no suitable interface module
[0x14810e0] main interface error: no suitable interface module
[0x1398120] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x14810e0] dummy interface: using the dummy interface module...
I am using n-muench ppa on Ubuntu Natty.
Here is the output
Starting download at: -0.001 kB
INFO: Metadata:
INFO: duration 2620.08
INFO: moovPosition 36.00
INFO: width 80.00
INFO: height 60.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 66.00
INFO: avclevel 31.00
INFO: aacaot 2.00
INFO: videoframerate 20.00
INFO: audiosamplerate 44100.00
INFO: audiochannels 1.00
INFO: trackinfo:
INFO: length 2620020.00
INFO: timescale 1000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 2620079.00
INFO: timescale 1000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
INFO: length 2619053.00
INFO: timescale 1000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype amf0
0.688 kB / 0.00 sec (0.0%)[flv @ 0x16df6a0] Estimating duration from bitrate, this may be inaccurate
*** glibc detected *** /usr/bin/vlc: double free or corruption (!prev): 0x00000000016e4600 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7ffac5110a8f]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7ffac51148e3]
/usr/lib/vlc/plugins/stream_out/libstream_out_transcode_plugin.so(+0x5314)[0x7ffabb5eb314]
/usr/lib/vlc/plugins/stream_out/libstream_out_transcode_plugin.so(+0x2cad)[0x7ffabb5e8cad]
/usr/lib/libvlccore.so.4(+0xa9362)[0x7ffac58f7362]
/usr/lib/libvlccore.so.4(+0x42ebc)[0x7ffac5890ebc]
/usr/lib/libvlccore.so.4(+0x438bb)[0x7ffac58918bb]
/usr/lib/libvlccore.so.4(+0x8f914)[0x7ffac58dd914]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c)[0x7ffac5636d8c]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffac517e04d]
======= Memory map: ========
00400000-00403000 r-xp 00000000 fb:00 11809695 /usr/bin/vlc
00602000-00603000 r--p 00002000 fb:00 11809695 /usr/bin/vlc
00603000-00604000 rw-p 00003000 fb:00 11809695 /usr/bin/vlc
00985000-01972000 rw-p 00000000 00:00 0 [heap]
7ffaaa934000-7ffaaa939000 r-xp 00000000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaa939000-7ffaaab38000 ---p 00005000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaab38000-7ffaaab39000 r--p 00004000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaab39000-7ffaaab3a000 rw-p 00005000 fb:00 13510857 /usr/lib/vlc/plugins/audio_filter/libaudio_format_plugin.so
7ffaaab3a000-7ffaaab3d000 r-xp 00000000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaab3d000-7ffaaad3c000 ---p 00003000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaad3c000-7ffaaad3d000 r--p 00002000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaad3d000-7ffaaad3e000 rw-p 00003000 fb:00 13510855 /usr/lib/vlc/plugins/audio_filter/libmono_plugin.so
7ffaaad3e000-7ffaaad3f000 r-xp 00000000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaad3f000-7ffaaaf3e000 ---p 00001000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaaf3e000-7ffaaaf3f000 r--p 00000000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaaf3f000-7ffaaaf40000 rw-p 00001000 fb:00 13510847 /usr/lib/vlc/plugins/audio_filter/libugly_resampler_plugin.so
7ffaaaf40000-7ffaaaf42000 r-xp 00000000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaaaf42000-7ffaab141000 ---p 00002000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaab141000-7ffaab142000 r--p 00001000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaab142000-7ffaab143000 rw-p 00002000 fb:00 13510841 /usr/lib/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so
7ffaab143000-7ffaab145000 r-xp 00000000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab145000-7ffaab344000 ---p 00002000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab344000-7ffaab345000 r--p 00001000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab345000-7ffaab346000 rw-p 00002000 fb:00 13510849 /usr/lib/vlc/plugins/audio_filter/libdtstospdif_plugin.so
7ffaab346000-7ffaab347000 r-xp 00000000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab347000-7ffaab546000 ---p 00001000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab546000-7ffaab547000 r--p 00000000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab547000-7ffaab548000 rw-p 00001000 fb:00 13510842 /usr/lib/vlc/plugins/audio_filter/liba52tospdif_plugin.so
7ffaab548000-7ffaab54a000 r-xp 00000000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab54a000-7ffaab74a000 ---p 00002000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab74a000-7ffaab74b000 r--p 00002000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab74b000-7ffaab74c000 rw-p 00003000 fb:00 13510851 /usr/lib/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so
7ffaab74c000-7ffaab74e000 r-xp 00000000 fb:00 13510852 /usr/lib/vlc/plugins/audio_filter/libconverter_fixed_plugin.so
Caught signal: 13, cleaning up, just a second...
ERROR: Download: Failed writing, exiting!
Also, output of cvlc -v
VLC media player 1.1.12 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x149d160] inhibit interface error: Failed to connect to the D-Bus session daemon: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
[0x149d160] main interface error: no suitable interface module
[0x14810e0] main interface error: no suitable interface module
[0x1398120] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x14810e0] dummy interface: using the dummy interface module...
I am using n-muench ppa on Ubuntu Natty.