Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proposed ebuild for mediatomb - uPNP media server
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 11, 12, 13, 14  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Tue Jun 10, 2008 9:20 am    Post subject: Reply with quote

What exactly did you have to do to fix it? I've tried a few things, but still it gives me the error.

EDIT: I fixed it by setting the owner of the auto-scan directory recursively(all files and subdirs as well) to "mediatomb". Though, I'm not certain if this is the proper and correct method?
EDIT2: It is only necessary to make the owner of the directory itself to "mediatomb", not any files or subdirectories within it.
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Tue Jun 10, 2008 9:45 am    Post subject: Reply with quote

I also recursively set the permissions/ownership on the specific directory that was having the issue. You are correct about not having to set the ownership on the files, but that is most likely because the files are world readable.
Back to top
View user's profile Send private message
miataninja
n00b
n00b


Joined: 12 May 2007
Posts: 4

PostPosted: Thu Jun 12, 2008 12:56 pm    Post subject: Reply with quote

awx wrote:
The divx/xvid problem with error code 8002880C during playback is still in 2.30 too.


Any news on this? I get this as well on a lot of AVI / divx / xvid files..
Back to top
View user's profile Send private message
kortex
n00b
n00b


Joined: 22 Aug 2007
Posts: 26
Location: UK

PostPosted: Wed Jul 02, 2008 8:32 am    Post subject: Reply with quote

I've upgrade my PS3 with firmware 2.40 this morning.

The very good news: I can again play all MKV transcoded on-the-fly with Mediatomb.

Sony has eventually fixed this very anoying issue.
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Wed Jul 02, 2008 10:59 am    Post subject: Reply with quote

kortex wrote:
The very good news: I can again play all MKV transcoded on-the-fly with Mediatomb..

That's great news! I also noticed that setting the audio sample rate back to 48kHz in the video transcoding script also works. I previously had to set it to 44kHz to avoid choppy playback and drop-outs after a few seconds of play. With the upcoming MT 0.12.0 we will also be able to stream transcoded audio to the PS3, although I already have it working with 0.11.0 via a patch. 8)
Back to top
View user's profile Send private message
kortex
n00b
n00b


Joined: 22 Aug 2007
Posts: 26
Location: UK

PostPosted: Thu Jul 03, 2008 10:24 am    Post subject: Reply with quote

Thanks for the update.

I'll upgrade my video transcoding script to use 48KHz for the audio sample rate.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Fri Jul 04, 2008 10:10 pm    Post subject: Reply with quote

Hi,

I'm actually using an overlay for mediatomb (net-misc/mediatomb-9999) who is using : https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb

Do I shoult continue to use it or mediatomb is now include in portage with up-to-date version ?

Thanks,
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Sat Jul 05, 2008 3:29 am    Post subject: Reply with quote

DuF,

The SVN ebuild is no longer maintained and it would require some changes to take advantage of the new features found in SVN. The SVN ebuild would be able to make use of the PS3 audio transcoding fix, but other than that there is no point in using it. I have back ported the PS3 audio transcoding fix back to MT 0.11.0 and I can send you the patch and instructions for setting it up if you want.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sun Jul 06, 2008 11:38 am    Post subject: Reply with quote

Hi,

Thanks for the reply.

In fact I'm not using audio with my ps3 since even with transcoding I can't play audio because I'm only using ogg/vorbis files (maybe I do something wrong, but for me it's not possible to play ogg/vorbis files with mediatomb and ps3).

So in my case, it seems to be better to use the ebuild in portage and no more the overlay, I will do it.

Another thing, since the update of firmware 2.40, I've problem to play some video, have you heard some problems about this ?

Thanks for all.
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Sun Jul 06, 2008 12:01 pm    Post subject: Reply with quote

DuF,

The reason you can't get audio transcoding to work with the SVN version is because MT incorrectly sets the UPnP class for Ogg items. You need to add <map from="application/ogg" to="object.item.audioItem.musicTrack"/> to the <mimetype-upnpclass> section. You then need to re-import all your Ogg items for it to take effect. You also need to make sure that the audio transcoding script streams RAW PCM in big endian format. If you used the VLC script from the Wiki, you need to set AUDIO_CODEC to s16b. If you used the FFmpeg script then you need to set AUDIO_CODEC to pcm_s16be and FORMAT to s16be. These steps also apply to MT 0.11.0 but you will also need a patch which I can send to you if you want.

I have had no issues with 2.40 and most users have said that it fixed the transcoding issues they had with previous versions.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sun Jul 06, 2008 12:14 pm    Post subject: Reply with quote

Thanks for the quick answer.

If I'm correct, with the mediatomb 0.11.0 in portage, I will need your patch ? I'm actually restarting the emerge of mediatomb because of a problem with one of my uses. Do I need to wait for your patch ?

I perform the change in /usr/bin/mediatomb-transcode-audio.
For my information, what's the difference between the previous s16le and s16be ?

Thanks
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Sun Jul 06, 2008 12:50 pm    Post subject: Reply with quote

DuF,

Yes with 0.11.0 in Portage you will need my patch. This patch is my personal patch so it will never make it into Portage. If your still using SVN then you don't need my patch. The difference between s16le and s16be is that one is little endian and the other is big endian. The PS3 is a PPC architecture so it needs big endian otherwise the audio will come out all garbled.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sun Jul 06, 2008 1:07 pm    Post subject: Reply with quote

ok, thanks for the precision about big endian.

So, since I'm using mediatomb in portage, I will accept your patch, could you send me it by PM ?

Thanks
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Sun Jul 06, 2008 1:18 pm    Post subject: Reply with quote

DuF,

I have sent the patch. :D
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sun Jul 06, 2008 3:11 pm    Post subject: Reply with quote

Thanks for the patch.

Maybe now we need to discuss about mediatomb in antoher place than in "unsupported software" since mediatomb is in portage ?

Another point, maybe it will be a good idea to update the wiki with all the information concerning the patch for ps3, I think that lot of people may be interested.

By the way, thanks for all. I will give you feedback about my use of mediatomb.
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Sun Jul 06, 2008 3:40 pm    Post subject: Reply with quote

DuF wrote:
Maybe now we need to discuss about mediatomb in antoher place than in "unsupported software" since mediatomb is in portage ?

Yeah that's a good idea. I guess someone needs to start a new topic, maybe under Multimedia.
DuF wrote:
Another point, maybe it will be a good idea to update the wiki with all the information concerning the patch for ps3, I think that lot of people may be interested.

Well I actually sent the patch to the ebuild maintainer, but I haven't heard from him since, which probably means it won't make it into Portage. Not sure if want to add this to the Wiki, as it won't be support by Gentoo if things go wrong. Plus the next version of MT shouldn't be too far away.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sun Jul 06, 2008 4:20 pm    Post subject: Reply with quote

OK, thanks for all the given details.

Another question :
Since last update with the firmware 2.40, the ps3 see the video who are not working with wrong "information". If I check with the ps3 menu, it says to me that the non working videos in mediatomb are about 2000Gbytes (sometimes less or more). In this case, is there something that I can do as a workaround ?

EDIT : After cleaning mediatomb.xml config, restarting mediatomb, deleting the non working video from mediatomb's database, now all is fine and the ps3 see correctly the space of each video.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sat Jul 12, 2008 12:42 pm    Post subject: Reply with quote

Hi BT,

So, this is my feedback about the patch to be able listen ogg/vorbis music with mediatomb and my ps3.

I think that around 60% of my 2000 songs is working, the 40% more are not working for an unknonw reasons. When I try to play this 40% of music, in general that's simply go to to the next song without displaying an error (like uncompatible data...).

When I check the informations of working and not working songs I get the same data :
- codec : PCM linéaire - bit 2 can (I think in english is PCM linear - bit 2 cha)
- frequency : 44.100Khz

If you have an idea to make those songs working, I'm interested :-)

But thanks for this patch one more time.

EDIT : The patch works with FLAC too.
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Sat Jul 12, 2008 2:45 pm    Post subject: Reply with quote

DuF,

Try adding <audio-channels>2</audio-channels> and <sample-frequency>44100</sample-frequency> to your audio transcoding profile. You need to make sure that the values of these two tags match the values of AUDIO_CHANNELS and AUDIO_SAMPLERATE in your audio transcoding script.

My entire music collection is encoded with FLAC and so far I have not had any problems. The patch has nothing to do with the format of your audio, so it should work with any audio format that your transcoder supports.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Sun Jul 13, 2008 11:38 pm    Post subject: Reply with quote

Like always, thanks for your reply, still helpful.

I'm not actually at my home, so I will check the transcoding profile next time. But I will try also to re-encode some songs that are non working, because all the non working songs was encoded a long time ago with an old version of ogg encoder.

Thanks,
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Wed Jul 16, 2008 12:00 pm    Post subject: Reply with quote

I'm using the following script:

Code:
#!/bin/bash

INPUT="$1"
OUTPUT="$2"

if [[ $(/usr/bin/mkvinfo "${INPUT}" | grep "S_TEXT/ASS") ]]; then

