[FFmpeg-user] Possibly solved??? Please comment! Re: Audio stream won't play after remapping to remove unusable streams.

Hans J. Albertsson hans.j.albertsson at branneriet.se
Fri Nov 22 14:47:07 CET 2013

I seem to have found a way around this; I did

ffmpeg -i file.avi -codec copy -map 0:0 -map 0:2 out.mkv

which made ffmpeg say

"[matroska @ 857c280] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument"

ffmpeg -i file.avi -codec copy -map 0:0 -map 0:2 out.mp4

instead made ffmpeg tell me that

"pts has no value2063 q=-1.0 size=  377857kB time=00:31:43.39 
[mp4 @ 857c280] pts has no value
     Last message repeated 1749 times"

and many more similar messages.

But it did produce a playable file.

remuxing to mkv from mp4 worked w/o complaints.
And this mkv plays perfectly.

I tried to remux both the mp4 and mkv to avi, but the resulting file 
plays w/o sound or image, and timestamping is obviously erroneous.

Can someone enlighten me how to fix this w/o avoiding the avi format?? 
I'd like to be able to produce avi files because of one special player 
in a summer house.

And I'd like to understand better.

On 2013-11-22 12:57, Carl Eugen Hoyos wrote:
> Hans J. Albertsson writes:
>> The below commands show an attempt at removing a
>> voice-over russian dubbed audio stream (0:1) from an avi
>> file, so that the other, japanese, audio stream will be
>> the default.
>> It won't work: the resulting file, which to me seems
>> good, judging from what ffmpeg -i OUT.avi says, will
>> come up as "unsupported audio" in all my media players.
> Including MPlayer and WMP?
> [...]
>> ffmpeg version 1.1.2 Copyright (c) 2000-2013 the
>> FFmpeg developers
> (Unrelated: This is too old.)

I know. I know.

I have later ones available, and I regularly compile a late version for 
use with serviio. Dunno why I used this old one.
>>       Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000),
>> 48000 Hz, 5.1(side), fltp, 448 kb/s
> I can only guess but since this was asked before,
> it is a good guess:
> The Microsoft specification for avi explains how
> multichannel ac3 should be muxed, FFmpeg follows
> the recommendation, some media player demand an
> implementation that does not confirm to the
> specification.
> Since I am guessing, please feel free to continue
> testing and report back here:
> Update FFmpeg (and vlc and MPlayer), test both
> multichannel and stereo ac3, test both remuxing and
> reencoding and report back here.
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list