I'm sorry I have to ask such a basic question. I use VOBEdit to examine VOBs, but it is not batch and it will not dump an entire 'VTS_xx_x.VOB' file and it doesn't allow for selective metadata sampling. Is there anything in ffmpeg or ffprobe that will, for every frame in a single VOB (or preferably, all VOBs in an entire TS: 'VTS_xx_1.VOB'+'VTS_xx_2.VOB'+'VTS_xx_3.VOB'+...), list the following? SCR progressive_sequence picture_structure top_field_first repeat_first_field progressive_frame Thanks, Mark.
On Wed, Feb 05, 2020 at 16:58:07 -0500, Mark Filipak wrote:
Is there anything in ffmpeg or ffprobe that will, for every frame in a single VOB (or preferably, all VOBs in an entire TS: 'VTS_xx_1.VOB'+'VTS_xx_2.VOB'+'VTS_xx_3.VOB'+...), list the following?
Assuming you have already found a filter which creates these metadata values (like idet in your previous thread), add the metadata filter to your filter chain: $ ffmpeg -i input -vf filter1,metadata=mode=print -f null - The metadata filter also has options to filter the output by key name, and to dump its output to file (or pipe:1, for that matter). Cheers, Moritz
On 02/05/2020 08:12 PM, Moritz Barsnick wrote: Hi, Moritz, and Thanks.
On Wed, Feb 05, 2020 at 16:58:07 -0500, Mark Filipak wrote:
Is there anything in ffmpeg or ffprobe that will, for every frame in a single VOB (or preferably, all VOBs in an entire TS: 'VTS_xx_1.VOB'+'VTS_xx_2.VOB'+'VTS_xx_3.VOB'+...), list the following?
Assuming you have already found a filter which creates these metadata values (like idet in your previous thread), add the metadata filter to your filter chain:
$ ffmpeg -i input -vf filter1,metadata=mode=print -f null -
The metadata filter also has options to filter the output by key name, and to dump its output to file (or pipe:1, for that matter).
I assume that the words in your suggested command line are all replaceable tokens because in the filters documentation (https://ffmpeg.org/ffmpeg-bitstream-filters.html)... "filter1" not found. ".metadata" not found. "mode" not found. "print" not found. The closest I can find is "2.20 mpeg2_metadata" and that appears to be a metadata writer. Am I simply looking in the wrong place? It sure would be nice if ffmpeg documentation had a search function. I'd tried google advanced search of 'https://ffmpeg.org' for a variety of metadata parameter names and got links to source code (ffmpeg.org/doxygen) but not links to documentation. Could you give me a push?
On Wed, Feb 05, 2020 at 20:37:27 -0500, Mark Filipak wrote:
$ ffmpeg -i input -vf filter1,metadata=mode=print -f null -
I assume that the words in your suggested command line are all replaceable tokens because in the filters documentation
No, not really. The "metadata=mode=print" was meant literally, as it was the filter I mentioned above.
"filter1" not found. ".metadata" not found. "mode" not found. "print" not found.
"filter1" on the other hand was an example for a preceding filter in the filter chain, which creates metadata to be processed or displayed. From your final remarks in your previous thread, I thought you had wanted to access the metadata created by the idet filter.
Bitstream filters are not filters, in your sense. Sorry for the confusion. Check the regular filters' documentation: https://ffmpeg.org/ffmpeg-filters.html#metadata_002c-ametadata
It sure would be nice if ffmpeg documentation had a search function.
I know my way around ffmpeg, and even I use a search engine once in a while, just because I'm lazy. ;-)
I'd tried google advanced search of 'https://ffmpeg.org' for a variety of metadata parameter names and got links to source code (ffmpeg.org/doxygen) but not links to documentation.
That should actually work just fine. Google "ffmpeg filter metadata" It brings up this interesting ffmpeg wiki entry: https://trac.ffmpeg.org/wiki/FilteringGuide#FilterMetadata which also links directly to the filter's page, as I quoted above (but found without Google).
Could you give me a push?
There's also a documentation page which contains all the sub-pages. Quite handy for searching with Ctrl+F in your browser: https://ffmpeg.org/ffmpeg-all.html Good luck, Moritz
On 02/06/2020 05:39 AM, Moritz Barsnick wrote:
On Wed, Feb 05, 2020 at 20:37:27 -0500, Mark Filipak wrote:
$ ffmpeg -i input -vf filter1,metadata=mode=print -f null -
I assume that the words in your suggested command line are all replaceable tokens because in the filters documentation
No, not really. The "metadata=mode=print" was meant literally, as it was the filter I mentioned above.
"filter1" not found. ".metadata" not found. "mode" not found. "print" not found.
"filter1" on the other hand was an example for a preceding filter in the filter chain, which creates metadata to be processed or displayed.
From your final remarks in your previous thread, I thought you had wanted to access the metadata created by the idet filter.
I'm not trying to create metadata. I'm trying to read the metadata in the VOB's pack header (SCR), and in the MPEG2 sequence header (progressive_sequence) and picture coding extension (picture_structure & top_field_first & repeat_first_field & progressive_frame).
Bitstream filters are not filters, in your sense. Sorry for the confusion.
That was my fault. Sorry. I got lost in the documentation.
Check the regular filters' documentation:
https://ffmpeg.org/ffmpeg-filters.html#metadata_002c-ametadata
Yeah, I saw that. None of it looks like H.262 specification metadata. What am I not understanding about ffmpeg?
On 02/05/2020 08:12 PM, Moritz Barsnick wrote: Hi, Moritz, and Thanks.
On Wed, Feb 05, 2020 at 16:58:07 -0500, Mark Filipak wrote:
Is there anything in ffmpeg or ffprobe that will, for every frame in a single VOB (or preferably, all VOBs in an entire TS: 'VTS_xx_1.VOB'+'VTS_xx_2.VOB'+'VTS_xx_3.VOB'+...), list the following?
Assuming you have already found a filter which creates these metadata values (like idet in your previous thread), add the metadata filter to your filter chain:
$ ffmpeg -i input -vf filter1,metadata=mode=print -f null -
The metadata filter also has options to filter the output by key name, and to dump its output to file (or pipe:1, for that matter).
I assume that the words in your suggested command line are all replaceable tokens because in the filters documentation (https://ffmpeg.org/ffmpeg-bitstream-filters.html)... "filter1" not found. ".metadata" not found. "mode" not found. "print" not found. The closest I can find is "2.20 mpeg2_metadata" and that appears to be a metadata writer. Am I simply looking in the wrong place? It sure would be nice if ffmpeg documentation had a search function. I'd tried google advanced search of 'https://ffmpeg.org' for a variety of metadata parameter names and got links to source code (ffmpeg.org/doxygen) but not links to documentation. Could you give me a push? UPDATE Based on this: 'https://ffmpeg.org/ffmpeg-filters.html', section 16.11 metadata, ametadata I tried this: ffmpeg G:\VIDEO_TS\VTS_02_2.VOB metadata=mode=print and failed.
On 02/05/2020 08:12 PM, Moritz Barsnick wrote: Hi, Moritz, and Thanks.
On Wed, Feb 05, 2020 at 16:58:07 -0500, Mark Filipak wrote:
Is there anything in ffmpeg or ffprobe that will, for every frame in a single VOB (or preferably, all VOBs in an entire TS: 'VTS_xx_1.VOB'+'VTS_xx_2.VOB'+'VTS_xx_3.VOB'+...), list the following?
Assuming you have already found a filter which creates these metadata values (like idet in your previous thread), add the metadata filter to your filter chain:
$ ffmpeg -i input -vf filter1,metadata=mode=print -f null -
The metadata filter also has options to filter the output by key name, and to dump its output to file (or pipe:1, for that matter).
I assume that the words in your suggested command line are all replaceable tokens because in the filters documentation (https://ffmpeg.org/ffmpeg-bitstream-filters.html)... "filter1" not found. ".metadata" not found. "mode" not found. "print" not found. The closest I can find is "2.20 mpeg2_metadata" and that appears to be a metadata writer. Am I simply looking in the wrong place? It sure would be nice if ffmpeg documentation had a search function. I'd tried google advanced search of 'https://ffmpeg.org' for a variety of metadata parameter names and got links to source code (ffmpeg.org/doxygen) but not links to documentation. Could you give me a push? UPDATE Based on this: 'https://ffmpeg.org/ffmpeg-filters.html', section 16.11 metadata, ametadata I tried this: ffmpeg G:\VIDEO_TS\VTS_02_2.VOB metadata=mode=print and failed. UPDATE I've tried about 20 forms of command. The latest was this: ffmpeg -i G:\VIDEO_TS\VTS_02_2.VOB -vf mpeg2,metadata=mode=print:file=foo.txt -f NUL Nothing but failures.
participants (2)
-
Mark Filipak -
Moritz Barsnick