Re: [FFmpeg-user] Mpg

2016-09-23 Thread Marcelo Boufleur
Looking back at the earlier posts of this thread I realize that Juan just
wanted to convert a Quicktime MOV file into MPEG-2 with TS Container, and
add (2 or more) subtitle tracks from source SRT files that could be
switched using whatever software (VLC maybe).

The problem is that MPEG-2 in TS only supports Closed Captions (CEA-608 &
CEA-708), Teletext and DVB Subtitles, none of which can be created by
FFmpeg.

I believe MKV + MPEG-2 Codec + SRT subtitle in this case would be ideal,
specially if the intended purpose is to play it on a desktop environment.

Of course I may be wrong and the platform where the files are intended to
be played on specifically requires MPEG-2 TS content (and is also able to
handle CC / Teletext / DVB Subtitles), which would mean he is out of luck
and would have to look for other tools for this workflow.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-22 Thread Sven C. Dack

On 22/09/16 02:56, Juan O Batista wrote:

Hello Marcelo.
Let my ask you a question.

Last week you send me a solutions for preserve close caption in output mpeg 
file, using a53cc 1 parameters, it is working fine.
But the output file is mpeg-4 (part10).
My question is Can I obtain mpeg-1/2 and preserve the close caption?

Thank again
Juan Orestes

No. The support for "a53cc" is limited to decoding mpeg1&2 and for encoding it 
as H.264&H.265.


Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-21 Thread Juan O Batista
Hello Marcelo. 
Let my ask you a question. 

Last week you send me a solutions for preserve close caption in output mpeg 
file, using a53cc 1 parameters, it is working fine. 
But the output file is mpeg-4 (part10). 
My question is Can I obtain mpeg-1/2 and preserve the close caption? 

Thank again 
Juan Orestes 

- Original Message -

From: "Marcelo Boufleur"  
To: "FFmpeg user questions"  
Sent: Wednesday, September 14, 2016 6:24:52 PM 
Subject: Re: [FFmpeg-user] Mpg 

> 
> But i got error 
> bad option 'ac53' '1' 
> 

Ahh, nothing like actually trying the command. The "a53cc" option has to be 
used outside the internal parameters of x264. 

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -a53cc 
1 -an -f mpegts OUTPUT.ts 

Here is a (working and tested) command line version, and the full command 
output: 

C:\>ffmpeg -i cea708_dtv.mpg -c:v libx264 -x264opts keyint=60:min-keyint=30 
-a53cc 1 -an -f mpegts OUTPUT.TS 

