News:

--

Main Menu

Recent posts

#51
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?
#52
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.
#53
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.
#54
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.)
#55
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)
#56
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. 
#57
Windows / HEVC video generated by OpenCV...
Last post by guju - April 09, 2024, 12:54:22 PM
Recently I needed to edit a HEVC video that was generated
by standard HEVC output of OpenCV (ffmpeg 5.0.1).

Opening gives no error message but only a black screen.
(Opening it with VirtualDub2 (2020), ffmpeg CLI or MPC-HC: no problem).

Can you tell what is going wrong here?
Is it a bug of ADM? (Or maybe of HEVC-type generated?)

https://c.gmx.net/@1155842887640945833/bJH2qPQ-Tm279HnSREF4SA

EDIT:
It is lossless HEVC.
#58
Main version 2.6 / Re: Feature request: a toggle ...
Last post by cachaito - April 08, 2024, 05:39:21 PM
Quote from: szlldm on April 08, 2024, 04:44:26 PMThat is the right URL. When the next nightly build will be built, you will find it there.

Great! Can't wait. Best regards!
#59
Main version 2.6 / Re: Feature request: a toggle ...
Last post by szlldm - April 08, 2024, 04:44:26 PM
That is the right URL. When the next nightly build will be built, you will find it there.
#60
Main version 2.6 / Re: Feature request: a toggle ...
Last post by cachaito - April 08, 2024, 02:40:38 PM
I will check it out, thank you! Only one thing: I know about https://www.avidemux.org/nightly/win64/ - where I can find a feature builds?