#1945 closed enhancement (duplicate)
Unable to remux MP4 files to WTV files
Reported by: | ramitb | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avformat |
Version: | git-master | Keywords: | wtv |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: When I try to remux a MP4 file (H.264 with AC3 or H.264 with AAC) to a WTV file FFMPEG gives an error. H.264 is a format that's supported by WTV (attaching a sample H264.wtv FYR).
How to reproduce:
ffmpeg.x86.exe -i CSI.mp4 -codec copy csi.wtv
ffmpeg version N-46726-g2f74f8d Copyright (c) 2000-2012 the FFmpeg developers built on Nov 13 2012 19:29:51 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable -bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroed inger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 6.100 / 52. 6.100 libavcodec 54. 71.100 / 54. 71.100 libavformat 54. 36.100 / 54. 36.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 23.100 / 3. 23.100 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 16.100 / 0. 16.100 libpostproc 52. 1.100 / 52. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CSI.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.36.100 Duration: 00:00:05.01, start: 0.000000, bitrate: 2191 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 1994 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, s16, 192 kb/s Metadata: handler_name : SoundHandler [wtv @ 03b72ac0] can't get video codec_id (0x1c) guid. [wtv @ 03b72ac0] write stream codec info failed codec_type(0x0) [wtv @ 03b72ac0] write stream codec failed codec_type(0x0) Output #0, wtv, to 'csi.wtv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.36.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 1994 kb/s, 29.97 fps, 90k tbn, 29.97 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Attachments (2)
Change History (6)
by , 12 years ago
by , 12 years ago
comment:1 by , 12 years ago
Cc: | added |
---|---|
Component: | undetermined → avformat |
Priority: | normal → wish |
Resolution: | → duplicate |
Status: | new → closed |
Type: | defect → enhancement |
Version: | → git-master |
Duplicate of ticket #536.
comment:3 by , 12 years ago
Cc: | removed |
---|---|
Keywords: | wtv added |
comment:4 by , 10 years ago
This seems to be working for me:
ffmpeg -i CSI.mp4 -codec copy -bsf:v h264_mp4toannexb csi.wtv ffmpeg version N-71734-g0e7444f Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) configuration: --disable-yasm libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 35.101 / 56. 35.101 libavformat 56. 31.100 / 56. 31.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CSI.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.36.100 Duration: 00:00:05.01, start: 0.000000, bitrate: 2191 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 1994 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 192 kb/s (default) Metadata: handler_name : SoundHandler Side data: unknown side data type 7 (4 bytes) Output #0, wtv, to 'csi.wtv': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.31.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 1994 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s (default) Metadata: handler_name : SoundHandler Side data: unknown side data type 7 (4 bytes) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 150 fps=0.0 q=-1.0 Lsize= 1404kB time=00:00:05.02 bitrate=2291.1kbits/s video:1219kB audio:116kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.175156%
Note:
See TracTickets
for help on using tickets.
Sample WTV file with H.264 and AC3