<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I've made an educated guess on how to continue: simply skip the
package,
and it seems to work smoothly:
<blockquote>
<pre>diff -rc ./bs1770gain-0.4.3/libffsox-2/ffsox_frame_reader.c ./bs1770gain-0.4.4-beta2/libffsox-2/ffsox_frame_reader.c
*** ./bs1770gain-0.4.3/libffsox-2/ffsox_frame_reader.c 2015-06-14 18:11:19.000000000 +0200
--- ./bs1770gain-0.4.4-beta2/libffsox-2/ffsox_frame_reader.c 2015-06-22 00:22:18.000000000 +0200
***************
*** 145,152 ****
}
if ((size=avcodec_decode_audio4(cc,frame,&got_frame,pkt))<0) {
! DMESSAGE("decoding audio");
! return -1;
}
pkt->size-=size;
--- 145,153 ----
}
if ((size=avcodec_decode_audio4(cc,frame,&got_frame,pkt))<0) {
! // skip the package.
! pkt->size=0;
! return 0;
}
pkt->size-=size;</pre>
</blockquote>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 21.06.2015 23:56, Peter Belkner
wrote:<br>
</div>
<blockquote cite="mid:558732F0.5000108@snafu.de" type="cite">Hi Carl
Eugen,
<br>
<br>
thanks for sharing. The issue under the hood is seems to be that
avcodec_decode_audio4() returns with error "[mp2 @ 0x9e527c0]
Header missing". How to continue in such a case?
<br>
<br>
Thanks and regards,
<br>
<br>
Peter
<br>
<br>
<br>
<br>
On 21.06.2015 23:09, Carl Eugen Hoyos wrote:
<br>
<blockquote type="cite">On Sunday 21 June 2015 10:28:55 pm Peter
Belkner wrote:
<br>
<blockquote type="cite">What BS1770GAIN does is best
approximated by the following FFmpeg
<br>
command (copying the video stream, transcoding the audio
stream into
<br>
FLAC and muxing both into a MKV container):
<br>
<br>
$ ffmpeg -i sample/20030213-cvs.mpeg -vcodec copy -acodec
flac -y
<br>
ffmpeg/20030213-cvs.mkv
<br>
</blockquote>
$ ffmpeg -fflags +genpts -i 20030213-cvs.mpeg -vcodec copy
<br>
-acodec flac out.mkv
<br>
<br>
Carl Eugen
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>