ffmpeg version N-80980-g7af44ce Copyright (c) 2000-2016 the FFmpeg 
developers 
built with gcc 5.4.0 (GCC) 
configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-dxva2 --enable-libmfx 
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 
--enable-fontconfig --enable-fre 
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libc 
aca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc 
--enable-libmodplug --enab 
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-li 
bopus --enable-librtmp --enable-libschroedinger --enable-libsnappy 
--enable-libsoxr --enable-libspee 
x --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvor 
bis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable- 
libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink 
--enable-zlib 
libavutil 55. 28.100 / 55. 28.100 
libavcodec 57. 50.100 / 57. 50.100 
libavformat 57. 41.100 / 57. 41.100 
libavdevice 57. 0.102 / 57. 0.102 
libavfilter 6. 47.100 / 6. 47.100 
libswscale 4. 1.100 / 4. 1.100 
libswresample 2. 1.100 / 2. 1.100 
libpostproc 54. 0.100 / 54. 0.100 
Input #0, mpegts, from 'cea708_dtv.mpg': 
Duration: 00:00:05.01, start: 0.300911, bitrate: 6482 kb/s 
Program 1 
Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 6000 
kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc 
Stream #0:1[0x1e2]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, 
stereo, s16p, 256 kb/s 
[libx264 @ 023c42a0] using SAR=8/9 
[libx264 @ 023c42a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2 AVX 
[libx264 @ 023c42a0] profile High, level 3.0 
[mpegts @ 024c64c0] Using AVStream.codec to pass codec parameters 
to muxers is deprecated, use AVStream.codecpar instead. 
Output #0, mpegts, to 'OUTPUT.TS': 
Metadata: 
encoder : Lavf57.41.100 
Stream #0:0: Video: h264 (libx264), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 
q=-1--1, 29.97 fps, 90ktbn, 29.97 tbc 
Metadata: 
encoder : Lavc57.50.100 libx264 
Side data: 
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 
Stream mapping: 
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) 
Press [q] to stop, [?] for help 
frame= 150 fps= 25 q=-1.0 Lsize= 4690kB time=00:00:04.90 
bitrate=7833.2kbits/s speed=0.804x 
video:4333kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 8.248154% 
[libx264 @ 023c42a0] frame I:3 Avg QP:25.11 size: 57332 
[libx264 @ 023c42a0] frame P:48 Avg QP:27.88 size: 45895 
[libx264 @ 023c42a0] frame B:99 Avg QP:31.95 size: 20826 
[libx264 @ 023c42a0] consecutive B-frames: 2.0% 5.3% 74.0% 18.7% 
[libx264 @ 023c42a0] mb I I16..4: 5.7% 92.6% 1.7% 
[libx264 @ 023c42a0] mb P I16..4: 1.7% 25.7% 2.0% P16..4: 22.2% 
26.0% 16.3% 0.0% 0.0% skip: 6.0% 
[libx264 @ 023c42a0] mb B I16..4: 0.2% 3.3% 0.0% B16..8: 41.2% 
16.8% 7.4% direct:17.1% skip:14.0% L0:31.4% L1:30.1% BI:38.6% 
[libx264 @ 023c42a0] 8x8 transform intra:89.0% inter:80.4% 
[libx264 @ 023c42a0] coded y,uvDC,uvAC intra: 84.5% 81.6% 37.1% 
inter: 60.5% 46.5% 26.3% 
[libx264 @ 023c42a0] i16 v,h,dc,p: 16% 41% 33% 10% 
[libx264 @ 023c42a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 23% 38% 3% 
2% 2% 4% 3% 8% 
[libx264 @ 023c42a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 25% 14% 5% 
5% 3% 12% 4% 20% 
[libx264 @ 023c42a0] i8c dc,h,v,p: 51% 23% 20% 6% 
[libx264 @ 023c42a0] Weighted P-Frames: Y:0.0% UV:0.0% 
[libx264 @ 023c42a0] ref P L0: 54.4% 11.4% 21.2% 13.0% 
[libx264 @ 023c42a0] ref B L0: 80.8% 16.4% 2.8% 
[libx264 @ 023c42a0] ref B L1: 99.1% 0.9% 
[libx264 @ 023c42a0] kb/s:7091.63 

A

Re: [FFmpeg-user] Mpg

2016-09-15 Thread Moritz Barsnick
On Thu, Sep 15, 2016 at 22:00:20 +, Juan O Batista wrote:
> How can I know if my video has closed captioning using ffmpeg or ffprobe?

Did you see this in the reports from ffmpeg, as in Marcelo's email?:

> Input #0, mpegts, from 'cea708_dtv.mpg': 
> Duration: 00:00:05.01, start: 0.300911, bitrate: 6482 kb/s 
> Program 1 
> Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
> yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 6000 
> kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

See the words "Closed Captions" in that last line.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-15 Thread Juan O Batista
How can I know if my video has closed captioning using ffmpeg or ffprobe? 

Thank you 


- Original Message -

From: "Marcelo Boufleur"  
To: "FFmpeg user questions"  
Sent: Wednesday, September 14, 2016 6:24:52 PM 
Subject: Re: [FFmpeg-user] Mpg 

> 
> But i got error 
> bad option 'ac53' '1' 
> 

Ahh, nothing like actually trying the command. The "a53cc" option has to be 
used outside the internal parameters of x264. 

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -a53cc 
1 -an -f mpegts OUTPUT.ts 

Here is a (working and tested) command line version, and the full command 
output: 

C:\>ffmpeg -i cea708_dtv.mpg -c:v libx264 -x264opts keyint=60:min-keyint=30 
-a53cc 1 -an -f mpegts OUTPUT.TS 

ffmpeg version N-80980-g7af44ce Copyright (c) 2000-2016 the FFmpeg 
developers 
built with gcc 5.4.0 (GCC) 
configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-dxva2 --enable-libmfx 
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 
--enable-fontconfig --enable-fre 
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libc 
aca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc 
--enable-libmodplug --enab 
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-li 
bopus --enable-librtmp --enable-libschroedinger --enable-libsnappy 
--enable-libsoxr --enable-libspee 
x --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvor 
bis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable- 
libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink 
--enable-zlib 
libavutil 55. 28.100 / 55. 28.100 
libavcodec 57. 50.100 / 57. 50.100 
libavformat 57. 41.100 / 57. 41.100 
libavdevice 57. 0.102 / 57. 0.102 
libavfilter 6. 47.100 / 6. 47.100 
libswscale 4. 1.100 / 4. 1.100 
libswresample 2. 1.100 / 2. 1.100 
libpostproc 54. 0.100 / 54. 0.100 
Input #0, mpegts, from 'cea708_dtv.mpg': 
Duration: 00:00:05.01, start: 0.300911, bitrate: 6482 kb/s 
Program 1 
Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 6000 
kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc 
Stream #0:1[0x1e2]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, 
stereo, s16p, 256 kb/s 
[libx264 @ 023c42a0] using SAR=8/9 
[libx264 @ 023c42a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2 AVX 
[libx264 @ 023c42a0] profile High, level 3.0 
[mpegts @ 024c64c0] Using AVStream.codec to pass codec parameters 
to muxers is deprecated, use AVStream.codecpar instead. 
Output #0, mpegts, to 'OUTPUT.TS': 
Metadata: 
encoder : Lavf57.41.100 
Stream #0:0: Video: h264 (libx264), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 
q=-1--1, 29.97 fps, 90ktbn, 29.97 tbc 
Metadata: 
encoder : Lavc57.50.100 libx264 
Side data: 
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 
Stream mapping: 
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) 
Press [q] to stop, [?] for help 
frame= 150 fps= 25 q=-1.0 Lsize= 4690kB time=00:00:04.90 
bitrate=7833.2kbits/s speed=0.804x 
video:4333kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 8.248154% 
[libx264 @ 023c42a0] frame I:3 Avg QP:25.11 size: 57332 
[libx264 @ 023c42a0] frame P:48 Avg QP:27.88 size: 45895 
[libx264 @ 023c42a0] frame B:99 Avg QP:31.95 size: 20826 
[libx264 @ 023c42a0] consecutive B-frames: 2.0% 5.3% 74.0% 18.7% 
[libx264 @ 023c42a0] mb I I16..4: 5.7% 92.6% 1.7% 
[libx264 @ 023c42a0] mb P I16..4: 1.7% 25.7% 2.0% P16..4: 22.2% 
26.0% 16.3% 0.0% 0.0% skip: 6.0% 
[libx264 @ 023c42a0] mb B I16..4: 0.2% 3.3% 0.0% B16..8: 41.2% 
16.8% 7.4% direct:17.1% skip:14.0% L0:31.4% L1:30.1% BI:38.6% 
[libx264 @ 023c42a0] 8x8 transform intra:89.0% inter:80.4% 
[libx264 @ 023c42a0] coded y,uvDC,uvAC intra: 84.5% 81.6% 37.1% 
inter: 60.5% 46.5% 26.3% 
[libx264 @ 023c42a0] i16 v,h,dc,p: 16% 41% 33% 10% 
[libx264 @ 023c42a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 23% 38% 3% 
2% 2% 4% 3% 8% 
[libx264 @ 023c42a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 25% 14% 5% 
5% 3% 12% 4% 20% 
[libx264 @ 023c42a0] i8c dc,h,v,p: 51% 23% 20% 6% 
[libx264 @ 023c42a0] Weighted P-Frames: Y:0.0% UV:0.0% 
[libx264 @ 023c42a0] ref P L0: 54.4% 11.4% 21.2% 13.0% 
[libx264 @ 023c42a0] ref B L0: 80.8% 16.4% 2.8% 
[libx264 @ 023c42a0] ref B L1: 99.1% 0.9% 
[libx264 @ 023c42a0] kb/s:7091.63 

And here is the ffmpeg command informing about the resulting file: 

C:\>ffmpeg -i OUTPUT.TS 

ffmpeg version N-80980-g7af44ce Copyright (c) 2000-2016 the FFmpeg 
developers 
built with gcc 5.4.0 (GCC) 
configuration: --ena

Re: [FFmpeg-user] Mpg

2016-09-15 Thread Carl Eugen Hoyos
2016-09-15 0:24 GMT+02:00 Marcelo Boufleur :
>>
>> But i got error
>> bad option 'ac53' '1'
>>
>
> Ahh, nothing like actually trying the command. The "a53cc" option
> has to be used outside the internal parameters of x264.

Note that the option is not needed anymore, -a53cc 1 is the default
now.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-14 Thread Juan O Batista
Thank you Marcelo great job congratulations. 

The statement you send me work pretty good. 
Preserve my close caption using this instruction. 

Let me ask you a question. 

What software do you use to put closed captions inside the video when the 
videos are .mpg, no embedded . I need to turn on / off closed caption. 
FFmpeg only work with subtitles embedded, but no really with closed caption. 

Exist any command line software to do that? 

Thank you again. 

- Original Message -

From: "Marcelo Boufleur"  
To: "FFmpeg user questions"  
Sent: Wednesday, September 14, 2016 6:24:52 PM 
Subject: Re: [FFmpeg-user] Mpg 

> 
> But i got error 
> bad option 'ac53' '1' 
> 

Ahh, nothing like actually trying the command. The "a53cc" option has to be 
used outside the internal parameters of x264. 

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -a53cc 
1 -an -f mpegts OUTPUT.ts 

Here is a (working and tested) command line version, and the full command 
output: 

C:\>ffmpeg -i cea708_dtv.mpg -c:v libx264 -x264opts keyint=60:min-keyint=30 
-a53cc 1 -an -f mpegts OUTPUT.TS 

ffmpeg version N-80980-g7af44ce Copyright (c) 2000-2016 the FFmpeg 
developers 
built with gcc 5.4.0 (GCC) 
configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-dxva2 --enable-libmfx 
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 
--enable-fontconfig --enable-fre 
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libc 
aca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc 
--enable-libmodplug --enab 
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-li 
bopus --enable-librtmp --enable-libschroedinger --enable-libsnappy 
--enable-libsoxr --enable-libspee 
x --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvor 
bis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable- 
libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink 
--enable-zlib 
libavutil 55. 28.100 / 55. 28.100 
libavcodec 57. 50.100 / 57. 50.100 
libavformat 57. 41.100 / 57. 41.100 
libavdevice 57. 0.102 / 57. 0.102 
libavfilter 6. 47.100 / 6. 47.100 
libswscale 4. 1.100 / 4. 1.100 
libswresample 2. 1.100 / 2. 1.100 
libpostproc 54. 0.100 / 54. 0.100 
Input #0, mpegts, from 'cea708_dtv.mpg': 
Duration: 00:00:05.01, start: 0.300911, bitrate: 6482 kb/s 
Program 1 
Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 6000 
kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc 
Stream #0:1[0x1e2]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, 
stereo, s16p, 256 kb/s 
[libx264 @ 023c42a0] using SAR=8/9 
[libx264 @ 023c42a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2 AVX 
[libx264 @ 023c42a0] profile High, level 3.0 
[mpegts @ 024c64c0] Using AVStream.codec to pass codec parameters 
to muxers is deprecated, use AVStream.codecpar instead. 
Output #0, mpegts, to 'OUTPUT.TS': 
Metadata: 
encoder : Lavf57.41.100 
Stream #0:0: Video: h264 (libx264), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 
q=-1--1, 29.97 fps, 90ktbn, 29.97 tbc 
Metadata: 
encoder : Lavc57.50.100 libx264 
Side data: 
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 
Stream mapping: 
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) 
Press [q] to stop, [?] for help 
frame= 150 fps= 25 q=-1.0 Lsize= 4690kB time=00:00:04.90 
bitrate=7833.2kbits/s speed=0.804x 
video:4333kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 8.248154% 
[libx264 @ 023c42a0] frame I:3 Avg QP:25.11 size: 57332 
[libx264 @ 023c42a0] frame P:48 Avg QP:27.88 size: 45895 
[libx264 @ 023c42a0] frame B:99 Avg QP:31.95 size: 20826 
[libx264 @ 023c42a0] consecutive B-frames: 2.0% 5.3% 74.0% 18.7% 
[libx264 @ 023c42a0] mb I I16..4: 5.7% 92.6% 1.7% 
[libx264 @ 023c42a0] mb P I16..4: 1.7% 25.7% 2.0% P16..4: 22.2% 
26.0% 16.3% 0.0% 0.0% skip: 6.0% 
[libx264 @ 023c42a0] mb B I16..4: 0.2% 3.3% 0.0% B16..8: 41.2% 
16.8% 7.4% direct:17.1% skip:14.0% L0:31.4% L1:30.1% BI:38.6% 
[libx264 @ 023c42a0] 8x8 transform intra:89.0% inter:80.4% 
[libx264 @ 023c42a0] coded y,uvDC,uvAC intra: 84.5% 81.6% 37.1% 
inter: 60.5% 46.5% 26.3% 
[libx264 @ 023c42a0] i16 v,h,dc,p: 16% 41% 33% 10% 
[libx264 @ 023c42a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 23% 38% 3% 
2% 2% 4% 3% 8% 
[libx264 @ 023c42a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 25% 14% 5% 
5% 3% 12% 4% 20% 
[libx264 @ 023c42a0] i8c dc,h,v,p: 51% 23% 20% 6% 
[libx264 @ 023c42a0] Weighted P-Frames: Y:0.0% UV:0.0% 
[libx264 @ 023c42a0] ref P L0: 54.4% 11.4% 21.2% 13.0% 
[li

Re: [FFmpeg-user] Mpg

2016-09-14 Thread Marcelo Boufleur
>
> But i got error
> bad option 'ac53' '1'
>

Ahh, nothing like actually trying the command. The "a53cc" option has to be
used outside the internal parameters of x264.

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -a53cc
1 -an -f mpegts OUTPUT.ts

Here is a (working and tested) command line version, and the full command
output:

C:\>ffmpeg -i cea708_dtv.mpg -c:v libx264 -x264opts keyint=60:min-keyint=30
-a53cc 1 -an -f mpegts OUTPUT.TS

ffmpeg version N-80980-g7af44ce Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libschroedinger --enable-libsnappy
--enable-libsoxr --enable-libspee
x --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvor
bis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-
libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink
--enable-zlib
  libavutil  55. 28.100 / 55. 28.100
  libavcodec 57. 50.100 / 57. 50.100
  libavformat57. 41.100 / 57. 41.100
  libavdevice57.  0.102 / 57.  0.102
  libavfilter 6. 47.100 /  6. 47.100
  libswscale  4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc54.  0.100 / 54.  0.100
Input #0, mpegts, from 'cea708_dtv.mpg':
  Duration: 00:00:05.01, start: 0.300911, bitrate: 6482 kb/s
  Program 1
Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 6000
kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x1e2]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz,
stereo, s16p, 256 kb/s
[libx264 @ 023c42a0] using SAR=8/9
[libx264 @ 023c42a0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 023c42a0] profile High, level 3.0
[mpegts @ 024c64c0] Using AVStream.codec to pass codec parameters
to muxers is deprecated, use AVStream.codecpar instead.
Output #0, mpegts, to 'OUTPUT.TS':
  Metadata:
encoder : Lavf57.41.100
Stream #0:0: Video: h264 (libx264), yuv420p, 720x480 [SAR 8:9 DAR 4:3],
q=-1--1, 29.97 fps, 90ktbn, 29.97 tbc
Metadata:
  encoder : Lavc57.50.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=  150 fps= 25 q=-1.0 Lsize=4690kB time=00:00:04.90
bitrate=7833.2kbits/s speed=0.804x
video:4333kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 8.248154%
[libx264 @ 023c42a0] frame I:3 Avg QP:25.11  size: 57332
[libx264 @ 023c42a0] frame P:48Avg QP:27.88  size: 45895
[libx264 @ 023c42a0] frame B:99Avg QP:31.95  size: 20826
[libx264 @ 023c42a0] consecutive B-frames:  2.0%  5.3% 74.0% 18.7%
[libx264 @ 023c42a0] mb I  I16..4:  5.7% 92.6%  1.7%
[libx264 @ 023c42a0] mb P  I16..4:  1.7% 25.7%  2.0%  P16..4: 22.2%
26.0% 16.3%  0.0%  0.0%  skip: 6.0%
[libx264 @ 023c42a0] mb B  I16..4:  0.2%  3.3%  0.0%  B16..8: 41.2%
16.8%  7.4%  direct:17.1%  skip:14.0%  L0:31.4% L1:30.1% BI:38.6%
[libx264 @ 023c42a0] 8x8 transform intra:89.0% inter:80.4%
[libx264 @ 023c42a0] coded y,uvDC,uvAC intra: 84.5% 81.6% 37.1%
inter: 60.5% 46.5% 26.3%
[libx264 @ 023c42a0] i16 v,h,dc,p: 16% 41% 33% 10%
[libx264 @ 023c42a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 23% 38%  3%
 2%  2%  4%  3%  8%
[libx264 @ 023c42a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 25% 14%  5%
 5%  3% 12%  4% 20%
[libx264 @ 023c42a0] i8c dc,h,v,p: 51% 23% 20%  6%
[libx264 @ 023c42a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 023c42a0] ref P L0: 54.4% 11.4% 21.2% 13.0%
[libx264 @ 023c42a0] ref B L0: 80.8% 16.4%  2.8%
[libx264 @ 023c42a0] ref B L1: 99.1%  0.9%
[libx264 @ 023c42a0] kb/s:7091.63

And here is the ffmpeg command informing about the resulting file:

C:\>ffmpeg -i OUTPUT.TS

ffmpeg version N-80980-g7af44ce Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-lib

Re: [FFmpeg-user] Mpg

2016-09-14 Thread Juan O Batista
Thank you Marcelo. 

I tried the statement that you send me. 

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20:a53cc=1 
-an -f mpegts OUTPUT.ts 

But i got error 
bad option 'ac53' '1' 

and 

error while opening encoder for output stream #0:0 -maybe incorrect parameters 
such as bit_rate, rate, width or height 


The last error I got only I use ac53=1 

I use the last version for ffmpeg 

Thank you again. 





- Original Message -

From: "Marcelo Boufleur"  
To: "FFmpeg user questions"  
Sent: Tuesday, September 13, 2016 11:21:09 PM 
Subject: Re: [FFmpeg-user] Mpg 

> 
> He mentioned a53cc, which appears as a flag to libx264 ("-a53cc true") and 
>> enables ... something. I've given it a brief look, but couldn't figure how 
>> it's supposed to work. I was hoping someone might have experience with it, 
>> because it must have a reason for it to be in the code. 
>> 
> 
According to FFmpeg documentation: 

a53cc boolean 
Import closed captions (which must be ATSC compatible format) into output. 
Only the mpeg2 and h264 decoders provide these. Default is 0 (off). 

This is one of the options for the x264 encoder, which has to be used with 
the "-x264opts" parameter. 

According to the above description, this filters is meant for source MPG-2 
or H.264 content which already have A/53 Closed Captions embedded, and it 
will pass them on to the destination x264 file. 

Here is an example: 

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20:a53cc=1 
-an -f mpegts OUTPUT.ts 

I haven't tried this command myself, but AFAIK this is the only support 
FFmpeg currently has for Closed Captions. 
___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-13 Thread Marcelo Boufleur
>
> He mentioned a53cc, which appears as a flag to libx264 ("-a53cc true") and
>> enables ... something. I've given it a brief look, but couldn't figure how
>> it's supposed to work. I was hoping someone might have experience with it,
>> because it must have a reason for it to be in the code.
>>
>
According to FFmpeg documentation:

a53cc boolean
Import closed captions (which must be ATSC compatible format) into output.
Only the mpeg2 and h264 decoders provide these. Default is 0 (off).

This is one of the options for the x264 encoder, which has to be used with
the "-x264opts" parameter.

According to the above description, this filters is meant for source MPG-2
or H.264 content which already have A/53 Closed Captions embedded, and it
will pass them on to the destination x264 file.

Here is an example:

ffmpeg -i INPUT.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20:a53cc=1
-an -f mpegts OUTPUT.ts

I haven't tried this command myself, but AFAIK this is the only support
FFmpeg currently has for Closed Captions.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-13 Thread orestesb
Hi Carl.I have .mpeg input file this file contain close caption and I can turn 
on / off with vlc player. I need write some text inside the .mpeg. but i need 
preserve the closed caption with turn on /  off futures.Can i use the ffmpeg 
for this?Thank


Sent from my T-Mobile 4G LTE Device
 Original message From: Carl Eugen Hoyos  
Date: 9/13/16  11:56 AM  (GMT-05:00) To: FFmpeg user questions 
 Subject: Re: [FFmpeg-user] Mpg 
2016-09-10 19:59 GMT+02:00 Juan O Batista :
> ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2
> -b:a 192k -ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2
> -codec:a mp2 -b:a 192k output.mpeg

I had missed this message, sorry.

If your input does not contain Closed Captions (but other subtitles)
you cannot succeed because FFmpeg does not contain a Closed
Captions encoder.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-13 Thread Sven C. Dack

On 13/09/16 16:56, Carl Eugen Hoyos wrote:

2016-09-10 19:59 GMT+02:00 Juan O Batista :

ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2
-b:a 192k -ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2
-codec:a mp2 -b:a 192k output.mpeg

I had missed this message, sorry.

If your input does not contain Closed Captions (but other subtitles)
you cannot succeed because FFmpeg does not contain a Closed
Captions encoder.


He mentioned a53cc, which appears as a flag to libx264 ("-a53cc true") and 
enables ... something. I've given it a brief look, but couldn't figure how it's 
supposed to work. I was hoping someone might have experience with it, because it 
must have a reason for it to be in the code.


Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-13 Thread Carl Eugen Hoyos
2016-09-10 19:12 GMT+02:00 Juan O Batista :
> I need to know if it is possible.
> I have a .mov movie I need to convert to .mpeg using ffmpeg
>
> I need output .mpeg with closed captioning.
> My question is it is possible using FFMPEg?

It is possible in some cases and does not work (yet) in others.

If you want me to help (or to explain why it maybe does not work),
please:
Do not top-post here (look up what it means if necessary).
Fix your quoting.
Do not shout here.
Post the command line that you tested (and that did not
work) together with the complete, uncut console output.

You do not have to follow any of these requirements if
you don't want me to help.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-13 Thread Carl Eugen Hoyos
2016-09-10 19:59 GMT+02:00 Juan O Batista :
> ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2
> -b:a 192k -ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2
> -codec:a mp2 -b:a 192k output.mpeg

I had missed this message, sorry.

If your input does not contain Closed Captions (but other subtitles)
you cannot succeed because FFmpeg does not contain a Closed
Captions encoder.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Juan O Batista
Anybody know how can i use a53cc in ffmpeg 


- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Monday, September 12, 2016 2:23:56 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 12/09/16 18:05, Juan O Batista wrote: 
> I have .mpeg with close caption I need output .mpeg file but I need too do 
> drawtext in output file, but preserving close caption 
> 

$ ffmpeg -i video.mpeg -i subs1.srt -vf subtitles=subs2.srt -c:a copy -y 
out.mkv 

This takes "video.mpeg" as video input and "subs1.srt" as subtitles input. 

It then takes "subs2.srt" as input for the subtitles filter, which draws the 
subtitles directly into the video. 

The audio is copied the way it is with "-c:a copy". 

Your video will contain the subtitles from subs2.srt directly drawn into the 
video (these cannot be turned off when watching the video!). The video also 
contains "subs1.srt" as additional subtitle stream, which can be turned on and 
off. 

Sven 

___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Sven C. Dack

On 12/09/16 20:54, Juan O Batista wrote:

Yes Sven but I want .mpeg output file and I need turn off, turn on the subtitle.

Who is subs2.srt, I have only subtitle file is subs2


Then leave away the part with the filter "-vf subtitles=...".

If this doesn't help you then find out what exactly it is you need. We cannot 
tell you what you need. We can only show you how to get it. Start by finding out 
what it is you have and then what it is you need it for.


Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Juan O Batista

Yes Sven but I want .mpeg output file and I need turn off, turn on the 
subtitle. 

Who is subs2.srt, I have only subtitle file is subs2 


- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Monday, September 12, 2016 2:23:56 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 12/09/16 18:05, Juan O Batista wrote: 
> I have .mpeg with close caption I need output .mpeg file but I need too do 
> drawtext in output file, but preserving close caption 
> 

$ ffmpeg -i video.mpeg -i subs1.srt -vf subtitles=subs2.srt -c:a copy -y 
out.mkv 

This takes "video.mpeg" as video input and "subs1.srt" as subtitles input. 

It then takes "subs2.srt" as input for the subtitles filter, which draws the 
subtitles directly into the video. 

The audio is copied the way it is with "-c:a copy". 

Your video will contain the subtitles from subs2.srt directly drawn into the 
video (these cannot be turned off when watching the video!). The video also 
contains "subs1.srt" as additional subtitle stream, which can be turned on and 
off. 

Sven 

___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Sven C. Dack

On 12/09/16 18:05, Juan O Batista wrote:

I have .mpeg with close caption I need output .mpeg file but I need too do 
drawtext in output file, but preserving close caption



$ ffmpeg -i video.mpeg -i subs1.srt -vf subtitles=subs2.srt -c:a copy -y out.mkv

This takes "video.mpeg" as video input and "subs1.srt" as subtitles input.

It then takes "subs2.srt" as input for the subtitles filter, which draws the 
subtitles directly into the video.


The audio is copied the way it is with "-c:a copy".

Your video will contain the subtitles from subs2.srt directly drawn into the 
video (these cannot be turned off when watching the video!). The video also 
contains "subs1.srt" as additional subtitle stream, which can be turned on and off.


Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Juan O Batista
I have .mpeg with close caption I need output .mpeg file but I need too do 
drawtext in output file, but preserving close caption 

- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Monday, September 12, 2016 12:42:24 PM 
Subject: Re: [FFmpeg-user] Mpg 

Hello Juan, 

it is possible, but could you tells us more what you are trying to do? It is 
possible means that it is possible under the right circumstances. Depending on 
what you are trying to do may it also not be possible. So you have to give us 
more information or there is no way we can help. 

Sven 



On 12/09/16 17:33, Juan O Batista wrote: 
> HOW TO PRESERVING CLOSED CAPTION AFTER CONVERTING A VIDEO USING FFMPEG 
> IT IS POSSIBLE? 
> 
> THANK YOU 
> - Original Message - 
> 
> From: "Sven C. Dack"  
> To: "FFmpeg user questions"  
> Sent: Saturday, September 10, 2016 3:55:28 PM 
> Subject: Re: [FFmpeg-user] Mpg 
> 
> On 10/09/16 20:16, Juan O Batista wrote: 
>> Thank you Sven. What MPEG MPEG transport stream format is better. 
>> 
>> Thank you 
>> 
> Anyone that works is good. 
> 
> I personally prefer the Matroska format ("-f matroska" or .mkv) as its in 
> wide 
> use these days, very flexible - it can carry a large variety of audio and 
> video 
> formats - it's efficient in space, and free of patents and royalty fees as 
> far 
> as I know. It's a clear winner for me. Not every player however supports the 
> Matroska format, but the applications and players I do care about (i.e. vlc 
> and 
> mpv) handle it well. 
> 
> Sven 
> 
> ___ 
> ffmpeg-user mailing list 
> ffmpeg-user@ffmpeg.org 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> 
> To unsubscribe, visit link above, or email 
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 
> 
> ___ 
> ffmpeg-user mailing list 
> ffmpeg-user@ffmpeg.org 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> 
> To unsubscribe, visit link above, or email 
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 


___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Sven C. Dack

Hello Juan,

  it is possible, but could you tells us more what you are trying to do? It is 
possible means that it is possible under the right circumstances. Depending on 
what you are trying to do may it also not be possible. So you have to give us 
more information or there is no way we can help.


Sven



On 12/09/16 17:33, Juan O Batista wrote:

HOW TO PRESERVING CLOSED CAPTION AFTER CONVERTING A VIDEO USING FFMPEG
IT IS POSSIBLE?

THANK YOU
- Original Message -

From: "Sven C. Dack" 
To: "FFmpeg user questions" 
Sent: Saturday, September 10, 2016 3:55:28 PM
Subject: Re: [FFmpeg-user] Mpg

On 10/09/16 20:16, Juan O Batista wrote:

Thank you Sven. What MPEG MPEG transport stream format is better.

Thank you


Anyone that works is good.

I personally prefer the Matroska format ("-f matroska" or .mkv) as its in wide
use these days, very flexible - it can carry a large variety of audio and video
formats - it's efficient in space, and free of patents and royalty fees as far
as I know. It's a clear winner for me. Not every player however supports the
Matroska format, but the applications and players I do care about (i.e. vlc and
mpv) handle it well.

Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-12 Thread Juan O Batista
HOW TO PRESERVING CLOSED CAPTION AFTER CONVERTING A VIDEO USING FFMPEG 
IT IS POSSIBLE? 

THANK YOU 
- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Saturday, September 10, 2016 3:55:28 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 10/09/16 20:16, Juan O Batista wrote: 
> Thank you Sven. What MPEG MPEG transport stream format is better. 
> 
> Thank you 
> 

Anyone that works is good. 

I personally prefer the Matroska format ("-f matroska" or .mkv) as its in wide 
use these days, very flexible - it can carry a large variety of audio and video 
formats - it's efficient in space, and free of patents and royalty fees as far 
as I know. It's a clear winner for me. Not every player however supports the 
Matroska format, but the applications and players I do care about (i.e. vlc and 
mpv) handle it well. 

Sven 

___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-11 Thread Moritz Barsnick
On Sat, Sep 10, 2016 at 20:55:28 +0100, Sven C. Dack wrote:
> It's a clear winner for me. Not every player however supports the
> Matroska format, but the applications and players I do care about
> (i.e. vlc and mpv) handle it well.

And that's exactly the question Juan needs to ask himself: What do I
want to achieve? Which means: Which players need to be able to play the
file? Will I pass it on to other people, or upload it to some site
(either of which again may not like all formats).

The same question needs to be asked for codecs and their parameters as
well, usually.

Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Sven C. Dack

On 10/09/16 20:16, Juan O Batista wrote:

Thank you Sven. What MPEG MPEG transport stream format is better.

Thank you



Anyone that works is good.

I personally prefer the Matroska format ("-f matroska" or .mkv) as its in wide 
use these days, very flexible - it can carry a large variety of audio and video 
formats - it's efficient in space, and free of patents and royalty fees as far 
as I know. It's a clear winner for me. Not every player however supports the 
Matroska format, but the applications and players I do care about (i.e. vlc and 
mpv) handle it well.


Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Carl Eugen Hoyos
2016-09-10 20:45 GMT+02:00 Sven C. Dack :

> As you can see does .mpeg not support subtitles.

Closed Captions are different from other subtitles and can be stored
container-independently, they are found regularly in mpeg streams.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Juan O Batista
Sven 

Do you have any string for using MPEG transport stream format 
Thank you 


- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Saturday, September 10, 2016 2:45:46 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 10/09/16 18:59, Juan O Batista wrote: 
> Thank you. My purpose is obtain a .mpeg file with close caption because some 
> channel use mpeg extension. 
> 
> I used mpeg2video but in the video result i can see the close caption 
> 
> ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2 -b:a 
> 192k -ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2 -codec:a mp2 -b:a 
> 192k output.mpeg 
> 
> thank you 

What you need to do is to put the video, audio and subtitles into a fitting 
container format. You can find an overview of different container formats here: 

https://en.wikipedia.org/wiki/Comparison_of_video_container_formats 

As you can see does .mpeg not support subtitles. To see which formats ffmpeg 
supports enter "ffmpeg -formats". To pick a specific one do you use the -f 
option. Otherwise will ffmpeg guess the format from the file extension, which 
may not what you want. An example: 

ffmpeg ... -f mpegts -y output.mpeg 

This will use the MPEG transport stream format and name the file "output.mpeg". 

Sven 

___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Juan O Batista
Thank you Sven. What MPEG MPEG transport stream format is better. 

Thank you 

- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Saturday, September 10, 2016 2:45:46 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 10/09/16 18:59, Juan O Batista wrote: 
> Thank you. My purpose is obtain a .mpeg file with close caption because some 
> channel use mpeg extension. 
> 
> I used mpeg2video but in the video result i can see the close caption 
> 
> ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2 -b:a 
> 192k -ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2 -codec:a mp2 -b:a 
> 192k output.mpeg 
> 
> thank you 

What you need to do is to put the video, audio and subtitles into a fitting 
container format. You can find an overview of different container formats here: 

https://en.wikipedia.org/wiki/Comparison_of_video_container_formats 

As you can see does .mpeg not support subtitles. To see which formats ffmpeg 
supports enter "ffmpeg -formats". To pick a specific one do you use the -f 
option. Otherwise will ffmpeg guess the format from the file extension, which 
may not what you want. An example: 

ffmpeg ... -f mpegts -y output.mpeg 

This will use the MPEG transport stream format and name the file "output.mpeg". 

Sven 

___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Sven C. Dack

On 10/09/16 18:59, Juan O Batista wrote:

Thank you. My purpose is obtain a .mpeg file with close caption because some 
channel use mpeg extension.

I used mpeg2video but in the video result i can see the close caption

ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2 -b:a 192k 
-ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2 -codec:a mp2 -b:a 192k 
output.mpeg

thank you


What you need to do is to put the video, audio and subtitles into a fitting 
container format. You can find an overview of different container formats here:


https://en.wikipedia.org/wiki/Comparison_of_video_container_formats

As you can see does .mpeg not support subtitles. To see which formats ffmpeg 
supports enter "ffmpeg -formats". To pick a specific one do you use the -f 
option. Otherwise will ffmpeg guess the format from the file extension, which 
may not what you want. An example:


ffmpeg ... -f mpegts -y output.mpeg

This will use the MPEG transport stream format and name the file "output.mpeg".

Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Juan O Batista
Thank you. My purpose is obtain a .mpeg file with close caption because some 
channel use mpeg extension. 

I used mpeg2video but in the video result i can see the close caption 

ffmpeg -i input.mov -i cap.srt -codec:v mpeg2video -b:v 10M -c:a mp2 -b:a 192k 
-ar 48000 -r 29.97 -timecode 00:01:00:00 -qscale:v 2 -codec:a mp2 -b:a 192k 
output.mpeg 

thank you 


- Original Message -

From: "Sven C. Dack"  
To: "FFmpeg user questions"  
Sent: Saturday, September 10, 2016 1:29:32 PM 
Subject: Re: [FFmpeg-user] Mpg 

On 10/09/16 18:12, Juan O Batista wrote: 
> Hello everyone. 
> 
> I need to know if it is possible. 
> I have a .mov movie I need to convert to .mpeg using ffmpeg 
> 
> I need output .mpeg with closed captioning. 
> My question is it is possible using FFMPEg? 
> 
> 
> Thank you 
Hello Juan, 

it's very likely possible, but as Reindl already said it does it require a bit 
more information. 

If you do have ffmpeg installed then you might be able to use "ffprobe 
file.mov" 
where "file.mov" is your .mov file and it will try to tell you more about it. 

Can you tell us for what purpose you need it to be as a .mpeg file? The more we 
know about the application the better we can help you. 

Sven 

___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Sven C. Dack

On 10/09/16 18:12, Juan O Batista wrote:

Hello everyone.

I need to know if it is possible.
I have a .mov movie I need to convert to .mpeg using ffmpeg

I need output .mpeg with closed captioning.
My question is it is possible using FFMPEg?


Thank you

Hello Juan,

it's very likely possible, but as Reindl already said it does it require a bit 
more information.


If you do have ffmpeg installed then you might be able to use "ffprobe file.mov" 
where "file.mov" is your .mov file and it will try to tell you more about it.


Can you tell us for what purpose you need it to be as a .mpeg file? The more we 
know about the application the better we can help you.


Sven

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Mpg

2016-09-10 Thread Reindl Harald



Am 10.09.2016 um 19:12 schrieb Juan O Batista:

I need to know if it is possible.
I have a .mov movie I need to convert to .mpeg using ffmpeg

I need output .mpeg with closed captioning.
My question is it is possible using FFMPEg?


in context of a video file .mpeg means anything as well as .mov means 
anything because it's just a container - you need to talk about codecs 
to begin with


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".