The problem lies with frame exact splitting of arbitrary video input material. When preparing videos for Apples HTTP streaming for iPad/iPhone you need to split your video into 10s chunks and provide a play list for Quicktime to process. The commands above were tested using ffmpeg 0.5/0.6 Frame Exact Splitting Update: Also check the comment of an anonymous user below mentioning that he needed a different mapping with a more recent version of ffmpeg. These parameters need to be added after the second input file and before the mapping options. ![]() I added “-vcodec copy -acodec copy” to avoid reencoding the video and loose quality. The input file is required to have exactly one video channel at position 0 and one audio channel at position 1. The “-itsoffset” option indicates an offset (3 seconds in the example) for the following input file. The difference is in the mapping parameters which specify which of the two supplied input files to map on which output channel. For example:įfmpeg -i input.flv -itsoffset 00:00:03.0 -i input.flv -vcodec copy -acodec copy -map 1:0 -map 0:1 output_shift3s.flv This uses the libfaad AAC decoder, which is said to be a bit slower than the ffmpeg-builtin, but which decodes the AAC without complaining. Solution: Upgrade to latest ffmpeg and faad library version and add “ -acodec libfaad “ in front of the “-i” switch. In fact it could well be that they’ll handle it as an invalid input file. It doesn’t look like this will be handled by ffmpeg very soon. ![]() This is documented in various bugs (see ffmpeg issues #800, #871, #999, #1733…). The reason for the problem as I understood it is that the ffmpeg-builtin AAC codec cannot handle an audio stream stream with index “1.0”. ![]() ![]() Still the input video is playable in all standard players (VLC, in Windows…). The resulting video is either unplayable or has no sound. The message “Error while decoding stream #0.0” is repeated continuously. Stream #0.1(eng): Audio: libmp3lame, 22050 Hz, 2 channels, s16, 64 kb/sĬhannel element 1.0 is not allocated
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |