Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: jan771 on April 01, 2017, 09:50:47 PM

Title: My Feature Requests v2
Post by: jan771 on April 01, 2017, 09:50:47 PM
I have some Feature Requests:
1. Avidemux allows demuxing Video and Audio and saves in raw-Files.
It would be great if you could create a New plain Container and add a Video and Audio in order to mux them together. Menu "Video" would be a good place for it. I know it is Avidemux and not mkvmux, but time is coming by...

2. When Saving Videos, the Audio delay seems to be ignored. At least when muxed, the audio is not synchrone and MediaInfo shows a different Audio-Delay when entered. This makes Encoding Audio barely impossible. In Windows 7 x64 - I convert video streams having a documented audio delay in the container. Once I recode them, the delay will be different, but not the value I entered and also not the difference of both. This is the case with nearly all container formats.

3. Is there an Image Stabilisation Filter to be imported from somewhere? This is urgendtly needed for action cam films and also for some old polaroid movies having a "jumping image". Having such a filter would improve compression rates drastically.

4. Please import some of those legacy media filters lke those some day. Also unless encoding legacy polaroid and magnetic media movies takes much more space than encoding digitally remastered movies.
http://www.engon.de/audio/vhs4.htm

5. Saving a certain set of filters, like a codec preset. I normally use exactly 4 filters with the same settings. Best way would be to add template scripts below project scripts.
Suggetsion: Rename the Menu item project-script to "Scripts" and add an option File->Script-> Template-Script and also File->Script->Video-Filter-Script and also File->Script->Audio-Filter-Script maybe resulting in 5 Options in Total for Scripts.

6. Error Scanning like in VirtualDub would be great.

7. Most important: mts File support is not given for German TV Broadcast in DVB-t2 hevc 1080p 50fps.

8. Setting meta-infos for the video-files. As well the container Meta tags, like: "Copyright", "Publisher", "Description", "Artist" as also the file meta infos you can add in the browser in windows: "Description", "Genre", "Codec", so can not even sort by container type, but also by codec.

9. I preferred working with frames in a second instead of milliseconds, unless the exact frame to cut woiud be easier to find then.

10. Selection of place, where to save idx files, so you can directly open VIDEO_TS Files.

11. A Language or CheckBox "Director's Comment" in the Audio Lane Menu

12. Possibility to import/export or "use" ColdCut CutLists for video files.

13. Delogo2 Filter increase decrease position and size increase by 4,8,16 - not as is by 5 - increases Compression a bit!

14. Crop-Filter also partly, requirement: outsize=identical - needed if a polaroid movie is jumping from left to right, or a TV Info is shown below and later above.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 01, 2017, 10:32:24 PM
1. One more container format would be a good candiate for the most useless thing in the world.

2., 5., 7. --> http://avidemux.org/smif/index.php/topic,17620.msg79983.html#msg79983 (http://avidemux.org/smif/index.php/topic,17620.msg79983.html#msg79983)

3. No, could you contribute one?
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 02, 2017, 06:46:50 AM
Image Stabilisation Filter aka Deshaker, videostab, vid.stab, Stabbo, ...

Developers: Perhaps th(ese/is) is useful:
- http://adaptivesamples.com/2014/05/30/camera-stabilisation-with-ffmpeg/
-Stabbo http://forum.doom9.org/showthread.php?t=171250
Title: Re: My Feature Requests v2
Post by: AQUAR on April 02, 2017, 08:18:33 AM
For stabilisation of shaky video's you could "pre-process" using avisynth or vapoursynth. 
Title: Re: My Feature Requests v2
Post by: jan771 on April 02, 2017, 10:59:00 AM
Quote from: eumagga0x2a on April 01, 2017, 10:32:24 PM
1. One more container format would be a good candiate for the most useless thing in the world.
I don't mean a new container format, I just want to be able to mux the files I just demuxed with ffmpeg, because I achieved demuxing the German DVB-T2 mts file Broadcast with ffmpeg but cannot cut nor mux them afterwards - the cutting points are always wrong and the audio won't be synchrone anymore. Thus, I need a HD muxer with UI.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 02, 2017, 11:05:24 AM
You don't need stand-alone FFmpeg to cut and remux DVB-T2 HD streams. Avidemux 2.6.19 handles them just fine with MKV as the target container.

