Final mp4 file with NO SOUND

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
cauthaigl
New Cone
New Cone
Posts: 5
Joined: 08 Dec 2023 06:34

Final mp4 file with NO SOUND

Postby cauthaigl » 08 Dec 2023 17:55

After "Convert / Save" MTS files with both "audio + keep original audio track" options checked, I get MP4 files with sound. However, when combining these MP4 files with the command:
"C:\Program Files\VideoLAN\VLC\vlc.exe" file1.mp4 file2.mp4 --sout "#gather:std{access=file,dst=final.mp4}" --sout-keep

The resulting final.mp4 file above has NO SOUND.

BTW, file1.mp4, file2.mp4 also would also have no sound if I did not have "keep original audio track" option checked.

Please advise on how to fix the no sound issue for final.mp4 file.

Thanks!

Lotesdelere
Cone Master
Cone Master
Posts: 10107
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Final mp4 file with NO SOUND

Postby Lotesdelere » 09 Dec 2023 11:46

There are other reports about conversion issues.
https://forum.videolan.org/viewtopic.php?f=14&t=163663

Try with a nightly build:
https://nightlies.videolan.org

Or use a dedicated video tool such as AviDemux:
http://avidemux.sourceforge.net

cauthaigl
New Cone
New Cone
Posts: 5
Joined: 08 Dec 2023 06:34

Re: Final mp4 file with NO SOUND

Postby cauthaigl » 14 Dec 2023 02:33

It seems the no sound issue happens when VLC combines multiple files into the final file with the command below:
"C:\Program Files\VideoLAN\VLC\vlc.exe" file1.mp4 file2.mp4 --sout "#gather:std{access=file,dst=final.mp4}" --sout-keep

How can I add the switch "keep original audio track" to the command above?

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Final mp4 file with NO SOUND

Postby InTheWings » 14 Dec 2023 11:21

what happens with a *single* file conversion ?
To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

cauthaigl
New Cone
New Cone
Posts: 5
Joined: 08 Dec 2023 06:34

Re: Final mp4 file with NO SOUND

Postby cauthaigl » 14 Dec 2023 20:20

What I did was to CONVERT two MTS files to MP4 files, using VLC GUI, rename the -converted files to file1 and file2, then use the command below in Windows shell to COMBINE file1 and file2 together in final file:
"C:\Program Files\VideoLAN\VLC\vlc.exe" file1.mp4 file2.mp4 --sout "#gather:std{access=file,dst=final.mp4}" --sout-keep

While file1.mp4 and file2.mp4 have sound, final.mp4 does NOT have sound!

If I may, I would like to have two questions:
1. Can I combine file1 and file2 using VLC GUI instead of running the command above?
2. If the answer is NO, then how can I fix this NO SOUND issue in the final.mp4 file?

I use VLC 3.0.11 in Windows 11.

Below is a small portion of the message log for the first step: converting two MTS files to MP4 files. This step generated two MP4 files with sound okay.

For the second step, when running the command "C:\Program Files\VideoLAN\VLC\vlc.exe" file1.mp4 file2.mp4 --sout "#gather:std{access=file,dst=final.mp4}" --sout-keep
it seems VLC didn't generate any messages. VLC reset Verbosity back to 0. This step generated final.mp4 with NO SOUND.

Thanks!

