Comments (22)
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.
from h265ize.
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.
The problem still occurs with the he-audio flag.
ffmpeg version 2.8.6-1ubuntu2
from h265ize.
Are you able to update to 3.0.2?
from h265ize.
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.
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.
Just curious, can you try muxing in this version and see if the conversion works.
from h265ize.
It did work with this version of the subs, how did you modify it ?
from h265ize.
I removed the first 2 segments where the timing overlapped. They were empty anyway.
from h265ize.
Hi, I have the same error but no subtitles...
from h265ize.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
@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)
- feature request for disabling autocrop HOT 3
- Question re vobsub2srt integration
- Unable to execute on Fedora 31 HOT 5
- ffmpeg exited with code 1: Error initializing output stream 0:1 -- Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height HOT 2
- Location of settings.json ?
- ffmpeg exited with code 1: HOT 8
- What libraries are required for bitdepth to work? HOT 2
- Saving Stats doesn't work anymore HOT 1
- --watch flag doesn't work
- ffmpeg exited with code 1 - Unable to find a suitable output format for '10' HOT 8
- Date modified / created not preserved
- subtitle streams are sometimes not detected in vob
- Bug - --delete ignores output destination
- Question: is it possible to embed external .srt subtitles inside the output file? HOT 1
- ffmpeg exited with code 1 HOT 3
- new feature: delete only if new file size is smaller
- How can I disable processing output? A quiet mode like ffmpeg?
- Help Setting this up for Jellyfin post Processing (unRAID) HOT 1
- FFMPEG Code error 1 (Is this dead ? Any alternative ?) HOT 3
- Get h265 video file duration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h265ize.