Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd March 2024, 00:29   #21  |  Link
Brazil2
Registered User
 
Join Date: Jul 2008
Posts: 538
Quote:
Originally Posted by FranceBB View Post
MP4Box GUI 0.6.0.6, but it runs on an older version.
MP4-Mux-Tool uses recent versions of MP4Box
https://github.com/jlw4049/MP4-Mux-Tool
Brazil2 is offline   Reply With Quote
Old 2nd March 2024, 02:12   #22  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,160
Quote:
Originally Posted by LigH View Post
New uploads (MSYS2, MinGW32 / MinGW64, GCC 13.2):

MP4Box 2.3-DEV-rev937-g69b32cebf-ab-suite

GPAC 2.3-DEV-rev937-g69b32cebf-ab-suite


Another interactive MP4/MKV remux GUI tool: BOX4 (not sure which multiplexers it uses internally)
What's different between of gpac and non-gpac?
kedautinh12 is offline   Reply With Quote
Old 2nd March 2024, 03:12   #23  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,851
Please read:

https://gpac.io/
https://github.com/gpac/gpac/wiki/

In most cases related to (de-)multiplexing MP4 files, MP4Box is all you need, it is already complex enough; GPAC supports even more kinds of media manipulation by building "filter" chains and even trees. Do you remember GraphEdit for DirectShow filter graphs? GPAC is like that ... on steroids, but with a command line interface, and all in one binary.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 2nd March 2024 at 03:14.
LigH is offline   Reply With Quote
Old 2nd March 2024, 06:15   #24  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,231
I've just remembered...

Many years ago I used DVBPortal's MP4Multiplexer/Demultiplexer as well. It used something called mp4creator.exe.

https://www.videohelp.com/software/MP4Muxer

EDIT: Needless to say mp4creator.exe is years out of date and not suitable for todays needs!
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 2nd March 2024 at 23:54.
SeeMoreDigital is offline   Reply With Quote
Old 2nd March 2024, 12:45   #25  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,428
Quote:
Originally Posted by SeeMoreDigital View Post
I've just remembered...

Many years ago I used DVBPortal's MP4Multiplexer/Demultiplexer as well. It used something called mp4creator.exe.

https://www.videohelp.com/software/MP4Muxer
GStreamer has a particularly nasty bug with AAC streams muxed into MP4 by mp4creator that causes it to stop playing about halfway through the track, as if the file is truncated. libavcodec-based players and even faad can play/decode the entire length without issue, any players using GStreamer can't.

The same file (re)muxed with ffmpeg is totally fine in GStreamer, though. So it specifically has to do with how mp4creator arranges the atoms or something.

Last edited by qyot27; 2nd March 2024 at 12:47.
qyot27 is offline   Reply With Quote
Old 11th March 2024, 17:38   #26  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,094
https://forum.doom9.org/showthread.p...36#post1998336

I cannot reproduce this issue, probably because my work flow is different.

Short Explanation:
My sources are mostly from YouTube or similar sites downloaded in the MP4 format (avc video in HD and aac audio). I leave the video untouched and manipulate the audio slightly. Then I save the result in the MKV format (simply because my old Xtreamer box likes the MKV format better than MP4).

These files are perfect for my needs, but sometimes a friend asks me for a certain video file. And most of my friends are Apple fan boys and want the files in the MP4 format instead of my MKV files. In these cases I repack the files to the MP4 format using FFMpeg (just change the container, no other changes), and so far I never got any complaints about seeking issues.

After reading Myrsloik's post I got curious and tested some of my MP4 files created from MKV files. And I could not find any seeking issues. MediaInfo reports 2 separate audio streams for the MP4, so the file size is marginally higher, but I could not see any of the problems which Myrsloik points out.

So is this really an FFmpeg issue with MP4 files? Maybe I should mention that my FFmpeg version is from January 2022 (last version which supports the Fraunhofer FDK AAC codec). And I need to use this AAC codec because my Xtreamer box tends to choke on AAC audio files created with FFmpeg.


Can someone enlighten me please? Maybe even uploat an MKV source file which shows this behavior after converting it to MP4 using FFmpeg?

Cheers
manolito

Last edited by manolito; 12th March 2024 at 16:43.
manolito is offline   Reply With Quote
Old 21st March 2024, 11:35   #27  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,231
Out of interest...

Are there any MP4 muxers that are able to support .m2ts files that contain 'Dolby TrueHD with an AC3 core', or is the AC3 core always removed?

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 21st March 2024, 14:07   #28  |  Link
RBO
GPAC maintainer
 
Join Date: Jul 2010
Posts: 25
As a GPAC implementor I don't think I have access to any such stream. Don't hesitate to share one if you want us to have a look.
RBO is offline   Reply With Quote
Old 21st March 2024, 17:05   #29  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,231
Quote:
Originally Posted by RBO View Post
As a GPAC implementor I don't think I have access to any such stream. Don't hesitate to share one if you want us to have a look.
Any Blu-ray disc which has been encoded with Dolby TrueHD will offer this provided the Dolby TrueHD audio stream is kept within the .m2ts container and not re-muxed into the .mkv container.

