Giter Site home page Giter Site logo

Comments (22)

azsde avatar azsde commented on July 21, 2024 1

Ok, so I've done what you advised me to do, and the full error is :

[matroska @ 0x150f9c0] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 253152 >= 235176
av_interleaved_write_frame(): Invalid argument

After looking up on google, I found this ticket on FFMpeg bug tracker.

It seems to be a subtitle related issue. However, running the command with the -fix_sub_duration option still causes the error.

I'm going to remove the stream # 2 from the MKV using MKVToolNix and try converting again with h265ize.

Edit : Convertion ended and went perfectly without the bugged .srt. The corresponding .srt seems to be corrupted, I have extracted it using mkvextract and uploaded it.

corrupted_sub.zip

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

This is most likely an issue with ffmpeg. What's your ffmpeg version? Also try the he-audio flag and see if the problem still occurs.

from h265ize.

azsde avatar azsde commented on July 21, 2024

The problem still occurs with the he-audio flag.

ffmpeg version 2.8.6-1ubuntu2

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

Are you able to update to 3.0.2?

from h265ize.

azsde avatar azsde commented on July 21, 2024

I updated to 3.1.1, same problem still occurs on some files. I suspect them to be corrupted or something like that.

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

What you can try is running h265ize in debug mode. It should output the command line it is trying to run. If you copy that and run it yourself you should get all the output from ffmpeg. That might give you a better chance of pinpointing what the problem is.

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

Just curious, can you try muxing in this version and see if the conversion works.

corrected_sub.zip

from h265ize.

azsde avatar azsde commented on July 21, 2024

It did work with this version of the subs, how did you modify it ?

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

I removed the first 2 segments where the timing overlapped. They were empty anyway.

from h265ize.

mikelesagitter avatar mikelesagitter commented on July 21, 2024

Hi, I have the same error but no subtitles...

from h265ize.

jswigart avatar jswigart commented on July 21, 2024

This is apparently still an issue.
h265ize.log

Any suggestions? @FallingSnow

This was my command line

D:\Entertainment\Movies\Hobbit, The Desolation of Smaug, The (2013)>h265ize -d D:\Entertainment\Encoding\ -v -m medium -q 20 -x --no-sao --aq-mode 3 --stats --no-auto-subtitle-titles --debug

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

Run ffmpeg -i Hobbit, The Desolation of Smaug, The (2013).m4v -y -acodec copy -vcodec libx265 -c:s copy -pix_fmt yuv420p -map 0:0 -map 0:1 -metadata:s:a:1 title="English AAC LC (Stereo)" -map 0:2 -metadata:s:a:2 title="English AC3 (5.1 Channel)" -map 0:3 -metadata:s:0:3 DISPOSITION:default=0 -preset medium -x265-params crf=20: "C:\Users\Admin\AppData\Local\Temp\h265ize\Hobbit, The Desolation of Smaug, The (2013).encoding-in-progress.mkv" and post the whole output.

from h265ize.

jswigart avatar jswigart commented on July 21, 2024

output.txt

Looks like it's choking on a text data stream or something

Stream #0:3(und): Data: bin_data (text / 0x74786574)
Metadata:
creation_time : 2014-04-10T05:16:36.000000Z
[matroska @ 00000000049272e0] Only audio, video, and subtitles are supported for Matroska.
av_interleaved_write_frame(): Invalid argument

Is there no way to get ffmpeg to just ignore stuff it can't process?

from h265ize.

jswigart avatar jswigart commented on July 21, 2024

If I try to use an m4v output it chokes on it as well. Which seems weird seeing as the source file is m4v.

[ipod @ 00000000049872e0] Tag text incompatible with output codec id '100359' ([0][0][0][0])
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
Error initializing output stream 0:0 --

from h265ize.

jswigart avatar jswigart commented on July 21, 2024

I guess this is a problem with ffmpeg and not h265ize. I'll try to let h265ize convert all it can and then do the problem ones with handbrake.

from h265ize.

jswigart avatar jswigart commented on July 21, 2024

Nevermind, guess ffmpeg is too flaky to convert my library. I started it at my root movie folder and it chokes on most of them. Only worked on a few before I killed it and went back to handbrake.

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

Nevermind, guess ffmpeg is too flaky to convert my library.
Lol, just a quick correction, ffmpeg is the backbone of almost every video encoding and decoding software in the world. So it is most likely the program using it that has the fault.

Handbrake also uses ffmpeg, so handbrake most likely does some kind of preprocessing that h265ize doesn't.

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

Is there no way to get ffmpeg to just ignore stuff it can't process?

ffmpeg yes, h265ize no. This is an edge case that h265ize doesn't deal with, and with the state of decay h265ize is in, it most likely never will.

