You are here: Home » Reply » Reply To: Won’t transcode movie

Reply To: Won’t transcode movie

#14931
Anonymous
Inactive

Querying the DB directly shows:

sqlite> select id,path,codectype from songs where path like '%Filename%' and codectype='unkn';
1490|/share/Movies/Filename.avi|unkn
1492|/share/Movies/tmp/Filename (mov-mov).mov|unkn
1493|/share/Movies/tmp/Filename (avi-avi).avi|unkn

Changing the unkn with avi works. Kinda… iTunes won’t start the playback.

I added the undocumented option always_transcode = avi and then pi_ssc_should_transcode() returns TRUE.

New log:

....
Entering config_set_status
Exiting config_set_status
Session 0: Streaming file 'Filename (avi-avi).avi' to 192.168.1.1 (offset 0)
Transcoding /share/Movies/tmp/Filename (avi-avi).avi with ssc-script/svn-1586
Executing /usr/local/bin/mt-daapd-ssc.pl "/share/Movies/tmp/Filename "'('"avi-avi"')'".avi" 0 600.000 "avi"
Updating Content-Type from application/x-dmap-tagged to audio/wav
Updating Connection from close to Close
Entering ws_writefd
Exiting ws_writefd
Entering ws_emitheaders
Emitting reponse header Expires: -1
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Cache-Control: no-cache
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header DAAP-Server: firefly/svn-1586
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Accept-Ranges: bytes
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Content-Language: en_us
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Content-Type: audio/wav
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Server: mt-daapd/svn-1586
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Connection: Close
Entering ws_writefd
Exiting ws_writefd
Emitting reponse header Date: Fri, 30 Nov 2007 14:58:45 GMT
Entering ws_writefd
Exiting ws_writefd
Entering ws_writefd
Exiting ws_writefd
Exitin ws_emitheaders
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-mp3lame --enable-faadbin --enable-faad --enable-faac --enable-xvid --enable-shared --prefix=/usr
libavutil version: 0d.49.0.0
libavcodec version: 0d.51.11.0
libavformat version: 0d.50.5.0
built on Nov 29 2007 07:09:53, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, avi, from '/share/Movies/tmp/The Kingdom (avi-avi).avi':
Duration: 01:43:19.4, start: 0.000000, bitrate: 946 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x240, 25.00 fps(r)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 112 kb/s
Output #0, wav, to 'pipe:':
Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop encoding
Write failed.
....

The first problem (not considering that iTunes doesn’t play anything) is that there’s only one output stream (the video) – the audio stream is missing. WAV problem?