Recent Posts

Pages: 1 ... 8 9 [10]
91
Windows / Re: x264 incompatible with LG BluRay player
« Last post by Bart Z Lederman on June 29, 2020, 02:44:05 PM »
I am attaching two admlog files as requested.

The first is the processing of the video file, producing an output with variable frame rate.

The second is what happens when I open that produced file in Avidemux.

I hope this helps.  If there is anything else I can do to help please let me know.
92
Windows / Re: x264 incompatible with LG BluRay player
« Last post by eumagga0x2a on June 29, 2020, 01:05:10 PM »
Please reproduce the editing steps starting with loading the source file, applying filters and saving the output, close Avidemux, then compress and attach admlog.txt from %localappdata%\avidemux\ to your reply. After that please load the produced mp4 video in Avidemux, close Avidemux and post the new admlog.txt too.

From practical point of view, as you re-encode anyway, add the "Resample" video filter as the last one to the chain (but please not before you have provided admlog.txt to allow to assess the situation).

P.S.: I'm getting rejected for "SPAM" again.  Can anyone see something in the attached file
that is in any way offensive?

No human being would qualify it as spam. It is the external automated AI (artificial idiocy) driven CleanTalk antispam service, which is a black box without any controls. My apologies for inconvenience. Clearing the browser cache or posting from a private browser window as well as changing the IP address may help.
93
Windows / Re: x264 incompatible with LG BluRay player
« Last post by Bart Z Lederman on June 29, 2020, 12:14:12 PM »
I may have posted too soon.

A short test on the same input file as before (AVC, AC-3, AVI, output of VirtualDub capturing a TV signal
at 60 FPS) resulted in a file with fixed 60 FPS.

A longer test of the same file, with filters to crop the image and cut out commercials resulted in this:

Frame rate mode Variable, Frame rate 60.000 FPS, Minimum frame rate 30.001 FPS,
Maximum frame rate 60.002 FPS

I don't see how this could have happened.

I have processed some other files this morning with constant frame rates (but lower than 60),
with various filters, and they came  out with a constant frame rates the same as the input.

Any ideas?

This is with the most recent nightly build

P.S.: I'm getting rejected for "SPAM" again.  Can anyone see something in the attached file
that is in any way offensive?
94
Windows / Re: x264 incompatible with LG BluRay player
« Last post by Bart Z Lederman on June 29, 2020, 09:49:42 AM »
I've done a quick test, and you are, of course, correct.

Thanks for letting me know this problem was already fixed.  I don't
normally use the nightly builds, but I'm willing to do more testing
in the future.
95
Windows / Re: x264 incompatible with LG BluRay player
« Last post by eumagga0x2a on June 29, 2020, 07:10:08 AM »
The issue with perfectly regular constant frame rate videos turning into (pseudo-) variable frame rate videos after being muxed with the MP4 muxer in Avidemux was solved many months ago, however only after the 2.7.5 release. Please use the latest nightly which is currently from June 26:

https://avidemux.org/nightly/vsWin64/
96
Windows / Re: Consistent Invalid timestamps error while muxing from mkv to mp4.
« Last post by Amey8a on June 29, 2020, 04:09:31 AM »
I can reproduce the issue with my sample, looking into it. Thank you very much for your report.
Glad the reports came out to be helpful. I appreciate the avidemux team for simplifying so many tasks for me. Thank you for your support.
97
Windows / Re: x264 incompatible with LG BluRay player
« Last post by Bart Z Lederman on June 29, 2020, 12:47:16 AM »
O.K., another test and things are even fuzzier.

I opened the input file with Avidemux.  AVC, AC3, 60 fps fixed, AVI container.

I set Video to 'copy', Audio to 'copy', Format to 'MP4'. 

The output file is now 60 fps variable.

Frame rate mode                          : Variable
Frame rate                               : 60.000 FPS
Minimum frame rate                       : 59.940 FPS
Maximum frame rate                       : 60.060 FPS

