News:

--

Main Menu

Recent posts

#11
Windows / Re: Codec for lossless HEVC
Last post by coolgit - April 12, 2024, 09:08:07 PM
Use ffv1 or utvideo.

If you really must use x265 then vdub2 does it.
#12
Windows / Codec for lossless HEVC
Last post by guju - April 11, 2024, 11:56:24 AM
If I get it right, ADM's HEVC/ x265 encoder does not allow lossless mode?

However it would be useful, when (for some kind of reason) have to save a movie lossless,
and you have to care about extreme file sizes, HEVC lossless filesize is (up to about factor 2)
smaller than the other lossless codes. (You have to pay with encoding time however).

Any chance for lossless HEVC?
#13
Windows / Re: HEVC video generated by Op...
Last post by guju - April 11, 2024, 11:51:06 AM
Out of curiousity I tried saving hevc/ x265 in avi containter with ADM.

==> "Bad idea. H264/ H265 in AVI... better use MKV".

Is that still up to date, or just a relict?
#14
Windows / Re: HEVC video generated by Op...
Last post by guju - April 11, 2024, 07:21:26 AM
That's fine, I'm glad for my little contribute to enhance ADM.
Thank you!  :)
#15
Windows / Re: Batch copy .mp4 to .mkv sc...
Last post by inadream - April 11, 2024, 03:42:55 AM
Quote from: dosdan on January 11, 2024, 11:18:15 AM
Quote from: inadream on January 08, 2024, 01:05:22 PMI am now wondering is there a way to convert ALL non-mkv files in a folder to mkv using batch code? Is it a simple alteration to my bat above?

I presume you are only working with a few different filetypes. If so, just specifically list each of the types you wish to convert in the filenameset inside the "(...)".

In the following example, the test folder I drop on to the batchfile icon contains .MKV, .MP4 and .TS media files. To only convert the .MP4 and .TS containers, but not the .MKVs, into MKV containers, change the line containing:

for %%F in ("%~1\*.mp4") do (
to

for %%F in ("%~1\*.mp4" "%~1\*.ts") do (
Here, I have mentioned two filetypes in the filenameset, but you could add more, if needed. 

Also, it does not matter if some of listed filetypes_to_be_converted do not exist in a folder - it won't produce an error message.


Thanks again, sorry I didn't see your last reply until just now! I implemented your advice in order to convert multiple file types to MKV at once and it did indeed work for all types EXCEPT .mpg files which gives the following error:

QuoteConverting    "I:\TEST\40 The Big Red Thing.mpg"    to    "I:\TEST\converted\40 The Big Red Thing.mkv"
[matroska @ 06c6ea00] Only audio, video, and subtitles are supported for Matroska.
[out#0/matroska @ 08d34780] Could not write header (incorrect codec parameters ?): Invalid argument
[aost#0:2/copy @ 08b3db80] Error initializing output stream:

I realise more specific file info for the .mpg files might be needed, but I was wondering if you might recognize this error at all?
#16
Windows / Re: MKV variable to constant a...
Last post by eumagga0x2a - April 10, 2024, 11:13:50 PM
MP4 expresses timing in units of a rational time base with arbitrary non-zero numerator and denominator within range supported by data type (uint32_t). This means that, when remuxed as MKV, such timestamp often fundamentally cannot be represented in MKV which in most cases uses 1/1000 of a second as the default time unit (it can be an arbitrary non-zero number of nanoseconds, but, firstly, this is hardly ever used and, secondly, even nanoseconds don't allow mathematically precise representation of timestamps). Thus we get an approximation, effectively making a CFR video (slightly) VFR one.

Avidemux tries to recognize cases when strictly speaking a VFR MKV is actually a CFR one with deviations resulting from rounding errors. Usually this detection is very reliable, but if you have stumbled upon a video where it fails when using the latest nightly, please provide a sample.

Except for rare edge cases, restoring the original CFR when loading a MKV video is a true advantage, IMHO. Not going to throw it away.
#17
Windows / Re: HEVC video generated by Op...
Last post by eumagga0x2a - April 10, 2024, 10:39:43 PM
Tag added, please try a future nightly.
#18
Windows / Re: HEVC video generated by Op...
Last post by eumagga0x2a - April 10, 2024, 10:31:28 PM
Avidemux currently doesn't understand that codec tag "hev1" means HEVC.

(More precisely, only the MP4 demuxer supports that tag. This is why a placeholder, invalid decoder is chosen when opening this video stored in an AVI container, while an MP4 works.)
#19
Windows / Re: HEVC video generated by Op...
Last post by guju - April 10, 2024, 09:28:34 PM
Thank you, HEVC in MP4 is accepted by ADM.

However who's the culprit?

Does OpenCV writes HEVC in MP4 errornous?
(There would be a bug in OpenCV)
Is ADM unable to read HEVC in AVI?
(That would be bug or restriction of ADM)
#20
Windows / Re: HEVC video generated by Op...
Last post by Geo_log - April 10, 2024, 11:24:41 AM
Quote from: guju on April 09, 2024, 12:54:22 PMwhat is going wrong here
- container .avi
Save the output of OpenCV to .mp4 container.