[FFmpeg-user] Remove cea 708 captions from mp4
Igor Brezac
igor at ypass.net
Wed Mar 2 18:32:30 CET 2016
On Wed, Mar 2, 2016 at 12:03 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Igor Brezac <igor <at> ypass.net> writes:
>
> > Is there a way to remove embedded Closed Caption (cea-708)
> > from an mp4 using ffmpeg?
> >
> > Codec copy does not work, ffmpeg copies the user data to
> > the destination mp4.
>
> Please provide the command line you tested together
> with the complete, uncut console output.
>
Thanks for your help!
./ffmpeg -y -i 200k.mp4 -codec copy t.mp4
ffmpeg version N-53245-g5156578-static http://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.1 (Debian 5.3.1-10) 20160224
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame
--enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex
--enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-amrwbenc --enable-gray
--enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls
--enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi
--disable-indev=sndio --disable-outdev=sndio --enable-librtmp
--enable-libmfx --cc=gcc
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 27.100 / 57. 27.100
libavformat 57. 26.100 / 57. 26.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 37.100 / 6. 37.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '200k.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.29.104
Duration: 00:43:53.40, start: 0.000000, bitrate: 270 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 320x180 [SAR 1:1 DAR 16:9], Closed Captions, 198
kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 63 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, mp4, to 't.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
320x180 [SAR 1:1 DAR 16:9], q=2-31, 198 kb/s, 29.97 fps, 29.97 tbr, 16k
tbn, 1k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz,
stereo, 63 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=78923 fps=0.0 q=-1.0 Lsize= 86974kB time=00:43:53.37 bitrate=
270.6kbits/s speed=3.5e+03x
video:63771kB audio:20570kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 3.121900%
./ffmpeg -i t.mp4
ffmpeg version N-53245-g5156578-static http://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.1 (Debian 5.3.1-10) 20160224
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame
--enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex
--enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-amrwbenc --enable-gray
--enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls
--enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi
--disable-indev=sndio --disable-outdev=sndio --enable-librtmp
--enable-libmfx --cc=gcc
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 27.100 / 57. 27.100
libavformat 57. 26.100 / 57. 26.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 37.100 / 6. 37.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 't.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:43:53.40, start: 0.000000, bitrate: 270 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 320x180 [SAR 1:1 DAR 16:9], Closed Captions, 198
kb/s, 29.97 fps, 29.97 tbr, 16k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 63 kb/s (default)
Metadata:
handler_name : SoundHandler
At least one output file must be specified
More information about the ffmpeg-user
mailing list