Failing the above... It's possible to add a lossy AC3 stream into any lossless Dolby TrueHD stream using UsEac3To v1.3.3

Failing that failing... I shall also look for a short sample

EDIT: With any luck this link to my Microsoft OneDrive should work: https://1drv.ms/v/s!Aj3f3LPxO1ZSiBGD...083qE?e=SjePZf. Click on the download icon at the top left corner.
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 21st March 2024 at 17:25.
SeeMoreDigital is offline   Reply With Quote
Old 6th April 2024, 02:12   #30  |  Link
Video Dude
Senior Member
 
Join Date: Apr 2004
Posts: 1,054
Quote:
Originally Posted by manolito View Post
After reading Myrsloik's post I got curious and tested some of my MP4 files created from MKV files. And I could not find any seeking issues. MediaInfo reports 2 separate audio streams for the MP4, so the file size is marginally higher, but I could not see any of the problems which Myrsloik points out.
I also never had any problems with ffmpeg produced mp4 files, which are thousands of files over the years. However, I don't remux mkv, my sources are mp4 and ts. I never had a seek or playback problem in any software or hardware player. I do a lot of editing with VideoReDo with the ffmpeg mp4s and I'm able to scrub and framestep the video (both forward and back) without issue.

Quote:
Originally Posted by manolito View Post
Can someone enlighten me please? Maybe even uploat an MKV source file which shows this behavior after converting it to MP4 using FFmpeg?
I think the test files can be found here
https://forum.doom9.org/showthread.p...36#post1992736
Video Dude is offline   Reply With Quote
Old 7th April 2024, 09:32   #31  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,094
Thanks Video Dude for confirming my findings...

I did try the test files from your link, but they were not too helpful. Mostly the source mkv files were already broken, so it was no surprise that the resulting MP4 files were broken as well. The scenario which Myrsloik describes is different:

His mkv cource file has no search issues, but the MP4 file he gets after converting the source to MP4 using FFmpeg does have thouse search issues. And I cannot reproduce this problem, at least not for my source files (AVC video and AAC audio).

Maybe this is different for other source formats, so it would be nice if Myrsloyk or someone else could provide a link to a short MKV clip which has no problems, but which after converting it to MP4 using FFmpeg does show these issues.


Thanks again and cheers
manolito

Last edited by manolito; 8th April 2024 at 07:13.
manolito is offline   Reply With Quote
Old 26th April 2024, 20:03   #32  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,428
Quote:
Originally Posted by qyot27 View Post
GStreamer has a particularly nasty bug with AAC streams muxed into MP4 by mp4creator that causes it to stop playing about halfway through the track, as if the file is truncated. libavcodec-based players and even faad can play/decode the entire length without issue, any players using GStreamer can't.

The same file (re)muxed with ffmpeg is totally fine in GStreamer, though. So it specifically has to do with how mp4creator arranges the atoms or something.
...And not even two months later, FFmpeg started hitting the exact same issue as GStreamer on a fresh install of Ubuntu 24.04 with FFmpeg and mpv from git. mp4creator-muxed files are truncated halfway through, but the same file played back on an older (2022) build of mpv on Windows has the entire length. 24.04 repository versions of faad and mediainfo also both report the correct length.

But considering I am far more comfortable bisecting FFmpeg than I would be trying to do that with the relevant plugin for GStreamer, I was able to find the commit that causes the issue. The thing that doesn't make any sense is that that commit would have been present in the version of FFmpeg and mpv I was using on 23.10 just a couple days ago...where the issue wasn't happening. So I have to investigate further - my fear(?) is that while that commit may be the source of the issue for FFmpeg, it may have only been exposed and triggered because of a change in some other low-level part of the OS or even in GCC (which I suspect because trying to bisect the issue on 24.04 exhibited the same problem even with old versions between that commit and HEAD, which again, makes no sense when it didn't do this a couple months ago on 23.10).

EDIT: It seems to be a *bit* more nuanced than that. mpv had a couple of workarounds for FFmpeg's support of MP4 advanced editlists that was removed back in January. My build of mpv must have predated that, because reverting the removal commit only from mpv and not from FFmpeg allowed the file to work the way it was intended. So yeah, some of these commits in FFmpeg do affect the default behavior when consuming mp4creator-muxed files, but FFmpeg does have an -ignore_editlists option that controls that behavior which breaks these files, and setting that option to 'true' allows FFmpeg to see the correct length and decode the file as intended. On mpv's side, that same option can be passed through --demuxer-lavf-o to achieve the same thing (although I don't know what setting that unconditionally would do as far as video playback is concerned), so no commit reverting is necessary. I hope this is the last time I have to say anything about this.

Last edited by qyot27; 27th April 2024 at 06:06.
qyot27 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:57.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.