Thanks for the hint. I changed the setting from -scodec copy to -dcodec copy since it is a data stream not a subtitle stream.
It seems that matroska can't handle DATA streams. It doesn't matter if I try:
Code:
ffmpeg -i 00235.MTS -map 0:0 -map 0:1 -map 0:2 -dcodec copy -acodec copy -vcodec copy OUTPUT.mkv
or
Code:
ffmpeg -i 00235.MTS -dcodec copy -acodec copy -vcodec copy -f matroska OUTPUT.mkv
I always get this output:
Code:
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:02:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mpegts, from '00235.MTS':
Duration: 00:00:22.07, start: 1.000011, bitrate: 26285 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream #0.2[0x1200]: Data: [144][0][0][0] / 0x0090
[matroska @ 0x2185520] Only audio, video, and subtitles are supported for Matroska.
Output #0, matroska, to 'OUTPUT.mkv':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: H264 / 0x34363248, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 50 tbc
Stream #0.1: Audio: ac3, 48000 Hz, 5.1, 448 kb/s
Stream #0.2: Data: [144][0][0][0] / 0x0090
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #0.2 -> #0.2
Press ctrl-c to stop encoding
frame= 1104 fps= 0 q=-1.0 Lsize= 67284kB time=22.08 bitrate=24963.2kbits/s
video:66061kB audio:1208kB global headers:0kB muxing overhead 0.023083%
- Is it possible to convert the data stream into a subtitle stream?
- Why does the Ubuntu Totem Media Player display the data stream (I can choose it to be shown by selecting the subtitle 'Subtitle #1') when I open a .MTS file and other Media Players don't display it?
Bookmarks