-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ffprobe
error when using .mkv
files (missing field duration
)
#3
Comments
That's unfortunate :( I've now re-uploaded a new
|
alass.bat contents: alass 20.mkv 20.srt output.srt |
That looks a lot better! Now Would you mind posting the result of '.\ffmpeg\bin\ffprobe.exe -v error -show_streams -of json 20.mkv'? It should be a relatively long
is the old batch file. The new one looks like this:
|
I don't know exactly how to do that, should I add " -v error -show_streams -of json 20.mkv " to .bat file like this? alass 20.mkv 20.srt output.srt |
No just run Running |
{ |
Hmm, no stream has any duration information... ( |
I'm in the same boat. Here's my json, in case that helps: {
"streams": [
{
"index": 0,
"codec_name": "hevc",
"codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
"profile": "Main 10",
"codec_type": "video",
"codec_time_base": "1/25",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 1920,
"height": 960,
"coded_width": 1920,
"coded_height": 960,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "2:1",
"pix_fmt": "yuv420p10le",
"level": 120,
"color_range": "tv",
"refs": 1,
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"BPS": "4134402",
"BPS-eng": "4134402",
"DURATION": "00:55:59.280000000",
"DURATION-eng": "00:55:59.280000000",
"NUMBER_OF_FRAMES": "83982",
"NUMBER_OF_FRAMES-eng": "83982",
"NUMBER_OF_BYTES": "1736076910",
"NUMBER_OF_BYTES-eng": "1736076910",
"_STATISTICS_WRITING_APP": "mkvmerge v20.0.0 ('I Am The Sun') 64-bit",
"_STATISTICS_WRITING_APP-eng": "mkvmerge v20.0.0 ('I Am The Sun') 64-bit",
"_STATISTICS_WRITING_DATE_UTC": "2019-06-28 03:05:37",
"_STATISTICS_WRITING_DATE_UTC-eng": "2019-06-28 03:05:37",
"_STATISTICS_TAGS": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES",
"_STATISTICS_TAGS-eng": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
}
},
{
"index": 1,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "LC",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 6,
"channel_layout": "5.1",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 20,
"start_time": "0.020000",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"language": "eng",
"BPS": "323509",
"BPS-eng": "323509",
"DURATION": "00:55:59.296000000",
"DURATION-eng": "00:55:59.296000000",
"NUMBER_OF_FRAMES": "157467",
"NUMBER_OF_FRAMES-eng": "157467",
"NUMBER_OF_BYTES": "135845453",
"NUMBER_OF_BYTES-eng": "135845453",
"_STATISTICS_WRITING_APP": "mkvmerge v20.0.0 ('I Am The Sun') 64-bit",
"_STATISTICS_WRITING_APP-eng": "mkvmerge v20.0.0 ('I Am The Sun') 64-bit",
"_STATISTICS_WRITING_DATE_UTC": "2019-06-28 03:05:37",
"_STATISTICS_WRITING_DATE_UTC-eng": "2019-06-28 03:05:37",
"_STATISTICS_TAGS": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES",
"_STATISTICS_TAGS-eng": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
}
}
]
} Very cool project, btw. Rust FTW! |
Does |
Or even better:
That should query all interesting pieces of information at the same time. |
ffprobe
error when using .mkv
files (missing field duration
)
{
} |
Perfect :) It does indeed work! |
Should be fixed now! Please try the new release. |
This issue with The output file should be generated nonetheless, so you can hopefully enjoy your synchronized subtile file! |
Well, writing
And double click on it ( If you insist on doing it inside |
thanks! |
No problem! |
woow ! i didn't know this syntax .. it even works when adding the properties ",width,height" : these properties will be a new entry in the video stream section. Helped me a lot ! |
|
The text was updated successfully, but these errors were encountered: