Re: [FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-12 Thread Carl Eugen Hoyos
Am Di., 12. Mai 2020 um 13:16 Uhr schrieb PPRJ01 :

> Actually, my initial objective was to remove the Closed Captions from all my 
> movies.

Isn't this easiest with "-a53cc 0", since you are re-encoding
somewhere in your pipeline?

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

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

Re: [FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-12 Thread PPRJ01
Hello Carl Eugen,

Please note that this case is now closed for me. I found this workaround :

    ffmpeg -t 180 -i INPUT.mp4 -c copy TMP.mp4
    ffmpeg -f lavfi -i "movie=TMP.mp4[out0+subcc]" -map s OUTPUT.srt -v warning

When there are no Closed Captions within the first 3 minutes of the video 
stream, ffmpeg displays a warning : Output file is empty ...

The drawback is that this is a very slow procedure.


Actually, my initial objective was to remove the Closed Captions from all my 
movies.

I finally found how to do it, in a fast and efficient way, even if the video 
stream does NOT contain CC :

    ffmpeg -i INPUT.mp4 -c copy -bsf:v filter_units=remove_types=6 OUTPUT.mp4

Thank you for your help

Best Rgds 

 

Pascal

 



Message du 08/05/20 22:54

De : "Carl Eugen Hoyos" 

A : "FFmpeg user questions" 

Copie à :

Objet : Re: [FFmpeg-user] Closed Captions for zone 1 DVD

 

 

> Am 08.05.2020 um 22:28 schrieb PPRJ01 
:
> 
> 
> Please find attached a short sample file named "2005.mp4". This is the result 
> of command :
> 
> ffmpeg -ss 99 -to 103 -i 2005.VOB 2005.mp4

Never provide output files (unless specifically requested), please provide an 
input sample that allows to reproduce.

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

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

Re: [FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-08 Thread Carl Eugen Hoyos



> Am 08.05.2020 um 22:28 schrieb PPRJ01 :
> 
> 
> Please find attached a short sample file named "2005.mp4". This is the result 
> of command :
> 
> ffmpeg -ss 99 -to 103 -i 2005.VOB 2005.mp4

Never provide output files (unless specifically requested), please provide an 
input sample that allows to reproduce.

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

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

Re: [FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-05 Thread Carl Eugen Hoyos
Am Di., 5. Mai 2020 um 23:12 Uhr schrieb PPRJ01 :

> I tried adding large values with options "-analyzeduration" and
> "probesize" but this does NOT work for Closed Captions even
> if it works properly for regular subtitle streams.

> Please understand that I am not a beginner.

Very bad try.

Please provide a sample, Carl Eugen

And please consider using a sane mail client...
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-05 Thread PPRJ01
Thank you Carl Eugen,

I tried adding large values with options "-analyzeduration" and "probesize" but 
this does NOT work for Closed Captions even if it works properly for regular 
subtitle streams.

Please understand that I am not a beginner. I have a 45 years background in IT 
support for several companies of more than 100,000 employees all over the world.

Have in mind that many people are not developpers and need simple answers to 
simple questions.

Again : is there any special codification of Closed Caption for US DVDs ?

Rgds

 

> Message du 05/05/20 18:30
> De : "Carl Eugen Hoyos" 
> A : "FFmpeg user questions" 
> Copie à : 
> Objet : Re: [FFmpeg-user] Closed Captions for zone 1 DVD
> 
> Am Di., 5. Mai 2020 um 17:41 Uhr schrieb PPRJ01 
: > I don't understand why neither ffmpeg nor ffprobe detect presence of closed 
captions within MP4/H.264 in some video streams when VLC does. > > Let me 
explain this... In the past 20 years, I have been working in several countries 
over the world and I bought official DVDs. Not duplicates ;-) I ripped them 
first to VOB and recently converted them to MP4/H.264 with ffmpeg without using 
the "-a53cc" option. > > Reminder : when running ffmpeg and ffprobe, a few 
lines are written first to stderr. The words "Closed Captions", when present, 
indicate that the video stream contains closed captions. > > ==> The point is 
that ffmpeg/ffprobe do not show closed captions existence for MP4/H.264 files 
that come from ZONE 1 DVDs but VLC does and displays them. > > ==> Conversely, 
for zone 2 DVD, ffmpeg/ffprobe work properly. > > ==> Do you know why this 
happens ??? > > I am currently using a Windows 10 version of ffmpeg/ffprobe. 
Please see the details below with a DVD, bought in zone 1, that contains closed 
captions. >  > > ffprobe version 4.1 
Copyright (c) 2007-2018 the FFmpeg developers Please test current FFmpeg git 
head before reporting issues on this mailing list. For future questions: Please 
understand that your subject is maximally misleading, please try to improve... 
Finally: Please confirm that this happens for files where the first closed 
captions appear later in the stream and retry with (very) large values for 
-analyzeduration and -probesize. Carl Eugen 
___ ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-05 Thread Carl Eugen Hoyos
Am Di., 5. Mai 2020 um 17:41 Uhr schrieb PPRJ01 :

> I don't understand why neither ffmpeg nor ffprobe detect presence of closed 
> captions within MP4/H.264 in some video streams when VLC does.
>
> Let me explain this... In the past 20 years, I have been working in several 
> countries over the world and I bought official DVDs. Not duplicates ;-) I 
> ripped them first to VOB and recently converted them to MP4/H.264 with ffmpeg 
> without using the "-a53cc" option.
>
> Reminder : when running ffmpeg and ffprobe, a few lines are written first to 
> stderr. The words "Closed Captions", when present, indicate that the video 
> stream contains closed captions.
>
> ==> The point is that ffmpeg/ffprobe do not show closed captions existence 
> for MP4/H.264 files that come from ZONE 1 DVDs but VLC does and displays them.
>
> ==> Conversely, for zone 2 DVD, ffmpeg/ffprobe work properly.
>
> ==> Do you know why this happens ???
>
> I am currently using a Windows 10 version of ffmpeg/ffprobe. Please see the 
> details below with a DVD, bought in zone 1, that contains closed captions.

> 
>
> ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers

Please test current FFmpeg git head before reporting issues on this
mailing list.

For future questions: Please understand that your subject is maximally
misleading, please try to improve...

Finally: Please confirm that this happens for files where the first closed
captions appear later in the stream and retry with (very) large values
for -analyzeduration and -probesize.

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

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

[FFmpeg-user] Closed Captions for zone 1 DVD

2020-05-05 Thread PPRJ01
Hi All,

I don't understand why neither ffmpeg nor ffprobe detect presence of closed 
captions within MP4/H.264 in some video streams when VLC does.

Let me explain this... In the past 20 years, I have been working in several 
countries over the world and I bought official DVDs. Not duplicates ;-) I 
ripped them first to VOB and recently converted them to MP4/H.264 with ffmpeg 
without using the "-a53cc" option.

Reminder : when running ffmpeg and ffprobe, a few lines are written first to 
stderr. The words "Closed Captions", when present, indicate that the video 
stream contains closed captions.

==> The point is that ffmpeg/ffprobe do not show closed captions existence for 
MP4/H.264 files that come from ZONE 1 DVDs but VLC does and displays them.

==> Conversely, for zone 2 DVD, ffmpeg/ffprobe work properly.

==> Do you know why this happens ???

I am currently using a Windows 10 version of ffmpeg/ffprobe. Please see the 
details below with a DVD, bought in zone 1, that contains closed captions.

 

Best rgds




ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20181017
  configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass 
--enable-libbluray --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab 
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex 
--enable-libxvid --enable-libaom --enable-libmfx --enable-amf 
--enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc 
--enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil  56. 22.100 / 56. 22.100
  libavcodec 58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter 7. 40.101 /  7. 40.101
  libswscale  5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2005_Executive 
decision_2h08m35_en.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title   : Executive decision
    encoder : Lavf58.20.100
  Duration: 02:08:35.08, start: 0.00, bitrate: 1813 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 
[SAR 32:27 DAR 16:9], 1538 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc 
(default)
    Metadata:
  handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 128 kb/s (default)
    Metadata:
  handler_name    : SoundHandler
    Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 128 kb/s
    Metadata:
  handler_name    : SoundHandler
    Stream #0:3(spa): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x480, 2 
kb/s (default)
    Metadata:
  handler_name    : SubtitleHandler
    Stream #0:4(spa): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x480, 2 
kb/s
    Metadata:
  handler_name    : SubtitleHandler
    Stream #0:5(fre): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x480, 1 
kb/s
    Metadata:
  handler_name    : SubtitleHandler
    Stream #0:6(fre): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x480, 1 
kb/s
    Metadata:
  handler_name    : SubtitleHandler
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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