News:

--

Main Menu

Sony XAVC S audio problem

Started by MikeHarding, January 05, 2017, 01:07:57 AM

Previous topic - Next topic

MikeHarding

I am aware the dummy muxer does not produce an output file. Before I get to that stage I need the video/audio to play correctly within the application. In addition, I have tried a number of other decoders and output settings and the same fault occurs with them all.

I have now found the Avidemux preferences file:
C:\Users\Ford Prefect\AppData\Roaming\avidemux\defaultSettings.py
I "uninstalled" Avidemux, deleted the above directory and reinstalled for a totally fresh start - same problem.

I can only repeat: both VLC and WMP play this video correctly on my system.


Jan Gruuthuse

#31
Quote from: MikeHarding on January 14, 2017, 10:06:36 PM
>8 >8 Before I get to that stage I need the video/audio to play correctly within the application >8 >8.

You are sure your hardware is up to the task? You're not an on a netbook running avidemux. Avidemux is not intended as mediaplayer. We are aware the player has issues.
Close all none essential programmes down: see if that changes the situation.

Quote>8>8 I have now found the Avidemux preferences file:
C:\Users\Ford Prefect\AppData\Roaming\avidemux\defaultSettings.py >8 >8
Did you find a config2 or config3 file, this one should be deleted to.

In the same folder where that video is, delete the .idx2 file with the same name as that video.
User expectation can be different to what avidemux does.
Change your workflow. Leave video content untouched. Correct audio content 1st. Save Video and work with the new video.

MikeHarding

>You are sure your hardware is up to the task?
>You're not an on a netbook running avidemux.
>Avidemux is not intended as mediaplayer.

I know very little of video editing.
I don't know much about desktop PCs.
However I do have 40 years experience as an embedded systems design engineer designing hardware and writing real-time software mainly in C and assembler. My last project, a military software defined radio, involved a Xilinx SoC with dual ARM Cortex A9 processors so I do have some idea about these computer things.

Here is a video of my monitor playing the previously uploaded sample (C0002.mp4) on WMP, VLC and Avidemux - I really don't know what else to tell you?

Except perhaps to add that I have owned this PC system for some years and have never had a problem running any software.

http://bit.ly/2iysgdu

"Video of a Video.mp4" - 17MB.

mean

If you save as mkv, do you have the complete video ?

MikeHarding

>If you save as mkv, do you have the complete video ?

I'm sorry, I don't understand what you are asking.

The camera produces C0002.mp4 as a native.

The "Video of a Video.mp4" was shot at low resolution and then fed through Avidemux to reduce its size.

Will you please expand your question?

Jan Gruuthuse

set Output Format to [Mkv Muxer] @ bottom left hand of avidemux GUI
save the loaded video. (creates a new video)

------------
These tools could provide you more info on your computer:
CPU-Z is a freeware that gathers information on some of the main devices of your system : Processor name and number, codename, process, package, cache levels
http://www.cpuid.com/softwares/cpu-z.html

Process Explorer v16.20 By Mark Russinovich
should give you an insight of processes runing on your computer.
https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx

I'm on dated hardware myself:

Intel Core i7-3770K @ 3.50GHz (4 Cores/8 Threads)
Launch Date    Q2'12
Status    End of Life
with 32 GB ram

and stopped using windows (XP, 32-bit, ages ago and now using ubuntu, 64-bit, exclusively), so I'm no longer a big help concerning windows usage.

Jan Gruuthuse

#36
LPCM audiotrack:while using [copy] for audio:
[FF] Muxer opened
[FF] Using 122 bytes for video extradata
[initVideo] 10:52:44-624  Video has extradata and muxer requires globalHeader, assuming it is done so.
[FF] Video initialized
[MP3] TimeBase for video 1000/50000
[FF] Bitrate 1536
[FF]: Unsupported audio
[open] 10:52:44-624  [Mkv] Failed to init audio


Select Output Format: [Mkv Muxer]
Select Audio Output: [MP2 (lav)] or [AAC (FDK))
Leave Video Output: [Copy]

