Page 1 of 1

Unable to play file

PostPosted: Tue Jul 26, 2011 10:40 am
by theoneofgod
When trying to play this file over my network, i get something like "unable to connect to server, try again"
Is there anything i can do to make it play?

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 12:15 pm
by Illico
Thanks, but what is your DLNA renderer model, what is the profile used?
Could you enable detailed logging (see signature) and post the log file when you start to play this file?
Also post "ffmpeg -i" of this file.

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 12:17 pm
by theoneofgod
I'm not able to run the file atm, but i'm using Sony Bravia profile unmodified.

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 12:24 pm
by Illico
theoneofgod wrote:... but i'm using Sony Bravia profile unmodified.

So this file must be remuxed into mpeg2ts and DTS audio transcoded into AC3...check log file to know if ffmpeg crashed.

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 3:11 pm
by theoneofgod
Illico wrote:
theoneofgod wrote:... but i'm using Sony Bravia profile unmodified.

So this file must be remuxed into mpeg2ts and DTS audio transcoded into AC3...

How do you suggest i do that?

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 3:20 pm
by Illico
theoneofgod wrote:
Illico wrote:
theoneofgod wrote:... but i'm using Sony Bravia profile unmodified.

So this file must be remuxed into mpeg2ts and DTS audio transcoded into AC3...

How do you suggest i do that?

Nothing to do, I simply said that according to the profile selected (Sony Bravia), servio/ffmpeg will transcode this file into MPEG2TS/ac3.
And I suggest you to enable detailed logging and check the log file to found when ffmpeg start transcoding and check if it crashed.

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 3:58 pm
by theoneofgod
Here you go.

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 6:50 pm
by Illico
Could you execute locally this command line and post here the ffmpeg log ouput:
ffmpeg.exe -i "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 0 -map 0:0 -map 0:1 -sn -f mpegts TEST.ts

EDIT: This is not the same file you provided MediaInfo at the first post, mkv or wmv ?!

Re: Unable to play file

PostPosted: Tue Jul 26, 2011 7:31 pm
by theoneofgod
The file is mkv, i renamed to wmv for another purpose. I ran the command, it says "unable to find suitable output format for ffmpeg.exe"

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 7:27 am
by Illico
theoneofgod wrote:The file is mkv, i renamed to wmv for another purpose. I ran the command, it says "unable to find suitable output format for ffmpeg.exe"

The output is not correct, you're probably missing quotes behind the output file names.
Try this
ffmpeg.exe -i "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 0 -map 0:0 -map 0:1 -sn -f mpegts "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead Mans Shoes.ts"


Could you also post ffmpeg.exe -i "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv" result

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 11:57 am
by theoneofgod
  Code:
C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "C:\Documents and Settings\Admi
nistrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv" -y -vcodec copy -vbsf
 h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 0 -map 0:0 -map 0:1 -sn -f mp
egts "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead M
ans Shoes.ts"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 10 2011 21:46:22 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
[matroska,webm @ 013ed530] Estimating duration from bitrate, this may be inaccur
ate

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 500.00 (500/1)
Input #0, matroska,webm, from 'C:\Documents and Settings\Administrator\My Docume
nts\My Videos\720p\Dead Mans Shoes.wmv':
  Duration: 01:26:29.99, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 1268x720, PAR 1:1 DAR 317:180, 25 fp
s, 500 tbr, 1k tbn, 50 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 0 channels, s16
    Stream #0.2(eng): Audio: vorbis, 48000 Hz, stereo, s16
    Metadata:
      title           : Commentary
    Stream #0.3(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : HOH
[ac3 @ 040a0820] No channel layout specified. The encoder will guess the layout,
 but it might be incorrect.
[ac3 @ 040a0820] invalid channel layout
Output #0, mpegts, to 'C:\Documents and Settings\Administrator\My Documents\My V
ideos\720p\Dead Mans Shoes.ts':
    Stream #0.0(eng): Video: [0][0][0][0] / 0x0000, yuv420p, 1268x720 [PAR 1:1 D
AR 317:180], q=2-31, 90k tbn, 25 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 0 channels, flt, 384 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters
such as bit_rate, rate, width or height