edit: by the way, you need powerful hardware or working hardware HEVC decoding acceleration to play 1080p 50fps videos with A/V in sync (e.g. my desktop PC is too weak for this task, a recent "Retina" MacBook turns out to be fast enough).
Title: Re: My Feature Requests v2
Post by: jan771 on April 03, 2017, 02:48:31 PM
It is no Hardware issue. I can play the HEVC .mts files with 15% CPU usage.

Merging the files with cutting points with ffmpeg results in Sound-delay like 30secs or so. Apparently it cuts the audio different than the video.

How do I procede when muxing Video with Audio? I have the split HEVC Video and the Audio file but I cannot add the video file, only the Audio file if I opened another container. I just want Avidemux to also create a plain container!?

And please note, that v 2.6.19 still cannot handle those mts HEVC files.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 03, 2017, 03:59:45 PM
Quote from: jan771 on April 03, 2017, 02:48:31 PM
Merging the files with cutting points with ffmpeg results in Sound-delay like 30secs or so. Apparently it cuts the audio different than the video.

Do you have the original transport stream or just raw video and audio streams? If the latter, you've probably lost. You need the original transport stream.

QuoteAnd please note, that v 2.6.19 still cannot handle those mts HEVC files.

I've tested this myself with my own DVB-T2 HD recordings and v2.6.19 handles them (cuts, remuxes) totally fine. If your source files are different, please provide a sample.
Title: Re: My Feature Requests v2
Post by: jan771 on April 03, 2017, 05:53:24 PM
Yes, I still have the mts files, but they are not usefull neither, unless Avi does not work for me.
I use K-Lite_Codec_Pack_1300_Mega.exe
and tried:
win32 2.6.19 Final Install (32 bits), FossHub,
win64 2.6.19 Final Install (64 bits), FossHub,

and both are not functional
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 03, 2017, 06:02:02 PM
Which application or device created these files? Please provide a sample (~300 MiB).
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 04, 2017, 05:15:27 AM
Quote from: jan771 on April 03, 2017, 05:53:24 PM
Yes, I still have the mts files, but they are not usefull neither, unless Avi does not work for me.
I use K-Lite_Codec_Pack_1300_Mega.exe
and tried:
win32 2.6.19 Final Install (32 bits), FossHub,
win64 2.6.19 Final Install (64 bits), FossHub,

and both are not functional
- http://www.avidemux.org/nightly/win64/
- http://www.avidemux.org/nightly/win32/
latest date
Title: Re: My Feature Requests v2
Post by: jan771 on April 04, 2017, 11:52:41 AM
Haha, good joke, Nightly build also crashes, tells that aften.exe is missing!? What did you do there?
The crash moment is as follows: The Index can be built up until 100% with version 19, the Windows Size changes to large, and maybe it is because my windows is not FullHD? At least it stays black and also the play and ff buttons don't activate. Then avidemux won't be reacting anymore.

The Device was Comag SL30T2, but I think it is just saving the exact streams from Channels "ZDF HD" and "Das Erste HD". Unless ffmpeg can split and merge the files I think they are correct. One issue was, that TSdemux did not recognize the frame rate as 50fps, although written in the meta, so I had to set it manually via ffmpeg. Also, there are a lot of menu items included maybe? MediInfo Screenshots attached.

I will also record some 1min samples for you. But give me some days.
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 04, 2017, 12:33:07 PM
Original recording not the TSdemux one. Approx 10 seconds to 1 minute maximum.
Info: Upload Hochladen Télécharger Subir (http://avidemux.org/smif/index.php/topic,17418.0.html)
Title: Re: My Feature Requests v2
Post by: jan771 on April 04, 2017, 04:04:06 PM
It is possible that AviDemux can also not decode the Subtitiles. ffmpeg works, but only if you turn off with -sn -dn option in command line for disabling Subtitles and "d".

See attached the Link to the shared folder with the hevc file Comag SL30T2 as mkv, transcoded and shortened with ffmpeg from mts file.
https://cloud.gmx.net/ngcloud/external?guestToken=djXXsvFRRsaWTpYg-9jgbQ&loginName=@334663428440331676#/:

A further Issue are bad packets within the Transport Stream. So there should be an Option to repair Timestamps and packets, unless it is normal, that mts files contain errors. I have two files that have a bad timeline and cannot be converted, errors cause exit of conversion:
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 04, 2017, 09:15:50 PM
Avidemux neither decodes nor saves subtitles in TS streams, they are dropped.
Title: Re: My Feature Requests v2
Post by: jan771 on April 04, 2017, 10:03:29 PM
ok, I updated my comment and added Features requested :-)
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 05, 2017, 05:12:58 AM
Without an original recording from the box there is nothing much developers can do.
I suspect there are reception errors in your recorded stream, transmission breaks, interference, fluctuating signal, .... . Try improving your reception, if possible at all. Like with an outdoor terrestrial antenna TechniYagi T2 HD (very directional antenna).
If there are holes in the reception stream, there is nothing much avidemux can do to replace the missing content.
Title: Re: My Feature Requests v2
Post by: jan771 on April 05, 2017, 09:04:03 AM
My AviDemux can't even open the transcoded mkv I attached.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 05, 2017, 09:49:06 AM
Please no transcoded, remuxed etc. files. Please cut the first ~300 MiB in binary way* from the original transport stream and upload this sample.

