Discussion:
[issue2639] frame copy of flac audio produces broken file
(too old to reply)
Zhou Zongyi
2011-03-04 13:35:06 UTC
Permalink
Raw Message
New submission from Zhou Zongyi <***@os.pku.edu.cn>:

ffmpeg -i ED-CM-St-16bit.flac -acodec copy ed.mka
FFmpeg version git-0b32da9, Copyright (c) 2000-2011 the FFmpeg
developers
built on Feb 28 2011 04:05:31 with gcc 4.5.2 (x86.generic.Komisar)
configuration: --prefix=/home/ffmpegbuild_free --enable-gpl --enable-
version3
--enable-postproc --enable-runtime-cpudetect --enable-memalign-hack --
enable-avisynth --enable-libopencore-amrnb --enable-libopencore-amrwb --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-
libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-
libx264 --enable-libxvid --disable-decoder='amrnb,amrwb,libvpx' --
disable-hwaccels --cpu=i686 --disable-debug --extra-cflags=-
U__STRICT_ANSI__
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 2 / 52.113. 2
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flac @ 01bfd1b0] max_analyze_duration reached
Input #0, flac, from 'G:\ED-CM-St-16bit.flac':
Duration: 00:10:58.32, bitrate: 718 kb/s
Stream #0.0: Audio: flac, 48000 Hz, 2 channels, s16
Output #0, matroska, to 'R:\ed.mka':
Metadata:
encoder : Lavf52.102.0
Stream #0.0: Audio: flac, 48000 Hz, 2 channels
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 57824kB time=658.37 bitrate= 719.5kbits/s
video:0kB audio:57774kB global headers:0kB muxing overhead 0.085852%

mka file plays silently with mpc-hc (built-in decoder), but it plays
well with mplayer and ffdshow.

If you mux flac to mka using mkvmerge, the mka file plays well with all
players.

My sample is here
http://media.xiph.org/ED/ED-CM-St-16bit.flac

----------
messages: 13799
priority: normal
status: new
substatus: new
title: frame copy of flac audio produces broken file
topic: avcodec, avformat
type: bug

________________________________________________
FFmpeg issue tracker <***@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue2639>
________________________________________________
Justin Ruggles
2011-03-04 15:15:19 UTC
Permalink
Raw Message
Justin Ruggles <***@gmail.com> added the comment:

All I can confirm is that it does work fine with vlc and ffplay. Maybe
there is something about the mkv files that mpc-hc (or whatever mkv
demuxer is being used with it) doesn't like for some reason.

----------
status: new -> open
substatus: new -> open
topic: -avcodec

________________________________________________
FFmpeg issue tracker <***@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue2639>
________________________________________________
Justin Ruggles
2011-03-04 16:24:49 UTC
Permalink
Raw Message
Justin Ruggles <***@gmail.com> added the comment:

attached: mkvinfo of file generated by ffmpeg
File 'ffmkv.txt' not attached - you can download it from https://roundup.ffmpeg.org/file1358.

________________________________________________
FFmpeg issue tracker <***@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue2639>
________________________________________________
Justin Ruggles
2011-03-04 16:25:10 UTC
Permalink
Raw Message
Justin Ruggles <***@gmail.com> added the comment:

attached: mkvinfo of file produced by mkvmerge
File 'mkvmerge.txt' not attached - you can download it from https://roundup.ffmpeg.org/file1359.

________________________________________________
FFmpeg issue tracker <***@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue2639>
________________________________________________
Anton Khirnov
2011-03-31 23:56:42 UTC
Permalink
Raw Message
Anton Khirnov <***@khirnov.net> added the comment:

On the first glance i don't see anything broken about the file, what makes you
think this is not an mpc-hc bug?

----------
topic: -avformat

______________________________________________
Libav issue tracker <***@roundup.libav.org>
<https://roundup.libav.org/issue2639>
______________________________________________
Rodeo
2011-04-04 01:54:35 UTC
Permalink
Raw Message
Rodeo <***@gmail.com> added the comment:

Output file does not pass validation with mkvalidator 0.3.3:


ffmpeg -i ED-CM-St-16bit.flac -acodec copy ~/Desktop/out.mka
FFmpeg version git-e05a3ac, Copyright (c) 2000-2011 the Libav developers
built on Apr 4 2011 03:40:19 with gcc 4.2.1 (Apple Inc. build 5666)
(dot 3)
configuration: --extra-cflags=-m64 --extra-ldflags=-m64 --arch=x86_64
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.117. 0 / 52.117. 0
libavformat 52.105. 0 / 52.105. 0
libavdevice 52. 4. 0 / 52. 4. 0
libavfilter 1. 77. 0 / 1. 77. 0
libswscale 0. 12. 0 / 0. 12. 0
[flac @ 0x10100b000] max_analyze_duration reached
Input #0, flac, from 'ED-CM-St-16bit.flac':
Duration: 00:10:58.32, bitrate: 718 kb/s
Stream #0.0: Audio: flac, 48000 Hz, 2 channels, s16
Output #0, matroska, to '/Users/tim/Desktop/out.mka':
Metadata:
encoder : Lavf52.105.0
Stream #0.0: Audio: flac, 48000 Hz, 2 channels
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size= 57824kB time=658.37 bitrate= 719.5kbits/s
video:0kB audio:57774kB global headers:0kB muxing overhead 0.085852%

--------------------------

mkvalidator ~/Desktop/out.mka
ERR200: Missing element CuePoint in Cues at 59211851
... file created with Lavf52.105.0 / Lavf52.105.0

______________________________________________
Libav issue tracker <***@roundup.libav.org>
<https://roundup.libav.org/issue2639>
______________________________________________
Rodeo
2011-04-08 00:18:00 UTC
Permalink
Raw Message
Rodeo <***@gmail.com> added the comment:

The invalid MKV output was fixed in Libav
9181976348cac563977a0450c90f27ad72018f1d. Now all I get is a warning:

mkvalidator out.mka
WRN800: The segment has Clusters but no Cues section (bad for seeking)
mkvalidator 0.3.3: the file appears to be valid
file created with Lavf52.105.0 / Lavf52.105.0

Maybe this fixes the issue in MPC-HC?

______________________________________________
Libav issue tracker <***@roundup.libav.org>
<https://roundup.libav.org/issue2639>
______________________________________________
Justin Ruggles
2011-06-14 21:01:31 UTC
Permalink
Raw Message
Justin Ruggles <***@gmail.com> added the comment:

i don't have mpc-hc to duplicate the issue, and the resulting mkv files
now seem to be valid. closing the issue. if there are still problems with
latest git master please reopen.

----------
status: open -> closed
substatus: open -> fixed

______________________________________________
Libav issue tracker <***@roundup.libav.org>
<https://roundup.libav.org/issue2639>
______________________________________________

Loading...