News:

--

Main Menu

[FLAC]No supported Audio after copy

Started by stormlamp, January 13, 2016, 01:44:41 PM

Previous topic - Next topic

eumagga0x2a

Quote from: Jan Gruuthuse on September 12, 2016, 01:30:43 PM
decoder = reading only (for now?)

I'm sorry, but I don't understand what you wanted to say or to ask. Demuxer is for reading, decoder for decoding, encoder for encoding, muxer for writing. They all receive data (read data) from other components and send data (write data) to other components. Avidemux is now in principle capable to demux and to decode MKV with FLAC audio, but crashes soon after playback (or saving with audio re-encoded with a different codec) start. There is no support in encoder and in MKV muxer yet.

mean

?
Does not crash here
Is there something special about your file ?

mean

The risk is very small, it's just enabling something in lavcodec

eumagga0x2a

#18
Quote from: mean on September 12, 2016, 03:06:51 PM
Does not crash here
Is there something special about your file ?

The sample that reproducibly crashes Avidemux was generated from YouTube video with the ID vi1JeWrIPeA and format 22 using

ffmpeg -i source-video.mp4 -c:v copy -c:a flac output-video.mkv

I tried also two other source videos, a short one (60 seconds in duration) not crashing Avidemux but a longer one (approx. 6 minutes long) resulting reproducibly in a crash.

PS: for the record:

ffmpeg -version
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 6.1.1 (GCC) 20160621 (Red Hat 6.1.1-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-openal --enable-opencl --enable-libopencv --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil      55. 17.103 / 55. 17.103
libavcodec     57. 24.102 / 57. 24.102
libavformat    57. 25.100 / 57. 25.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 31.100 /  6. 31.100
libavresample   3.  0.  0 /  3.  0.  0
libswscale      4.  0.100 /  4.  0.100
libswresample   2.  0.101 /  2.  0.101
libpostproc    54.  0.100 / 54.  0.100

eumagga0x2a

Fixed by increasing threefold the audio buffer size: [editor/audio] Increase buffer size, thanks!

Now if only the MKV muxer could be easily enhanced to support FLAC to make cutting in copy mode work ;)

Jan Gruuthuse

Quote from: eumagga0x2a on September 12, 2016, 02:37:57 PM
Quote from: Jan Gruuthuse on September 12, 2016, 01:30:43 PM
decoder = reading only (for now?)

I'm sorry, but I don't understand what you wanted to say or to ask.
User terms:
- reading = loading video into avidemux (input)
- writing = saving video with avidemux (output)

(for now?) at this moment, possible to change in the (nearby) future.

I write (briefly) from user experience, so I can't make statements for developer(s).

eumagga0x2a

Quote from: eumagga0x2a on September 13, 2016, 05:48:39 AM
Now if only the MKV muxer could be easily enhanced to support FLAC to make cutting in copy mode work ;)

This wish came true  :)

[core/Muxer] Add flac support for muxing (incomplete)
[muxer/flac] Remove the flac header if it is alreay there, else libavformat will duplicate it

Cutting MKV videos with FLAC audio works now, thanks!