*) Well, AQUAR could help with a Windows equivalent for

dd if=/path/to/source/video of=/path/to/sample/video bs=1M count=300

I tested DVB-T2 HD capabilities of Avidemux with TS samples recorded in usual way using a USB DVB-T/T2/C card and the dvbv5-zap (http://manpages.ubuntu.com/manpages/zesty/man1/dvbv5-zap.1.html) utility, then dumping the data stream from the /dev/dvb/adapter0/dvr0 device.
Title: Re: My Feature Requests v2
Post by: jan771 on April 05, 2017, 09:53:38 AM
AviDemux should be capable opening mkv HEVC files, IMAO.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 05, 2017, 09:58:31 AM
It is capable of opening and saving MKV with HEVC video.

edit: Avidemux built from the current git master has no issues opening, playing and cutting Comag_SL30T2-SampleAsMatroshka.mkv you've provided.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 05, 2017, 10:08:09 AM
Please post admlog.txt from Avidemux run while trying to load your sample. I'd could think of issues with hwaccel and HEVC, please test with hw accelerated decoding and display in Avidemux turned off vs. turned on.
Title: Re: My Feature Requests v2
Post by: jan771 on April 06, 2017, 11:16:04 AM
ok, I added two recordings in .mpg Container as done by Comag SL65T2, one with ok Quality and one with bad Signal Quality maybe with a cut-off.
https://cloud.gmx.net/ngcloud/external?guestToken=djXXsvFRRsaWTpYg-9jgbQ&loginName=@334663428440331676#/
Also to be found the zipped 28MB admlog.txt file from opening the ok quality file.
hope I could do you a favour.
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 06, 2017, 11:26:16 AM
Please provide original. .TS recording. Timed recording for max 1 minute. Not a repackaged video in another container.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 06, 2017, 11:38:12 AM
Please retest as requested with DXVA completely disabled. It looks for me like .mpg were just a wrong ending for an actual .TS file here ("Augenwischerei" in other words).

Apart from issues with audio (misdetected audio sampling rate in the "good" sample etc.) Avidemux on Linux loads and plays both samples fine.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 06, 2017, 12:13:51 PM
Retested on Windows 7 with a release build (my own, not Mean's) and no issues loading and playing your samples apart from mangled audio despite DXVA active (no issues with audio with my own samples).
Title: Re: My Feature Requests v2
Post by: jan771 on April 06, 2017, 12:52:34 PM
OK, indeed, with DVXA2 disabled it works, thank you! Is it due to my CPU generation?

How about my Feature requests No. 8-11?
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 06, 2017, 01:05:46 PM
It may be due to graphics card drivers.

Feature requests: quality patches warmly welcome.
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 06, 2017, 01:29:28 PM
Probably 5 and 10 could be tackled middle-term in one or another way.
Title: Re: My Feature Requests v2
Post by: jan771 on April 06, 2017, 02:40:14 PM
ok, added 13 and 14 then
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 06, 2017, 03:14:37 PM
13. You can enter any value within the valid range directly into the spinboxes, no need to change anything for this purpose.

14. Impossible (edit: okay, hard within the current implementation, little to no benefit, would work nicely only with some kind of AI, far beyond the scope of a relatively simple tool like Avidemux)
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 06, 2017, 03:57:42 PM
Quote from: eumagga0x2a on April 06, 2017, 11:38:12 AM
Please retest as requested with DXVA completely disabled. It looks for me like .mpg were just a wrong ending for an actual .TS file here ("Augenwischerei" in other words).

There is a small difference between the 2 containers. See attached screenshot
MPEG-TS = .ts, .tsv, .tsa
MPEG transport stream (MPEG-TS, MTS or TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data.[3] It is used in broadcast systems such as Digital Video Broadcasting (DVB), ATSC and IPTV.

BDAV = m2ts or mts
Blu-ray Disc Audio-Video (BDAV) MPEG-2 Transport Stream (M2TS)  based on the MPEG-2 transport stream

in avidemux Output Format (terms)
1st uses Mpeg-TS Muxer (ff)
2nd uses Mpeg-PS Muxer (ff)
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 06, 2017, 04:10:07 PM
@eumagga0x2a & mean
Try saving ComagSL65T2-OKSignalQuality video with Mpeg-PS Muxer (ff) using [Copy] for Video and Audio Output.
It will only try to save as .mpg and fail to do so?
That should not happen, I think?
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 06, 2017, 04:24:20 PM
It should not try this in the first place, I guess? At least it should leave some trace in the log, not just GUI error messages.
Title: Re: My Feature Requests v2
Post by: jan771 on April 06, 2017, 05:07:14 PM
It will fail saving in MPEG-PS unless MPEG-PS allows only MP2-Streams in 720p max resolution. The comag file has 1080p in 50fps and AviDemux does not achieve converting from 1080p 50fps in 720p 25fps in my case.

thus, you have to save in mkv.

Feature Request, Make VOB-files out of comag mpg stream.
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 06, 2017, 06:17:00 PM
Quote from: jan771 on April 06, 2017, 05:07:14 PM
Feature Request, Make VOB-files out of comag mpg stream.
See Avidemux Menu: Auto: dvd
Title: Re: My Feature Requests v2
Post by: jan771 on April 06, 2017, 06:28:16 PM
See attached
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 07, 2017, 06:08:56 AM
there was a spanner in the works. TinyPy throws (_tp_dict_get) KeyError for exit() (http://avidemux.org/smif/index.php/topic,17638.0.html)
Probably this is fixed upon appearance of the new nightly (http://www.avidemux.org/nightly/) from 2017/04/07 onwards.

Just tested and this works again for 720p, 1080i to dvd format video 720*576

important for 16:9 source vieo: don't forget to set
Source Aspect Ratio: [16.9]
Destination Aspect Ratio: [16:9]
Title: Re: My Feature Requests v2
Post by: jan771 on April 07, 2017, 09:58:38 AM
I have another file AviDemux cannot handle, unless it detects no Audion Lanes. I think it is because Audio is Lane 0, but cannot cut+upload it without changing the lane condiguration.
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 07, 2017, 01:29:19 PM
avidemux works only with 4 tracks
0: 1st
1: 2nd
3: 3rd
4: 4th
possible 5.1 fltp issue?
or
1st stream is audio
2nd stream is video
upload small sample of such video, we can guess all day why it happens ;)
Title: Re: My Feature Requests v2
Post by: jan771 on April 07, 2017, 03:30:45 PM
1. It is not because of the fact, that there are more than 4 Lanes, because there are exactly 4
2. It is not because of the fact, that there are fltp e-aac files, because once copy-transcoded, AviDemux can open the file.

=> Maybe it is due to the fact that there was an Audio Stream before the Video Stream or
      Maybe it is due to the fact, that the subtitle Lane cannot be recognized and has an unknown format.
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 07, 2017, 03:52:00 PM
Quote from: jan771 on April 07, 2017, 03:30:45 PM
2. It is not because of the fact, that there are fltp e-aac files, because once copy-transcoded, AviDemux can open the file.
transcoding/placing in other container can change some bit/data/.. .
QuoteMaybe it is due to the fact, that the subtitle Lane cannot be recognized and has an unknown format.
Subtitle tracks are ignored.
But again upload small sample of the video, so developers can determine what is going on.
Title: Re: My Feature Requests v2
Post by: jan771 on April 09, 2017, 10:49:20 AM
please tell me how to provide that file, unless it is above 3GB I think I have to use copy -b with a bitwise option, in order to copy the start only?
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 09, 2017, 12:17:33 PM
make a 10 second recording (STB)
mpeg-ts container: http://www.avidemux.org/admWiki/doku.php?id=tutorial:cut_ts_sample
Title: Re: My Feature Requests v2
Post by: jan771 on April 09, 2017, 07:05:37 PM
ok, managed to record another sample AviDemux cannot handle the Audion Lanes... see
https://c.gmx.net/@334663428440331676/djXXsvFRRsaWTpYg-9jgbQ

The original AudioLaneERROR file
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 09, 2017, 08:22:09 PM
All audio tracks recorded by this Comag device become garbled in Avidemux. It does detect audio in the last sample if the sample has been remuxed with ffmpeg as TS (not as MKV, possibly due to ffmpeg package for Fedora 24 being outdated), but fails to play it correctly. I didn't check, but even ffmpeg-3.2.x might be too old for this format (http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2017-February/206523.html).
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 10, 2017, 05:30:56 AM
There could be issues with the firmware and dvb-t2 hevc germany
You do have a current firmware on your receiver?
Comag TV board not official: Software Update Comag SL65T2 (http://www.comag.tv/board/index.php?page=Thread&threadID=13608)
Title: Re: My Feature Requests v2
Post by: jan771 on April 10, 2017, 01:36:35 PM
I don't know what you mean, but ffmpeg can handle these files easily. You just have to specify the Frame Rate of the source file and nothing gets scrambled. I don't bellieve it is a comag Thing but a bilingual-Video Thing.

Following example works for arte Recordings:

ffmpeg.exe ^
-y -ss 15:48 -r 50 ^
-i "D:\Filme\000300.mpg" ^
-t 1:28:04 ^
-map 0:1 -map 0:0 -map 0:3 ^
-c:v copy -c:a:0 copy -c:a:1 copy -codec copy ^
-metadata:s:a:0 language=deu ^
-metadata:s:a:1 language=fre -sn -dn ^
"d:\Le Havre (2011) DE-FR.mkv"

Most important thing is, that you specify the source frame rate "-r 50", I think.
Title: Re: My Feature Requests v2
Post by: mean on April 10, 2017, 02:25:03 PM
The sample does not contain PAT/PMT so avidemux tries to guess the tracks
It is unreliable for non mpeg/ac3 audio, you have AAC/LATM
Title: Re: My Feature Requests v2
Post by: jan771 on April 10, 2017, 04:02:38 PM
How does Media Player recognize the Audio lanes then? I can chose as normal...
Title: Re: My Feature Requests v2
Post by: jan771 on April 21, 2017, 12:14:14 PM
Meanwhile every channel has movies configured with audio lane like this, so you cannot edit it with AviDemux
Title: Re: My Feature Requests v2
Post by: eumagga0x2a on April 21, 2017, 01:05:52 PM
I've got quite a lot of DVB-T2 samples recorded with a Dreambox receiver, and didn't find any issues with them.
Title: Re: My Feature Requests v2
Post by: jan771 on April 22, 2017, 02:07:48 PM
lol, nobody has a dreambox I guess, it is really a -can all but costs as is- device.
Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on April 23, 2017, 04:19:37 AM
DVB-C/C2 DVB-S/S2 DVB-T/T2 = best served with SetTopBox operating linux like Distro
- openATV mainly [DE]
- OpenPli  mainly [NL], [EN], [DE] in this order.
- ...
Look for STB that is supported in your region / language.
Title: Re: My Feature Requests v2
Post by: jan771 on May 07, 2017, 06:04:42 PM
Thanks, so far, most recorded hevc files are recognized and converted, now. What I still miss most is an Equilizer, that can progressively increase colors and brightness / levels. Only the Eq2 filter is remaining, leaving it impossible to progress old polaroid movies, where strong colors have to be left and weak colors have to be improved.

Title: Re: My Feature Requests v2
Post by: Jan Gruuthuse on May 08, 2017, 04:30:57 AM
You did check Video Filters: Colours
- Avisynth color filter
- Contrast
Perhaps they have what you look for?
Title: Re: My Feature Requests v2
Post by: jan771 on May 16, 2017, 12:59:28 PM
The Avisynth color filter works only well for magnetic sources but auto brightness can be improved.
What I miss is a filter with 3 color component filter with gradual curve increasement.
The colors bleach differently, strong colors do not bleach or get stronger, week colors nearly fully bleach. Therefore week colors have to get increased and strong colors can remain or lowered.

It seems that AviDemux at least once in the past had a brilliance equilizer:
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.engon.de%2Faudio%2Fvhs%2Favidemux_eq.jpg&hash=6076d28ab898e7071efb8a60c971bc3ca9f91f93)


Ideally there is a filter for all three colors, similar to this:
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.engon.de%2Faudio%2Fvhs4%2Fgradation-saturation.png&hash=043976dafa1ff2ca9d996203b6921f2940884b35)
thx and kind regards