So: are AVI and MKV ignoring small variations in the frame rate and marking
the file as "fixed" where MP4 is more sensitive (or accurate)? 

Or is Avidemux doing something to the video or audio stream even if the
operation is marked as "copy"?

I'm inclined to think that it's the second option, since ffmpeg will copy the
file and say the output is fixed rate, but I'm open to all suggestions.

Thanks again.
98
Windows / Re: x264 incompatible with LG BluRay player
« Last post by Bart Z Lederman on June 29, 2020, 12:25:36 AM »
Thanks for the reply.

The frame rate is involved, but not in any way that makes sense to me.

The original file is avc x264 video, ac-3 audio, AVI container, 60 fps fixed.  LG will play that.

If I run it through ffmpeg and copy the video, or re-encode the video, it comes out at 60fps and LG will play that.

If I run it through Avidemux and change the frame rate to 30 fps, LG DOES play it.

Your suggestion that Avidemux is producing variable frame rate output is confirmed. 
This is the input file:

(deleted)

This is what I get if I run it through Avidemux and change the frame rate:

(Variable with small variations around 30fps).

If I run the same input file through Avidemux with no filters at all, just
re-encode with x264 I get this:

(variable frame rate with small variations around 60fps).

I get the same results re-encoding with Mpeg4, with a small variation in frame rate.

However, if I use the Mpeg4 codec and the output container is AVI, I get a fixed
frame rate at 60, which LG will play.

I've been using mostly AVI until now (the LG 'likes' it better), which might be why I haven't
seen this problem before.

I got curious, so I also encoded as x264, but with an MKV container and got a fixed
60 fps frame rate.

It appears that only MP4 containers are being turned into variable rate by Avidemux,
and only by Avidemux.  ffmpeg does not change the frame rate, the output is fixed 60 fps. 
HandBrake can also produce a fixed rate output.

So why is a constant frame rate input being changed to a variable frame rate output for
MP4 but not AVI or MKV, and why is only Avidemux doing it?

Granted, there may be a flaw in the LG firmware, but I think Avidemux is doing something
"wrong" here.

P.S.:

I had much more detail about the files in my reply, very similar to what I posted originally.
But the board won't let me post it, it keeps saying that my reply appears to be 'spam' but
won't say why.  I've cut down the message twice, but it keeps getting rejected and
I don't know where to go to find out how to fix it.  I'm going to include the original
message as an attachment.

P.P.S.:  I've had to trim my reply down to practically nothing.




99
Windows / Re: x264 incompatible with LG BluRay player
« Last post by eumagga0x2a on June 28, 2020, 10:03:48 PM »
Does the problem persist when you use the latest available nightly of Avidemux?

edit: I wonder whether LG doesn't like

Code: [Select]
Frame rate mode                          : Variable
Frame rate                               : 60.000 FPS
Minimum frame rate                       : 59.942 FPS
Maximum frame rate                       : 60.062 FPS

Recent nightlies might help then.
100
Windows / x264 incompatible with LG BluRay player
« Last post by Bart Z Lederman on June 28, 2020, 09:51:49 PM »
I'm seeing a really odd problem here.

I'm capturing video with VirtualDub using the x264vfw-H.264/MPEG-4 AVC codec (which also says libx264 core 152 r2851bm ba24889 in the configuration window, if that helps).  I usually play the videos back on an LG BluRay player from an external hard drive using the USB port.  The output plays fine, but usually I want to exit the file first with Avidemux (2.7 VC++ 64bits).  If I output Mpeg4 ASP (xvid4) to an AVI file, the video plays fine on the LG and most everywhere else.  But recently I've been looking at serving the video from a Windows system to Roku (both for myself, and for a friend).  This requires an x.264 video in an MP4 container, unless I add software that will transcode on the fly, and that makes fast forward and rewind impossible (the Roku Media Player is rather limited).

If I use ffmpeg to convert a video, which says it's doing Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)), the output plays fine everywhere.  If I use Avidemux and select the Mpeg4 AVC (x264) video codec, the output will play everywhere EXCEPT the LG BluRay; which rejects it as unplayable.