C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "C:\Documents and Settings\Admi
nistrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 10 2011 21:46:22 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
[matroska,webm @ 013ed500] Estimating duration from bitrate, this may be inaccur
ate

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 500.00 (500/1)
Input #0, matroska,webm, from 'C:\Documents and Settings\Administrator\My Docume
nts\My Videos\720p\Dead Mans Shoes.wmv':
  Duration: 01:26:29.99, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 1268x720, PAR 1:1 DAR 317:180, 25 fp
s, 500 tbr, 1k tbn, 50 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 0 channels, s16
    Stream #0.2(eng): Audio: vorbis, 48000 Hz, stereo, s16
    Metadata:
      title           : Commentary
    Stream #0.3(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : HOH
At least one output file must be specified

C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "C:\Documents and Settings\Admi
nistrator\My Documents\My Videos\720p\Dead Mans Shoes.mkv"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 10 2011 21:46:22 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
[matroska,webm @ 013ed500] Estimating duration from bitrate, this may be inaccur
ate

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 500.00 (500/1)
Input #0, matroska,webm, from 'C:\Documents and Settings\Administrator\My Docume
nts\My Videos\720p\Dead Mans Shoes.mkv':
  Duration: 01:26:29.99, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 1268x720, PAR 1:1 DAR 317:180, 25 fp
s, 500 tbr, 1k tbn, 50 tbc
    Stream #0.1(eng): Audio: dca, 48000 Hz, 0 channels, s16
    Stream #0.2(eng): Audio: vorbis, 48000 Hz, stereo, s16
    Metadata:
      title           : Commentary
    Stream #0.3(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : HOH
At least one output file must be specified

C:\Program Files (x86)\Serviio\lib>

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 12:40 pm
by Illico
There were something strange with the dts audio track--> 0 channels:
Stream #0.1(eng): Audio: dca, 48000 Hz, 0 channels, s16

Could you download the latest ffmpeg windows build here, replace the ffmpeg.exe in the "./serviio/lib" folder, (make a backup), and retry the same command line "ffmpeg -i"

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 1:29 pm
by theoneofgod
Using latest ffmpeg.exe

  Code:
C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "C:\Documents and Settings\Admi
nistrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv"
ffmpeg version N-31627-g9c2651a, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul 23 2011 15:02:13 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  9. 0 / 53.  9. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 27. 3 /  2. 27. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[matroska,webm @ 01C8B480] max_analyze_duration 5000000 reached at 5000000
[matroska,webm @ 01C8B480] Estimating duration from bitrate, this may be inaccur
ate
Input #0, matroska,webm, from 'C:\Documents and Settings\Administrator\My Docume
nts\My Videos\720p\Dead Mans Shoes.wmv':
  Duration: 01:26:29.99, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1268x720, PAR 1:1 DAR 317:180
, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Stream #0.1(eng): Audio: dca, 48000 Hz, 6 channels, s16 (default)
    Stream #0.2(eng): Audio: vorbis, 48000 Hz, stereo, s16
    Metadata:
      title           : Commentary
    Stream #0.3(eng): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : HOH
At least one output file must be specified

C:\Program Files (x86)\Serviio\lib>


Edit:

This is working with the latest ffmpeg.exe ffmpeg.exe -i "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead Mans Shoes.wmv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 0 -map 0:0 -map 0:1 -sn -f mpegts "C:\Documents and Settings\Administrator\My Documents\My Videos\720p\Dead Mans Shoes.ts"

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 1:34 pm
by Illico
theoneofgod wrote:Using latest ffmpeg.exe

Ok its better : Stream #0.1(eng): Audio: dca, 48000 Hz, 6 channels, s16 (default)
So could you retry the same command line with the latest ffmpeg.exe ?
Could you try with serviio?

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 1:35 pm
by Illico
theoneofgod wrote:This is working with the latest ffmpeg.exe ...

So retry with serviio...

Re: Unable to play file

PostPosted: Wed Jul 27, 2011 2:22 pm
by theoneofgod
Yeah it works now, but more problems occured. I can't pause and play, forward, etc, it says playback unavailable.

Thanks btw, great support.