Timestamps are unset & Error writing trailer

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Timestamps are unset & Error writing trailer

Mark Filipak
I am getting only failures.

"Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the
future. Fix your code to set the timestamps properly"

How do I "Fix your code to set the timestamps properly"?

Error writing trailer of C:\AVOut\foo.mkv: Invalid argument

"trailer"? "Invalid argument"? What's this all about?

I'm at a loss. Please help.

Regards,
Mark.


ffmpeg -analyzeduration 50000000 -probesize 50000000 -i
"concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB" -c copy -dn
-map 0 C:\AVOut\foo.mkv

ffmpeg version N-94664-g0821bc4eee Copyright (c) 2000-2019 the FFmpeg developers
   built with gcc 9.1.1 (GCC) 20190807
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls
--enable-iconv --enable-libass --enable-libdav1d --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 --enable-libopenmpt
   libavutil      56. 33.100 / 56. 33.100
   libavcodec     58. 55.101 / 58. 55.101
   libavformat    58. 31.104 / 58. 31.104
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.101 /  7. 58.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
Input #0, mpeg, from
'concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB':
   Duration: 02:09:34.53, start: 0.280633, bitrate: 5556 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR
16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
     Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:3[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:4[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:5[0x22]: Subtitle: dvd_subtitle
     Stream #0:6[0x21]: Subtitle: dvd_subtitle
File 'C:\AVOut\foo.mkv' already exists. Overwrite ? [y/N] Y
Output #0, matroska, to 'C:\AVOut\foo.mkv':
   Metadata:
     encoder         : Lavf58.31.104
     Stream #0:0: Video: mpeg2video (Main) (mpg2 / 0x3267706D), yuv420p(tv, top first), 720x480 [SAR
32:27 DAR 16:9], q=2-31, 29.97 fps, 59.94 tbr, 1k tbn, 90k tbc
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:3: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:4: Subtitle: dvd_subtitle ([255][255][255][255] / 0xFFFFFFFF)
     Stream #0:5: Subtitle: dvd_subtitle ([255][255][255][255] / 0xFFFFFFFF)
Stream mapping:
   Stream #0:1 -> #0:0 (copy)
   Stream #0:2 -> #0:1 (copy)
   Stream #0:3 -> #0:2 (copy)
   Stream #0:4 -> #0:3 (copy)
   Stream #0:5 -> #0:4 (copy)
   Stream #0:6 -> #0:5 (copy)
Press [q] to stop, [?] for help
[matroska @ 00000233fd2dce80] Timestamps are unset in a packet for stream 0. This is deprecated and
will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 00000233fd2dce80] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 00000233fd2dce80] Can't write packet with unknown timestamp
Error writing trailer of C:\AVOut\foo.mkv: Invalid argument
frame=  250 fps=0.0 q=-1.0 Lsize=      21kB time=00:00:10.01 bitrate=  17.5kbits/s speed= 118x
video:6870kB audio:1222kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Timestamps are unset & Error writing trailer

Paul B Mahol
On 4/2/20, Mark Filipak <[hidden email]> wrote:

> I am getting only failures.
>
> "Timestamps are unset in a packet for stream 0. This is deprecated and will
> stop working in the
> future. Fix your code to set the timestamps properly"
>
> How do I "Fix your code to set the timestamps properly"?
>
> Error writing trailer of C:\AVOut\foo.mkv: Invalid argument
>
> "trailer"? "Invalid argument"? What's this all about?
>
> I'm at a loss. Please help.
>
> Regards,
> Mark.
>
>
> ffmpeg -analyzeduration 50000000 -probesize 50000000 -i
> "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB"

We already told you multiple times that DVDs are not supported by ffmpeg.