qt debug: MRL(s) passed to the Sout: 2
qt debug: MRL(s) passed to the Sout: file:///E:/HP_2/Amanda/Panasonic_HD/20231205/00036.MTS
qt debug: MRL(s) passed to the Sout: file:///E:/HP_2/Amanda/Panasonic_HD/20231205/00037.MTS
qt debug: Transcode MRL: sout=#transcode{vcodec=h264,scale=Auto,scodec=none}:std{access=file{no-overwrite},mux=mp4,dst='E:/HP_2/Amanda/Panasonic_HD/20231205/00036-converted.mp4'}
qt debug: Transcode MRL: sout=#transcode{vcodec=h264,scale=Auto,scodec=none}:std{access=file{no-overwrite},mux=mp4,dst='E:/HP_2/Amanda/Panasonic_HD/20231205/00037-converted.mp4'}
main debug: processing request item: null, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index -1
main debug: starting playback of new item
main debug: resyncing on Converting file:///E:/HP_2/Amanda/Panasonic_HD/20231205/00036.MTS
main debug: Converting file:///E:/HP_2/Amanda/Panasonic_HD/20231205/00036.MTS is at 0
main debug: creating new input thread
main debug: Creating an input for 'Converting file:///E:/HP_2/Amanda/Panasonic_HD/20231205/00036.MTS'
main debug: requesting art for new input thread
main debug: Creating an input for preparsing 'Converting file:///E:/HP_2/Amanda/Panasonic_HD/20231205/00037.MTS'
main debug: using sout chain=`transcode{vcodec=h264,scale=Auto,scodec=none}:std{access=file{no-overwrite},mux=mp4,dst='E:/HP_2/Amanda/Panasonic_HD/20231205/00036-converted.mp4'}'
main debug: stream=`std'
main debug: looking for sout stream module matching "std": 23 candidates
main debug: set config option: sout-standard-access to file{no-overwrite}
main debug: set config option: sout-standard-mux to mp4
main debug: set config option: sout-standard-dst to E:/HP_2/Amanda/Panasonic_HD/20231205/00036-converted.mp4
main debug: looking for sout access module matching "file": 10 candidates
main debug: set config option: sout-file-overwrite to (null)
file debug: file access output opened (E:/HP_2/Amanda/Panasonic_HD/20231205/00036-converted.mp4)
main debug: using sout access module "file"
main debug: looking for sout mux module matching "mp4": 11 candidates
mp4 debug: Mp4 muxer opened
main debug: using sout mux module "mp4"
stream_out_standard debug: using `file{no-overwrite}/mp4://E:/HP_2/Amanda/Panasonic_HD/20231205/00036-converted.mp4'
main debug: using sout stream module "stream_out_standard"

#### pages removed #####

x264 debug: framecount still in libx264 buffer: 0
x264 info: frame I:25 Avg QP:20.35 size:146975
x264 info: frame P:1454 Avg QP:22.53 size: 43545
x264 info: frame B:3843 Avg QP:25.72 size: 9616
x264 info: consecutive B-frames: 1.7% 3.3% 8.5% 86.6%
x264 info: mb I I16..4: 16.0% 70.0% 14.0%
x264 info: mb P I16..4: 1.5% 4.3% 0.3% P16..4: 43.7% 13.4% 7.7% 0.0% 0.0% skip:29.1%
x264 info: mb B I16..4: 0.0% 0.1% 0.0% B16..8: 40.4% 0.0% 0.0% direct: 1.4% skip:58.1% L0:40.6% L1:52.3% BI: 7.1%
x264 info: 8x8 transform intra:70.0% inter:80.2%
x264 info: coded y,uvDC,uvAC intra: 55.7% 75.6% 41.5% inter: 11.5% 16.9% 1.6%
x264 info: i16 v,h,dc,p: 31% 29% 15% 25%
x264 info: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 15% 31% 3% 4% 5% 4% 6% 4%
x264 info: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 26% 18% 4% 5% 6% 5% 5% 5%
x264 info: i8c dc,h,v,p: 48% 20% 25% 7%
x264 info: Weighted P-Frames: Y:3.2% UV:1.3%
x264 info: ref P L0: 59.2% 13.7% 20.6% 6.3% 0.2%
x264 info: ref B L0: 89.6% 8.6% 1.8%
x264 info: ref B L1: 95.8% 4.2%
x264 info: kb/s:4682.75
main debug: removing module "d3d11_filters"
main debug: Filter 0000029aaab36300 removed from chain
mp4 debug: tk 2 elst media time 0 duration 177644134 offset 33367
mp4 debug: removing input
main debug: killing decoder fourcc `a52 '
main debug: removing module "a52"
main debug: removing a sout input (sout_input: 0000029aaa7b5590)
mp4 debug: tk 1 elst media time 0 duration 177536000 offset 0
mp4 debug: removing input
main warning: no more input streams for this mux
main debug: killing decoder fourcc `bdpg'
main debug: removing module "copy"
main debug: removing module "ts"
main debug: Program doesn't contain anymore ES
main debug: removing module "record"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: dead input
main debug: destroying useless sout
main debug: destroying chain... (name=transcode)
main debug: removing module "stream_out_transcode"
main debug: destroying chain done
main debug: destroying chain... (name=std)
main debug: removing module "stream_out_standard"
main debug: removing module "mp4"
mp4 debug: Close
mp4 debug: movie duration 177s
mp4 debug: created 5321 chunks (stco)
mp4 debug: created 5321 chunks (stco)
qt debug: IM: Deleting the input
main debug: removing module "file"
file debug: file access output closed
main debug: destroying chain done
main debug: changing item without a request (current 1/2)
main debug: nothing to play

Lotesdelere
Cone Master
Cone Master
Posts: 10107
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Final mp4 file with NO SOUND

Postby Lotesdelere » 15 Dec 2023 10:35

I use VLC 3.0.11 in Windows 11.

Please update to latest version 3.0.20 and try again.

cauthaigl
New Cone
New Cone
Posts: 5
Joined: 08 Dec 2023 06:34

Re: Final mp4 file with NO SOUND

Postby cauthaigl » 16 Dec 2023 06:20

Updated to the latest version 3.0.20, with audio codec=MPEG 4 Audio ( AAC )

The final file still has the audio issue, but the issue is different from the previous version. This time the first two converted files have audio but the third converted file has NO audio in the combined final file.

Please note that ALL converted files have audio as individual files.

Instead of using the command like this one: "C:\Program Files\VideoLAN\VLC\vlc.exe" file1.mp4 file2.mp4 file3.mp4 --sout "#gather:std{access=file,dst=final.mp4}" --sout-keep

can we combine converted files using VLC GUI?

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Final mp4 file with NO SOUND

Postby InTheWings » 18 Dec 2023 11:38

you can't merge audio that does not have the same parameters
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

cauthaigl
New Cone
New Cone
Posts: 5
Joined: 08 Dec 2023 06:34

Re: Final mp4 file with NO SOUND

Postby cauthaigl » 18 Dec 2023 16:23

I first used VCL Convert & Save to add 3 different mts files to VLC tool at one time, ran VLC tool to generate 3 converted mp4 files. The VLC-converted mp4 files have audio. Then I combined these 3 VLC-converted mp4 files by using the command "C:\Program Files\VideoLAN\VLC\vlc.exe" file1.mp4 file2.mp4 file3.mp4 --sout "#gather:std{access=file,dst=final.mp4}" --sout-keep

In the VLC 3.0.11 version, the final file had no audio. In the VLC 3.0.20 version, the final file has the first two files with audio, the last file with NO audio.

Please let us know what you meant by "you can't merge audio that does not have the same parameters"?

Thanks,


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 48 guests