I've used MediaInfo to look at the files that play and the files that don't, looking at every line, and I can't find a difference.  I've used ffmpeg to look at the beginning of the file, and it seems to be the same for the videos that play and the ones that don't.  I have tried settings of Constant Bitrate (Single Pass), Constant Quantiser (Single Pass), Constant Rate Factor (Single Pass), Video size (Two Pass), and Average Bitrate (Two Pass), and all of them play everywhere I've tested except on the LG player.  I went through the options and tried turning on "BluRay compatibility" on the Output 1 tab, and it made no difference.  I tried setting the Profile to Baseline just in case it was going past what the LG can play, and it made no difference.  I tried changing the audio setting from AAC (lav) to AAC (FDK), and then to MP3, and it made no difference.  I've tried turning "fastdecode" on and off, and turning "faststart" on and off, and it made no difference.

I am getting very frustrated, and I'm running out of ideas on what to check.

Are there any known problems with the container file produced by Avidemux, or any known issues between
the x264 DLL used by Avidemux and the x264 DLLs used by VirtualDub and ffmpeg?

This is a typical ffmpeg command line which produces a video that plays.

ffmpeg -hide_banner -i "input.avi" -ss 00:02:53.4 -to 00:10:10.2 -preset veryslow -crf 22 ^
 -tune +animation -movflags faststart -profile:v high -level 4.1 -c:a aac -b:a 192k -ar 48000 "output.mp4"

Going past level 4.1 does produce problems with the LG, but anything below High 4.1 that I've tried will work.

This is what ffmpeg says about a video that won't play

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample for avidemux.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
  Duration: 00:00:13.48, start: 0.065998, bitrate: 1673 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1473 kb/s, 60 fps, 60 tb
r, 60002 tbn, 120 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 193 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

This one will play, it came from the ffmpeg command given above:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'willplay.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
  Duration: 00:07:16.82, start: 0.000000, bitrate: 1744 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1539 kb/s, 60 fps, 60 tbr, 15360 tbn, 12
0 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

the difference here is that I set the baseline low on purpose, but having it set to High L4.1 like ffmpeg
does not many any difference in any of my tests.  I've tested at main L4.1 and main L3.1 and it makes
no difference.

Could someone please tell me what I'm missing here?  At this point, even speculation will be welcome.


If you want to wade through it, this is MediaInfo for the video that doesn't play on the LG.

General
Complete name                            : Q:\Temporary\wontplay.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 2.69 MiB
Duration                                 : 13 s 483 ms
Overall bit rate                         : 1 673 kb/s
Writing application                      : Lavf58.20.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L4
Format settings                          : 1 Ref Frames
Format settings, CABAC                   : No
Format settings, Reference frames        : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 13 s 450 ms
Bit rate                                 : 1 500 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 60.000 FPS
Minimum frame rate                       : 59.942 FPS
Maximum frame rate                       : 60.062 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.027
Stream size                              : 2.36 MiB (88%)
Writing library                          : x264 core 146 r2538 121396c
Encoding settings                        : cabac=0 / ref=1 / deblock=1:1:1 / analyse=0x1:0x1 / me=dia / subme=1 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=1500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.60
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 13 s 483 ms
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 318 KiB (12%)
Default                                  : Yes
Alternate group                          : 1

And this is one that does play:

General
Complete name                            : Q:\Temporary\Goggle Fishing Bear 1947.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 90.8 MiB
Duration                                 : 7 min 16 s
Overall bit rate                         : 1 744 kb/s
Writing application                      : Lavf58.12.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 9 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 9 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 7 min 16 s
Bit rate                                 : 1 539 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.028
Stream size                              : 80.2 MiB (88%)
Writing library                          : x264 core 155 r2901 7d0ff22
Encoding settings                        : cabac=1 / ref=9 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 7 min 16 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 10.0 MiB (11%)
Default                                  : Yes
Alternate group                          : 1

Pages: 1 ... 8 9 [10]