> -c copy -dn
> -map 0 C:\AVOut\foo.mkv
>
> ffmpeg version N-94664-g0821bc4eee Copyright (c) 2000-2019 the FFmpeg
> developers
>    built with gcc 9.1.1 (GCC) 20190807
>    configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfig --enable-gnutls
> --enable-iconv --enable-libass --enable-libdav1d --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 --enable-libopenmpt
>    libavutil      56. 33.100 / 56. 33.100
>    libavcodec     58. 55.101 / 58. 55.101
>    libavformat    58. 31.104 / 58. 31.104
>    libavdevice    58.  9.100 / 58.  9.100
>    libavfilter     7. 58.101 /  7. 58.101
>    libswscale      5.  6.100 /  5.  6.100
>    libswresample   3.  6.100 /  3.  6.100
>    libpostproc    55.  6.100 / 55.  6.100
> Input #0, mpeg, from
> 'concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB':
>    Duration: 02:09:34.53, start: 0.280633, bitrate: 5556 kb/s
>      Stream #0:0[0x1bf]: Data: dvd_nav_packet
>      Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first),
> 720x480 [SAR 32:27 DAR
> 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
>      Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
>      Stream #0:3[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
>      Stream #0:4[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
>      Stream #0:5[0x22]: Subtitle: dvd_subtitle
>      Stream #0:6[0x21]: Subtitle: dvd_subtitle
> File 'C:\AVOut\foo.mkv' already exists. Overwrite ? [y/N] Y
> Output #0, matroska, to 'C:\AVOut\foo.mkv':
>    Metadata:
>      encoder         : Lavf58.31.104
>      Stream #0:0: Video: mpeg2video (Main) (mpg2 / 0x3267706D), yuv420p(tv,
> top first), 720x480 [SAR
> 32:27 DAR 16:9], q=2-31, 29.97 fps, 59.94 tbr, 1k tbn, 90k tbc
>      Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side),
> fltp, 448 kb/s
>      Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side),
> fltp, 384 kb/s
>      Stream #0:3: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp,
> 192 kb/s
>      Stream #0:4: Subtitle: dvd_subtitle ([255][255][255][255] / 0xFFFFFFFF)
>      Stream #0:5: Subtitle: dvd_subtitle ([255][255][255][255] / 0xFFFFFFFF)
> Stream mapping:
>    Stream #0:1 -> #0:0 (copy)
>    Stream #0:2 -> #0:1 (copy)
>    Stream #0:3 -> #0:2 (copy)
>    Stream #0:4 -> #0:3 (copy)
>    Stream #0:5 -> #0:4 (copy)
>    Stream #0:6 -> #0:5 (copy)
> Press [q] to stop, [?] for help
> [matroska @ 00000233fd2dce80] Timestamps are unset in a packet for stream 0.
> This is deprecated and
> will stop working in the future. Fix your code to set the timestamps
> properly
> [matroska @ 00000233fd2dce80] Can't write packet with unknown timestamp
> av_interleaved_write_frame(): Invalid argument
> [matroska @ 00000233fd2dce80] Can't write packet with unknown timestamp
> Error writing trailer of C:\AVOut\foo.mkv: Invalid argument
> frame=  250 fps=0.0 q=-1.0 Lsize=      21kB time=00:00:10.01 bitrate=
> 17.5kbits/s speed= 118x
> video:6870kB audio:1222kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: unknown
> Conversion failed!
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Timestamps are unset & Error writing trailer

Mark Filipak
On 04/02/2020 08:29 AM, Paul B Mahol wrote:

> On 4/2/20, Mark Filipak <[hidden email]> wrote:
>> I am getting only failures.
>>
>> "Timestamps are unset in a packet for stream 0. This is deprecated and will
>> stop working in the
>> future. Fix your code to set the timestamps properly"
>>
>> How do I "Fix your code to set the timestamps properly"?
>>
>> Error writing trailer of C:\AVOut\foo.mkv: Invalid argument
>>
>> "trailer"? "Invalid argument"? What's this all about?
>>
>> I'm at a loss. Please help.
>>
>> Regards,
>> Mark.
>>
>>
>> ffmpeg -analyzeduration 50000000 -probesize 50000000 -i
>> "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB"
>
> We already told you multiple times that DVDs are not supported by ffmpeg.

That's true, but I disregarded it because ffmpeg works for DVDs when transcoding -- I never had a
failure -- and this is simply a remux (which should be simpler). Perhaps someone else will advise me.

Bye,
Mark.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Timestamps are unset & Error writing trailer

Paul B Mahol
On 4/2/20, Mark Filipak <[hidden email]> wrote:

> On 04/02/2020 08:29 AM, Paul B Mahol wrote:
>> On 4/2/20, Mark Filipak <[hidden email]> wrote:
>>> I am getting only failures.
>>>
>>> "Timestamps are unset in a packet for stream 0. This is deprecated and
>>> will
>>> stop working in the
>>> future. Fix your code to set the timestamps properly"
>>>
>>> How do I "Fix your code to set the timestamps properly"?
>>>
>>> Error writing trailer of C:\AVOut\foo.mkv: Invalid argument
>>>
>>> "trailer"? "Invalid argument"? What's this all about?
>>>
>>> I'm at a loss. Please help.
>>>
>>> Regards,
>>> Mark.
>>>
>>>
>>> ffmpeg -analyzeduration 50000000 -probesize 50000000 -i
>>> "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB"
>>
>> We already told you multiple times that DVDs are not supported by ffmpeg.
>
> That's true, but I disregarded it because ffmpeg works for DVDs when
> transcoding -- I never had a
> failure -- and this is simply a remux (which should be simpler). Perhaps
> someone else will advise me.

I will advise anyone reading this list to ignore your threads for
benefit of all users.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Timestamps are unset & Error writing trailer

Mark Filipak
On 04/02/2020 09:49 AM, Paul B Mahol wrote:
-snip-
> I will advise anyone reading this list to ignore your threads for
> benefit of all users.

Well, I think that all that's needed is for you to ignore my threads.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Timestamps are unset & Error writing trailer

kumowoon1025
In reply to this post by Paul B Mahol
Hi,

I don’t think it builds by default, but there is a tool, “dvd2concat” in the tools folder that doesn’t really work.

But you can transparently bypass CSS on DVD’s with your setup so it might work, if you want to give it a try. IIRC libdvdread and libdvdcss are dependencies, basically you point it to the dvd mount point and it generates a ffconcat file containing a detailed description of the layout of the dvd filesystem: the actual elementary stream id’s and which file they are in, the byte-range of the file that they are in, and how they are “striped” across multiple VOBs, since the way they track are not always intuitive.

You can feed that file to the concat demuxer specifying -safe 0 and adding subfile to protocol_whitelist to sort of seek in a dvd, if it all works as it’s meant to.

I’m only suggesting this based on the assumption that your system can seemingly pretend CSS/AACS isn’t implemented, and even then, I wouldn’t bet on it working 100% perfect.

Regards,
Ted Park

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

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