VIDEO_ENCODER="ffmpeg"
VIDEO_CODEC="mp2v"
VIDEO_BITRATE="4096"
VIDEO_FPS="25"
AUDIO_ENCODER="ffmpeg"
AUDIO_CODEC="mpga"
AUDIO_BITRATE="192"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="ps"
SUBTITLE_TRACK="0"

exec /usr/bin/vlc -I dummy "${INPUT}" --sout "#transcode{venc=${VIDEO_ENCODER},vcodec=${VIDEO_CODEC}\
,vb=${VIDEO_BITRATE},fps=${VIDEO_FPS},soverlay,aenc=${AUDIO_ENCODER}\
,acodec=${AUDIO_CODEC},ab=${AUDIO_BITRATE},samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS}\
,audio-sync}:standard{access=file,mux=${FORMAT},dst=${OUTPUT}}" --sub-track=${SUBTITLE_TRACK} vlc:quit >/dev/null 2>&1

else

VIDEO_CODEC="mpeg2video"
VIDEO_BITRATE="4096k"
VIDEO_FPS="25"
AUDIO_CODEC="ac3"
AUDIO_BITRATE="192k"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="dvd"

exec /usr/bin/ffmpeg -i "${INPUT}" -vcodec ${VIDEO_CODEC} -b ${VIDEO_BITRATE} \
-r ${VIDEO_FPS} -acodec ${AUDIO_CODEC} -ab ${AUDIO_BITRATE} -ar ${AUDIO_SAMPLERATE} \
-ac ${AUDIO_CHANNELS} -f ${FORMAT} - > "${OUTPUT}" 2>/dev/null

fi

Which normally works quite nicely, but now I have this MKV file with three tracks, with the third containing subtitles.
That causes the script to use VLC when transcoding, but my PS3 only displays "The data type is not supported."

If I change the script to force it to transcode the MKV with ffmpeg instead, my PS3 plays without error, but also without subtitles.

I have tried changing VLC's audio codec to a52 without luck, and I also tried to change the format from ps to ts, also without luck.
Is there anything I could try to get VLC to play the file? I thought that with identical settings VLC would work when ffmpeg works?
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Thu Jul 17, 2008 3:09 am    Post subject: Reply with quote

Heion,

Could you please run the following VLC command for about 10-15 seconds, and see if it can transcode your MKV file without using MediaTomb. You should also make note of any error messages that VLC outputs during the transcode. Make sure you substitute INPUT_FILE and OUTPUT_FILE with the correct values.
Code:
vlc INPUT_FILE -vvv -I dummy --sout "#transcode{vcodec=mp2v,vb=4096,soverlay,acodec=mpga,ab=192,samplerate=48000,channels=2,audio-sync}:standard{mux=ps,access=file,dst=OUTPUT_FILE.mpeg}" --sub-track=0 vlc:quit
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Thu Jul 17, 2008 9:40 am    Post subject: Reply with quote

It stopped after about 10 seconds on it's own, the screen was full of these messages:
Code:
[00000276] main private error: subpicture heap is full
[00000274] subsdec decoder warning: can't get spu buffer