Stream #0:3(und): Data: bin_data (text / 0x74786574)

If you do try to use ffmpeg, you would want to avoid mapping stream 0:3 to your output mkv to fix your problem.

from h265ize.

amlucent avatar amlucent commented on July 21, 2024

and with the state of decay h265ize is in, it most likely never will.

what do you mean I love this application. I am also experiencing this issue on a lot of files. Also does h265 use the systems ffmpeg or bundle its own?

[h265ize]: ffmpeg exited with code 1: av_interleaved_write_frame(): Invalid argument
Error writing trailer of /tmp/h265ize/DDP Yoga - S01E03 - Fat Burner.encoding-in-progress.mkv: Invalid argument
frame=   29 fps= 18 q=-0.0 Lsize=       0kB time=00:00:01.17 bitrate=   2.6kbits/s speed=0.723x    
video:2kB audio:34kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: unknown
x265 [info]: frame I:      2, Avg QP:20.07  kb/s: 1642.00 
x265 [info]: frame P:     14, Avg QP:22.48  kb/s: 1835.30 
x265 [info]: frame B:     13, Avg QP:25.27  kb/s: 1097.42 
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 56.2% 25.0% 0.0% 18.8% 0.0% 

encoded 29 frames in 1.60s (18.15 fps), 1491.19 kb/s, Avg QP:23.57
Conversion failed!

[h265ize]: ffmpeg exited with code 1: av_interleaved_write_frame(): Function not implemented
Error writing trailer of /tmp/h265ize/SomerandomTVshow- S02E09  - 1.encoding-in-progress.mkv: Function not implemented
frame=   29 fps= 28 q=-0.0 Lsize=       0kB time=00:00:01.51 bitrate=   2.0kbits/s speed=1.45x    
video:1kB audio:56kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: unknown

```

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

what do you mean

h265ize had a lot of design issues, things I am trying to remedy in nmmes-cli, therefore I am not putting -- any effort really into maintain h265ize.

As for your error, h265ize doesn't show the full error, run h265ize with the --debug flag and find the ffmpeg query. Then run that query separately and you will be able to see the actual error.

from h265ize.

FallingSnow avatar FallingSnow commented on July 21, 2024

Also does h265 use the systems ffmpeg or bundle its own?

ffmpeg decides based on whether ffmpeg was built with static (internal) or dynamic (system) libraries.

from h265ize.

amlucent avatar amlucent commented on July 21, 2024

@FallingSnow I took your advice and ran it with the --debug option and took the command its using and attempted to run it by itself. Its giving me this error that it cant find the file. I believe its the spaces in the directory structure.

[h265ize]: [debug] Running Query: ffmpeg -n 10 /usr/bin/ffmpeg -i /mnt/bigassnas/multimedia/multimedia/video/Fitness/10 Minute Trainer/Season 1/10 Minute Trainer - S01E02 - Lower Body.mp4 -y -acodec copy -vcodec libx265 -c:s copy -pix_fmt yuv420p -map 0:0 -map 0:1 -metadata:s:a:1 title="English AAC LC (Stereo)" -map 0:2 -metadata:s:a:2 title="English AC3 (Stereo)" -map 0:3 -preset medium -x265-params crf=20: /tmp/h265ize/10 Minute Trainer - S01E02 - Lower Body.encoding-in-progress.mkv [h265ize]: [ffmpeg] Processing: 0fps 0.1% [00:00:01.17] | 00:00:00 [x0.000] Infinity:NaN:NaN [h265ize]: [debug] Error: ffmpeg exited with code 1: av_interleaved_write_frame(): Invalid argument Error writing trailer of /tmp/h265ize/10 Minute Trainer - S01E02 - Lower Body.encoding-in-progress.mkv: Invalid argument frame= 29 fps=0.0 q=-0.0 Lsize= 0kB time=00:00:01.17 bitrate= 2.6kbits/s speed=2.24x video:0kB audio:67kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: unknown

The command in question:
ffmpeg -n 10 /usr/bin/ffmpeg -i /mnt/bigassnas/multimedia/multimedia/video/Fitness/10 Minute Trainer/Season 1/10 Minute Trainer - S01E02 - Lower Body.mp4 -y -acodec copy -vcodec libx265 -c:s copy -pix_fmt yuv420p -map 0:0 -map 0:1 -metadata:s:a:1 title="English AAC LC (Stereo)" -map 0:2 -metadata:s:a:2 title="English AC3 (Stereo)" -map 0:3 -preset medium -x265-params crf=20: /tmp/h265ize/10 Minute Trainer - S01E02 - Lower Body.encoding-in-progress.mkv

The error from ffmpeg:
/mnt/bigassnas/multimedia/multimedia/video/Fitness/10: No such file or directory

from h265ize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.