Page 1 of 2
Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 3:29 pm
by supreme
I have XviD video, I would like to trancode only the audio AC3 in Mp3.
This script is not worling, I receive an error.
Could you help me? 1000 thanks
- Code:
<Profile id="2" name="Philips" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>.*PHILIPS.*</FriendlyName>
</UPnPSearch>
</Detection>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpg" targetACodec="mp3">
<Matches container="avi" aCodec="ac3"/>
</Video>
</Transcoding>
</Profile>
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 3:45 pm
by Cerberus
lets use the correct philips profile as blindly make a new oe is silly
- Code:
<Profile id="20" name="Philips" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>.*PHILIPS.*</FriendlyName>
</UPnPSearch>
</Detection>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpeg" targetACodec="ac3" targetVCodec="mpeg2video">
<Matches container="matroska" />
<Matches container="mp4" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="flv" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="mpeg" aCodec="aac" />
<Matches container="mpeg" aCodec="mp3" />
<Matches container="mpeg" aCodec="dca" />
</Video>
<Video targetContainer="mpeg" targetACodec="ac3">
<Matches container="avi" />
</Video>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4" />
<Matches container="flv" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="mp3"/>
<Matches container="flv"/>
<Matches container="asf"/>
</Audio>
</OnlineTranscoding>
</Profile>
sorted.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 4:17 pm
by supreme
You have right, but what I am looking for is a script that transcode all the video with audio AC3 in MP3. The reason is that in ac3 my video is start and stop.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 4:22 pm
by Illico
All video !!?
So replace all targetACodec="ac3" by targetACodec="mp3" in the Philips profile section.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 4:23 pm
by Cerberus
ok im confused that dont make sense if you mean AVI with ac3 to mp3 you cant but u can just remux it to mpeg.
- Code:
<Profile id="20" name="Philips" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>.*PHILIPS.*</FriendlyName>
</UPnPSearch>
</Detection>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpeg" targetACodec="ac3" targetVCodec="mpeg2video">
<Matches container="matroska" />
<Matches container="mp4" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="flv" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="mpeg" aCodec="aac" />
<Matches container="mpeg" aCodec="mp3" />
<Matches container="mpeg" aCodec="dca" />
</Video>
<Video targetContainer="mpeg">
<Matches container="avi" aCodec="ac3"/>
</Video>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4" />
<Matches container="flv" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="mp3"/>
<Matches container="flv"/>
<Matches container="asf"/>
</Audio>
</OnlineTranscoding>
</Profile>
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 4:34 pm
by supreme
Yes video AVI - AC3 converted in AVI - MP3 why is not possible? With converter software like AVS Converter I can do it.
What I don't know if I have to transcode also the video or only the audio...
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 4:39 pm
by Cerberus
supreme wrote:Cerberus wrote:ok im confused that dont make sense if you mean AVI with ac3 to mp3 you cant but u can just remux it to mpeg.
- Code:
<Profile id="20" name="Philips" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>.*PHILIPS.*</FriendlyName>
</UPnPSearch>
</Detection>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpeg" targetACodec="ac3" targetVCodec="mpeg2video">
<Matches container="matroska" />
<Matches container="mp4" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="flv" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="mpeg" aCodec="aac" />
<Matches container="mpeg" aCodec="mp3" />
<Matches container="mpeg" aCodec="dca" />
</Video>
<Video targetContainer="mpeg">
<Matches container="avi" aCodec="ac3"/>
</Video>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4" />
<Matches container="flv" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="mp3"/>
<Matches container="flv"/>
<Matches container="asf"/>
</Audio>
</OnlineTranscoding>
</Profile>
Yes video AVI - AC3 converted in AVI - MP3 why is not possible? With converter software like AVS Converter I can do it.
What I don't know if I have to transcode also the video or only the audio...
Because when u transcode it you can it to mpeg container and u cant have ac3 inside mpeg container as its not supported by the device. Thats why i added this section to the profile to solve your problem
- Code:
<Video targetContainer="mpeg">
<Matches container="avi" aCodec="ac3"/>
</Video>
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 5:07 pm
by supreme
With your script i hear the sound but black screen, I see in the temporary folder the transcode file: "transcoding-temp-604-MPEG2PS.stf"
- Code:
C:\tmp\4sat\transcoding-temp-604-MPEG2PS.mpg
General
Complete name : C:\tmp\4sat\transcoding-temp-604-MPEG2PS.mpg
Format : MPEG-PS
File size : 707 MiB
Duration : 56mn 5s
Overall bit rate : 1 762 Kbps
Writing library : XviD0050
Video #224
ID : 224 (0xE0)
Format : MPEG-4 Visual
Format profile : Advanced Simple@L5
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Duration : 56mn 4s
Bit rate : 1 279 Kbps
Width : 608 pixels
Height : 256 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.343
Stream size : 513 MiB (73%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)
Audio #189-128
ID : 189 (0xBD)-128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Muxing mode : DVD-Video
Duration : 56mn 5s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -270ms
Stream size : 180 MiB (25%)
What I have to do?
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 7:28 pm
by Illico
MPEG-4 Visual Video codec remuxed into MPEG-PS is not supported by Philips TV (and all devices...its not a standard). (MPEG-TS too).
You have to transcode the video to MPEG2VIDEO.
In fact, if you have to remux an AVI file, you should transcode the video codec.
Because the targetContainer supported by serviio are MPEGPS, MPEGTS, ASF.....AVI, MKV or MP4 target container are not supported.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Thu Feb 23, 2012 7:28 pm
by Cerberus
try this:
- Code:
<Profile id="20" name="Philips" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>.*PHILIPS.*</FriendlyName>
</UPnPSearch>
</Detection>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpeg" targetACodec="ac3" targetVCodec="mpeg2video">
<Matches container="matroska" />
<Matches container="mp4" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="flv" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="avi" aCodec="ac3"/>
<Matches container="mpeg" aCodec="aac" />
<Matches container="mpeg" aCodec="mp3" />
<Matches container="mpeg" aCodec="dca" />
</Video>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4" />
<Matches container="flv" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="mp3"/>
<Matches container="flv"/>
<Matches container="asf"/>
</Audio>
</OnlineTranscoding>
</Profile>
@illico u was 2 clicks ahead of me

Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Fri Feb 24, 2012 9:21 am
by supreme
I want to thank Cerberus and Illico for the fast help. Now I will try your script Cerberus and I will write the result.
So I see that future release of Serviio can be upgradeted to support AVI, MKV or MP4 target container.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Fri Feb 24, 2012 10:38 am
by Illico
supreme wrote:So I see that future release of Serviio can be upgradeted to support AVI, MKV or MP4 target container.
Not sure, AVI, MKV and MP4 target container are not adapted for streaming (there where some information at the end of file for example)
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sat Feb 25, 2012 8:59 am
by supreme
Cerberus your last script is not working, still the video is stop and go. My original video is XviD - AC3
Here you can see the file generated by the transcoding:
- Code:
C:\Windows\Temp\Serviio\transcoding-temp-604-MPEG2PS.stf
General
Complete name : C:\Windows\Temp\Serviio\transcoding-temp-604-MPEG2PS.stf
Format : MPEG-PS
File size : 882 MiB
Duration : 56mn 5s
Overall bit rate : 2 199 Kbps
Video #224
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : No
Format settings, Matrix : Default
Format settings, GOP : M=1, N=15
Duration : 56mn 5s
Bit rate mode : Variable
Bit rate : 1 707 Kbps
Width : 608 pixels
Height : 256 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.457
Stream size : 685 MiB (78%)
Audio #189-128
ID : 189 (0xBD)-128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Muxing mode : DVD-Video
Duration : 56mn 5s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 64ms
Stream size : 180 MiB (20%)
Still I see that the audio is AC3, but I need that is MP3...
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sat Feb 25, 2012 9:46 am
by Cerberus
you can not have it as mp3 its NOT supported.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sat Feb 25, 2012 9:54 am
by supreme
Cerberus wrote:you can not have it as mp3 its NOT supported.
Which other codec audio is supported? For my television AC3 is not good, so I have to put another audio...
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sat Feb 25, 2012 10:02 am
by Cerberus
supreme wrote:Cerberus wrote:you can not have it as mp3 its NOT supported.
Which other codec audio is supported? For my television AC3 is not good, so I have to put another audio...
no ac3 is fine, and the only supported audio codec, try this.
- Code:
<Profile id="20" name="Philips" extendsProfileId="1">
<Detection>
<UPnPSearch>
<FriendlyName>.*PHILIPS.*</FriendlyName>
</UPnPSearch>
</Detection>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="matroska" />
<Matches container="mp4" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="flv" />
<!-- if audio different to ac3, must be transcoded -->
<Matches container="avi" aCodec="ac3"/>
<Matches container="mpeg" aCodec="aac" />
<Matches container="mpeg" aCodec="mp3" />
<Matches container="mpeg" aCodec="dca" />
</Video>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4" />
<Matches container="flv" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="mp3"/>
<Matches container="flv"/>
<Matches container="asf"/>
</Audio>
</OnlineTranscoding>
</Profile>
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sat Feb 25, 2012 10:32 am
by supreme
Cerberus wrote:no ac3 is fine, and the only supported audio codec,
Could be I have to reduce the channels audio and the bitrate? Which is the value I can put in the script?
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sat Feb 25, 2012 10:59 am
by Cerberus
supreme wrote:Cerberus wrote:no ac3 is fine, and the only supported audio codec,
Could be I have to reduce the channels audio and the bitrate? Which is the value I can put in the script?
just try the profile i posted above.
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sun Feb 26, 2012 11:58 am
by supreme
No you profile is nor worlking the video start and after 2 seconds stop and go and black screen.
I was put this new line in the script to force the transcoded video to be a 2 channel stereo, but how you can see in the transcode file: "transcoding-temp-604-MPEG2PS.stf" the audio channels are still 6, the bitrate 448 Kbps
- Code:
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" aSamplerate="44000" forceStereo="true">
- Code:
C:\Windows\Temp\Serviio\transcoding-temp-604-MPEG2PS.stf
General
Complete name : C:\Windows\Temp\Serviio\transcoding-temp-604-MPEG2PS.stf
Format : MPEG-PS
File size : 633 MiB
Duration : 56mn 5s
Overall bit rate : 1 577 Kbps
Video #224
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : No
Format settings, Matrix : Default
Format settings, GOP : M=1, N=15
Duration : 56mn 5s
Bit rate mode : Variable
Bit rate : 1 098 Kbps
Width : 608 pixels
Height : 256 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.294
Stream size : 440 MiB (70%)
Audio #189-128
ID : 189 (0xBD)-128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Muxing mode : DVD-Video
Duration : 56mn 5s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 64ms
Stream size : 180 MiB (28%)
Re: Philips 46PFL7605H/12 - audio Transcoding AC3 => MP3

Posted:
Sun Feb 26, 2012 12:08 pm
by Illico
supreme wrote:I was put this new line in the script to force the transcoded video to be a 2 channel stereo, but how you can see in the transcode file: "transcoding-temp-604-MPEG2PS.stf" the audio channels are still 6, the bitrate 448 Kbps
Check your
detailed logging file and found the ffmpeg command line used to transcoded this file.
Then try locally the same command line in a windows terminal. Check the ffmpeg process, you will probably find the reason why ffmpeg does not force to stereo...