The end of the output looked like this:
Code:
[00000260] mkv demuxer warning: find KaxCues FIXME
[00000260] mkv demuxer warning: cannot get block EOF?
[00000266] main packetizer debug: removing module "packetizer_h264"
[00000266] main packetizer debug: killing decoder fourcc `avc1', 0 PES in FIFO
[00000251] main stream output debug: removing an input
[00000267] main packetizer debug: removing module "vorbis"
[00000267] main packetizer debug: killing decoder fourcc `vorb', 0 PES in FIFO
[00000251] main stream output debug: removing an input
[00000271] main decoder debug: removing module "vorbis"
[00000272] main encoder debug: removing module "ffmpeg"
[00000273] main private debug: removing module "audio_format"
[00000256] mux_ps private debug: removing input
[00000256] main private warning: no more input streams for this mux
[00000268] main packetizer debug: removing module "packetizer_copy"
[00000268] main packetizer debug: killing decoder fourcc `ssa ', 0 PES in FIFO
[00000251] main stream output debug: removing an input
[00000274] main decoder debug: removing module "subsdec"
[00000249] main input debug: Program doesn't contain anymore ES
[00000249] main input debug: EOF reached
[00000249] main input debug: closing input
[00000265] main private debug: thread 2988063632 joined (mkv.cpp:2533)
[00000260] mkv demuxer debug: Stopping the UI Hook
[00000261] main access debug: removing module "access_file"
[00000263] main access debug: removing module "access_file"
[00000260] main demuxer debug: removing module "mkv"
[00000258] main access debug: removing module "access_file"
[00000249] main input debug: destroying sout
[00000252] main private debug: destroying chain... (name=transcode)
[00000254] main private debug: destroying chain... (name=standard)
[00000256] mux_ps private: Close
[00000256] main private debug: removing module "mux_ps"
[00000255] access_output_file private debug: file access output closed
[00000255] main private debug: removing module "access_output_file"
[00000254] main private debug: removing module "stream_out_standard"
[00000254] main private debug: destroying chain done
[00000252] main private debug: removing module "stream_out_transcode"
[00000252] main private debug: destroying chain done
[00000249] main input debug: thread 3034217360 joined (input/input.c:412)
[00000245] main playlist debug: creating new input thread
[00000277] main input debug: waiting for thread completion
[00000277] main input debug: `vlc:quit' gives access `vlc' demux `' path `quit'
[00000277] main input debug: creating demux: access='vlc' demux='' path='quit'
[00000278] main demuxer debug: looking for access_demux module: 0 candidates
[00000278] main demuxer warning: no access_demux module matched "vlc"
[00000277] main input debug: creating access 'vlc' path='quit'
[00000279] main access debug: looking for access2 module: 3 candidates
[00000279] main access debug: using access2 module "dummy"
[00000280] main private debug: pre-buffering...
[00000280] main private debug: received first data for our buffer
[00000280] main private debug: pre-buffering done 1408981 bytes in 0s - 891164 kbytes/s
[00000277] main input debug: creating demux: access='vlc' demux='vlc' path='quit'
[00000281] main demuxer debug: looking for demux2 module: 1 candidate
[00000281] dummy demuxer: command `quit'
[00000281] main demuxer debug: using demux2 module "dummy"
[00000277] main input debug: looking for a subtitle file in /root/
[00000277] main input debug: `vlc:quit' successfully opened
[00000277] main input debug: EOF reached
[00000277] main input debug: thread 3034217360 (input) created at priority 0 (input/input.c:265)
[00000001] main private debug: removing all interfaces
[00000248] main interface debug: thread 3042610064 joined (interface/interface.c:258)
[00000248] main interface debug: removing module "dummy"
[00000247] main interface debug: thread 3051002768 joined (interface/interface.c:258)
[00000247] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
[00000246] main private debug: thread 3059395472 joined (playlist/playlist.c:247)
[00000277] main input debug: closing input
[00000281] main demuxer debug: removing module "dummy"
[00000279] main access debug: removing module "dummy"
[00000277] main input debug: thread 3034217360 joined (input/input.c:412)
[00000245] main playlist debug: thread 3067788176 joined (playlist/playlist.c:248)
[00000245] main playlist debug: deleting playlist item `qwerty.mkv'
[00000245] main playlist: stopping playback
[00000245] main playlist debug: deleting playlist item `vlc:quit'
[00000001] main private debug: removing all video outputs
[00000001] main private debug: removing all audio outputs
[00000001] main private debug: removing module "memcpymmxext"
[00000001] main private debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat

Can you make any sense out of it?

Thanks for your help.


Last edited by Aonoa on Thu Jul 17, 2008 10:06 am; edited 1 time in total
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Thu Jul 17, 2008 10:03 am    Post subject: Reply with quote

Heion,

Can you disable the subtitle output by removing soverlay and --sub-track=0 from the VLC command and then run it again. If transcoding does not fail, then it would confirm that the issue is with the subtitles. I did find this post on the VLC forum that appears to be similar to the issue your having so it might help. Your best option is to try the VLC IRC channel or forum as I really don't know much about these issues.
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Thu Jul 17, 2008 10:25 am    Post subject: Reply with quote

VLC still stops after approx. 10 seconds, even though the previous error messages disappeared.
I did find some warnings:
Code:
[00000277] mkv demuxer warning: cannot find any cluster, damaged file ?

and
Code:
[00000260] main stream output warning: trying to send non-dated packet to stream output!

and
Code:
[00000306] ffmpeg decoder warning: warning: first frame is no keyframe (h264@0x817b260)

and some errors:
Code:
[00000307] ffmpeg encoder warning: MPEG1/2 does not support 250000/10427 fps (mpeg2video@0x8281d30)
[00000307] ffmpeg encoder error: cannot open encoder
[00000261] stream_out_transcode private error: cannot find encoder ((null))
[00000306] ffmpeg decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
[00000306] main decoder debug: removing module "ffmpeg"


What do you think?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 11, 12, 13, 14  Next
Page 12 of 14

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum