Assistance with "pts have no value" error adding subtitle stream

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Assistance with "pts have no value" error adding subtitle stream

Karen Norton
Hello all,

I've done numerous searches for a resolution but haven't been able to find
anything and I've spent hours trying various command lines but to no luck.
I'm hoping someone here might have an answer.

I have a TV Series that is English dialogue but with a few areas in each
episode where the dialogue is Inuit and therefore needs subtitle
translation to English. The translation was missing so I thought I would
add it myself. I took full English subtitles and chopped them down to just
the parts that need translating and have embedded them as a separate
stream. Usually I just keep the subtitles as separate SRT files so adding
them as a stream was more just to see how the command line works because I
haven't tried it before.

This process has been working flawlessly for five files which are AVC/AAC
mp4s using the command line:

ffmpeg -i inputfile.mp4 -i subfile.srt -metadata media_type="10" -metadata
show="Show Name" -metadata season_number="1" -metadata title="Episode
Title" -metadata episode_id="Episode 10" -metadata episode_sort="10" -c
copy -c:s mov_text -metadata:s:s:0 language=eng outputfile.mp4

Then I came across a file which gave a string of these errors:
[mp4 @ 00000000048cd760] Application provided duration: 2398896000 /
timestamp: 2398896000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2405985999 /
timestamp: 2407613000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2410156998 /
timestamp: 2415371000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2422085997 /
timestamp: 2429218000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2426422996 /
timestamp: 2435307000 is out of range for mov/mp4 format

In my research to find a solution I came across someone who had this error
and it turned out they had one bad line in the subtitle where the end time
was earlier than the start time. I had hope this was my problem but no such
luck. I went through each line of the SRT file and it was fine. Fortunately
there were only 40 lines so this didn't take long.

What's interesting though is that I can embed the full SRT file with no
problem (the entire file is 430 lines long).

I ran a test where I split the SRT file in half. I could embed the first
215 lines fine and I could embed the last 215 lines fine. The particular
translation comes near the end of the show and runs from about the 39:00
minute mark and goes until about 50:00 minutes. The show is 54:00 minutes
long so I figured it was in the last 215 lines where the issue is so I
started to narrow this file down. I took out everything after the last
translation at the 50:00 minute mark and worked with everything before that
and it embedded fine so I knew it wasn't anything beyond the last
translation.

I then started to remove sections prior to 39:00 minutes which is where I
need it to start. I was able to get it down to translation at 34;00
minutes. If I remove one more line which puts it at about 38:00 minutes it
starts throwing the PTS errors so there's something from about 38:00
minutes to 50:00 minutes that's funky with the video file.

I started to go through the file almost millisecond by millisecond in a
file editor and didn't find anything weird (example timecode is corrupt) so
I'm at a loss as to what the problem is.

Am I correct so assume the number after the error part " Application
provided duration" (ex: 2398896000) is milliseconds? If so then if I have
done my math correct isn't this 666 hours? If so obviously something is
wrong there.

I tried doing a timestamp reset but I was grasping at straws and fumbling
around with:
ffmpeg -i inputfile.mp4 -c:v mpeg4 -q:v 2 -reset_timestamps 1 outputfile.mp4

but this didn't work.

Any help would be appreciated? Do I have to pull the file apart and remux
it in hopes of resetting everything? Is there another solution?

Let me know if you need more information (ex: console output, etc.)

Thanks.


Karen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Assistance with "pts have no value" error adding subtitle stream

Carl Eugen Hoyos-2
2018-04-28 17:00 GMT+02:00, Karen Norton <[hidden email]>:

> ffmpeg -i inputfile.mp4 -i subfile.srt -metadata media_type="10" -metadata
> show="Show Name" -metadata season_number="1" -metadata title="Episode
> Title" -metadata episode_id="Episode 10" -metadata episode_sort="10" -c
> copy -c:s mov_text -metadata:s:s:0 language=eng outputfile.mp4

Complete, uncut console output missing.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Assistance with "pts have no value" error adding subtitle stream

Karen Norton
Here's the uncut console:

\ffmpeg-folder\ffmpeg\bin>ffmpeg -i terrorout.mp4 -i
terrors01e10_eleventh.srt -metadata media_type="10" -metadata show="The
Terror" -metadata season_number="1" -metadata title="We Are Gone" -metadata
episode_id="Episode 10" -metadata episode_sort="10" -c copy -c:s mov_text
-metadata:s:s:0 language=eng terrors01e10-outfile.mp4
ffmpeg version N-85588-g6108805 Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 93.100 / 57. 93.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 84.101 /  6. 84.101
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'terrorout.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf57.72.101
  Duration: 00:54:14.05, start: 0.000000, bitrate: 1414 kb/s
    Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
yuv420p, 640x360 [SAR 1:1 DAR 16:9], 1280 kb/s, 23.98 fps, 23.98 tbr, 24k
tbn, 24k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 129 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Input #1, srt, from 'terrors01e10_eleventh.srt':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Subtitle: subrip
File 'terrors01e10-outfile.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'terrors01e10-outfile.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    episode_sort    : 10
    media_type      : 10
    show            : The Terror
    season_number   : 1
    title           : We Are Gone
    episode_id      : Episode 10
    encoder         : Lavf57.72.101
    Stream #0:0(eng): Video: mpeg4 (Simple Profile) ( [0][0][0] / 0x0020),
yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 1280 kb/s, 23.98 fps, 23.98
tbr, 24k tbn, 24k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz,
stereo, fltp, 129 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008)
    Metadata:
      encoder         : Lavc57.93.100 mov_text
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #1:0 -> #0:2 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
[mp4 @ 00000000048cd760] Application provided duration: 2398896000 /
timestamp: 2398896000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2405985999 /
timestamp: 2407613000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2410156998 /
timestamp: 2415371000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2422085997 /
timestamp: 2429218000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2426422996 /
timestamp: 2435307000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2734146995 /
timestamp: 2744867000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2736148994 /
timestamp: 2749121000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2739068993 /
timestamp: 2753250000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2741443992 /
timestamp: 2758922000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2755541991 /
timestamp: 2774146000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2757459990 /
timestamp: 2777107000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2761922989 /
timestamp: 2782780000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2764758988 /
timestamp: 2786825000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2772891987 /
timestamp: 2796001000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2788865986 /
timestamp: 2813685000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2789824985 /
timestamp: 2818106000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2792952984 /
timestamp: 2823153000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2795329983 /
timestamp: 2826990000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2797957982 /
timestamp: 2830661000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2805131981 /
timestamp: 2840170000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2879456980 /
timestamp: 2917331000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2882250979 /
timestamp: 2921918000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2883209978 /
timestamp: 2924296000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2885837977 /
timestamp: 2928884000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2886838976 /
timestamp: 2931219000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2887756975 /
timestamp: 2933347000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2892803974 /
timestamp: 2940145000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2893304973 /
timestamp: 2941772000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2894013972 /
timestamp: 2943690000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2901270971 /
timestamp: 2953325000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2903397970 /
timestamp: 2956787000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2905607969 /
timestamp: 2960123000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2908693968 /
timestamp: 2965420000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2911154967 /
timestamp: 2969883000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2912447966 /
timestamp: 2973637000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2913573965 /
timestamp: 2975806000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2922582964 /
timestamp: 2986024000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2924209963 /
timestamp: 2989403000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2949192962 /
timestamp: 3017931000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2954155961 /
timestamp: 3027315000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
[mp4 @ 00000000048cd760] Application provided duration: 2959577960 /
timestamp: 3034072000 is out of range for mov/mp4 format
[mp4 @ 00000000048cd760] pts has no value
frame=78019 fps=2843 q=-1.0 Lsize=  562029kB time=00:54:14.00
bitrate=1414.9kbits/s speed= 119x
video:508754kB audio:51410kB subtitle:1kB other streams:0kB global
headers:0kB muxing overhead: 0.332676%

Thanks!


Karen


On Sat, Apr 28, 2018 at 4:10 PM, Carl Eugen Hoyos <[hidden email]>
wrote:

> 2018-04-28 17:00 GMT+02:00, Karen Norton <[hidden email]>:
>
> > ffmpeg -i inputfile.mp4 -i subfile.srt -metadata media_type="10"
> -metadata
> > show="Show Name" -metadata season_number="1" -metadata title="Episode
> > Title" -metadata episode_id="Episode 10" -metadata episode_sort="10" -c
> > copy -c:s mov_text -metadata:s:s:0 language=eng outputfile.mp4
>
> Complete, uncut console output missing.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Assistance with "pts have no value" error adding subtitle stream

Carl Eugen Hoyos-2
2018-04-28 22:53 GMT+02:00, Karen Norton <[hidden email]>:

> \ffmpeg-folder\ffmpeg\bin>ffmpeg -i terrorout.mp4 -i
> terrors01e10_eleventh.srt -metadata media_type="10" -metadata show="The
> Terror" -metadata season_number="1" -metadata title="We Are Gone" -metadata
> episode_id="Episode 10" -metadata episode_sort="10" -c copy -c:s mov_text
> -metadata:s:s:0 language=eng terrors01e10-outfile.mp4
> ffmpeg version N-85588-g6108805 Copyright (c) 2000-2017

Please verify that you can reproduce the issue with current
FFmpeg git head and provide the srt file.

Please remember not to top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Assistance with "pts have no value" error adding subtitle stream

Karen Norton
On Sun, Apr 29, 2018 at 10:36 AM, Carl Eugen Hoyos <[hidden email]>
wrote:

> 2018-04-28 22:53 GMT+02:00, Karen Norton <[hidden email]>:
>
> > \ffmpeg-folder\ffmpeg\bin>ffmpeg -i terrorout.mp4 -i
> > terrors01e10_eleventh.srt -metadata media_type="10" -metadata show="The
> > Terror" -metadata season_number="1" -metadata title="We Are Gone"
> -metadata
> > episode_id="Episode 10" -metadata episode_sort="10" -c copy -c:s mov_text
> > -metadata:s:s:0 language=eng terrors01e10-outfile.mp4
> > ffmpeg version N-85588-g6108805 Copyright (c) 2000-2017
>
> Please verify that you can reproduce the issue with current
> FFmpeg git head and provide the srt file.
>
> Please remember not to top-post here, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>


Thanks Carl. Apologies for top posting.

I will try the latest version and report the results and supply the srt if
needed.

As an update... I also tried re-encoding in hopes that maybe a new
timestamp would be created (if the timestamp is the issue) but the error
persists. It could be the file is irreparably corrupt.

Cheers.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".