this should have produced these 2 video clips, you
need to provide the name.

Files (245 MB total) c0002aac(fdk).mkv  & c0002mp2(lav).mkv
Will be deleted on 22 January, 2017
Download link https://we.tl/UTPecxKtzs

MikeHarding

>If you save as mkv, do you have the complete video ?

OK, I think I now understand what you are asking.

If I save the video C0002.mp4 as:
Video decoder - Lavcodec DXVA2
Video output = Mpeg4 AVC (x264)
Audio output = AAC (lav)
Output format = Mkv Muxer

The resultant mkv file is correct - the audio is in sync with the video and the whole thing plays as it should.

MikeHarding

#38
No, sorry, ignore my post above - I think I must have played the resultant mkv file with the default player rather than Avidemux.

The mkv file is *not* correct when played under Avidemux however it is a little less incorrect in that the audio now ends when the kitchen timer reads 15s as opposed to the mp4 file where the audio ends at 11s.

Jan Gruuthuse

Load the newly saved mkv into avidemux.
Avidemux Menu: Audio: Save Audio: C0002.mp2
When you play C0002.mp2 with VLC, you should find the audio duration is exactly 20 seconds.

Leaving the suspicion you hardware does not have enough power to play 1920x1080 AVC in avidemux?
With the new mkv loaded, press keyboard
- nummeric 3 (zoom 1:2), press play,  is this improving playback
- nummeric 4 (zoom 1:4), press play,  is this improving playback

eumagga0x2a

Quote from: Jan Gruuthuse on January 17, 2017, 07:30:17 AM
With the new mkv loaded, press keyboard
- nummeric 3 (zoom 1:2), press play,  is this improving playback
- nummeric 4 (zoom 1:4), press play,  is this improving playback

This could help a bit, but I wouldn't expect much because the non-accelerated decoding is the performance bottleneck, not the display part.

Really, there is no need for furher discussion here. The only thing we must check is whether decoding via DXVA2 is enabled, and when it is enabled, why it can't be used.

Jan Gruuthuse

Still need to establish if the saved audio has the correct duration! This would confirm a bottleneck.

MikeHarding

>Load the newly saved mkv into avidemux.
>Avidemux Menu: Audio: Save Audio: C0002.mp2
>When you play C0002.mp2 with VLC, you should find the audio duration is exactly 20 seconds.

I confirm that the resultant audio file takes 20s to play on VLC. ie. the stripped audio is correct.  Interestingly, WMP refuses to play the file.

>With the new mkv loaded, press keyboard
>- nummeric 3 (zoom 1:2), press play,  is this improving playback
>- nummeric 4 (zoom 1:4), press play,  is this improving playback

I load the mkv and press numeric 3 (no feedback) - I then press play, nothing happens for a few seconds then the position slider immediately shoots to end of play (20s) but no video or audio has played.

I load the mkv and press numeric 4 (no feedback) - I then press play, the video plays in its usual incorrect manner.

The above happens irrespective of whether numlock is on or off.

>Really, there is no need for furher discussion here.

I am of the same mind.

Thank you for all you help and interest gentlemen but my moral fortitude is lagging and I fear my interest in shooting in XAVC S is rapidly following it :)

I really appreciate the time and effort you guys put into this software - thank you.

Mike

Jan Gruuthuse

Weird
You can select the zoom from Avidemux Menu: View
- Zoom 1:2
- Zoom 1:4
the displayed video should show decreased in size in avidemux GUI

MikeHarding

FYI - Windows Control panel - System reports my hardware as being:
3.0 Windows Experience Index (whatever that is!?)
AMD Athlon II X2 250 processor 3.0GHz
8GB RAM but only 2.87 usable ('cause we're 32 bit - which is why I need to upgrade to 64 bit in order to do Android development)

----

Selecting 1:2 zoom from the view menu seems to do nothing, the video plays in its normal incorrect way.
Selecting 1:4 zoom from the view menu produces a smaller image which plays in its normal incorrect way.

Time to eat the lasagne I have cooked after a 35C day and then go to bed :)