You are not logged in.
- Topics: Active | Unanswered
#1 06-01-2012 18:15:45
- meinereiner
- Membre
- From: Fulda
- Registered: 03-21-2012
- Posts: 75
[Solved]AC3 sound in an MPG-File
Hello,
I have a problem with the 1.3 version on an opesuse 12.1 64bit system (ffmpeg 0.10.3) to create DVD Files with MPG/AC3 Combination.
When I want to create an MPG File with AC3 as sound codec to burn a DVD, ffDiaporama makes his job without problems. But when I try to play the file with vlc or xine no sound is playing except ffplay, this programm play sound.
This problem is coming only with the Combination MPG/AC3. All other (MKV flv ...) works well.
Compiled with ffmpeg 0.11 an run on different machines has the same problem.
When I try to demux the MPG-File with projectx I get a lot of small ac3-files. Normally ist only one.
Greetings
Norbert
Offline
#2 06-06-2012 09:23:31
- meinereiner
- Membre
- From: Fulda
- Registered: 03-21-2012
- Posts: 75
Re: [Solved]AC3 sound in an MPG-File
Hello,
I will write in this post, because the post "opensuse 12.1 ffmpeg changed to version 54" will be closed after changing the codelines.
If you could try it with another version of ac3... encoding I will try it on my blueray-player here and on my tv. Both can play mpg's directly. With the encoding that now is going during rendering mpg/ac3 none of my "Hardware"-Players play sound.
Stay tuned
Norbert
Offline
#3 06-07-2012 07:05:33
- domledom
- Administrateur
- Registered: 09-17-2011
- Posts: 1,080
Re: [Solved]AC3 sound in an MPG-File
Hello
I think i've found a solution.
Could you try this : in DlgRenderVideo/DlgRenderVideo.cpp file
line 832, add this : QString StreamFormat="";
line 1043, add this : if (QString(FORMATDEF[OutputFileFormat].ShortName)=="mpeg") StreamFormat=" -f mpegts";
line 1065, replace line with : QString(" -dframes %1%2 %3 -r %4 ").arg(NbrFrame).arg(StreamFormat).arg(vCodec).arg(DefImageFormat[Standard][Diaporama->ImageGeometry][ImageSize].FPS)+
This means that I force use of "mpegts" muxer instead of default "mpeg" muxer.
In my computer, rendered file was readable with VLC and gstreamer.
I'm afraid but I've no time this morning to test with other devices.
Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)
Offline
#4 06-11-2012 19:53:17
- meinereiner
- Membre
- From: Fulda
- Registered: 03-21-2012
- Posts: 75
Re: [Solved]AC3 sound in an MPG-File
Hello
sorry for the late answer but I have made a long offline weekend.
Your solution is great. At any Soft- and Hardware Player I got sound with this edition.
Go on.
Norbert
Offline