Page 1 of 1

Can't read some files (especially flv)

PostPosted: Fri Nov 02, 2012 2:24 am
by Ned Flanders
Hi,
i just switched from Windows 7 to Ubuntu 12.10, i play my videos with Samsung TV-C or Playstation 3. All was working great but now some local files can't be read (all .flv and some .avi or .mkv), the problem also occurs for all Youtube videos (with youtube.groovy). The TV reports "unknown file format" and the PS3 a network error. My ffmpeg version is the last from ubuntu servers.

Here is the ffmpeg result for a file which can be read on TV :

  Code:
# ffmpeg -i success.wmv
ffmpeg version 0.8.3-6:0.8.3-6ubuntu2, Copyright (c) 2000-2012 the Libav developers
  built on Oct  1 2012 12:54:15 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, asf, from 'success.wmv':
  Metadata:
    Application     : Windows Movie Maker 2.1.4026.0
    WMFSDKVersion   : 10.00.00.3802
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    artist          : Martin Lindsay
  Duration: 00:01:56.73, start: 0.000000, bitrate: 517 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
    Stream #0.1(eng): Video: wmv3 (Main), yuv420p, 320x240, 448 kb/s, 30 tbr, 1k tbn, 1k tbc
At least one output file must be specified


And this one can't :
  Code:
# ffmpeg -i fail.flv
ffmpeg version 0.8.3-6:0.8.3-6ubuntu2, Copyright (c) 2000-2012 the Libav developers
  built on Oct  1 2012 12:54:15 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[flv @ 0x1fa49e0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from 'fail.flv':
  Metadata:
    creator         : DailyMotion
    metadatacreator : DailyMotion
    hasKeyframes    : true
    hasVideo        : true
    hasAudio        : true
    hasMetadata     : true
    canSeekToEnd    : false
    datasize        : 8572167
    videosize       : 6875560
    audiosize       : 1662823
    lasttimestamp   : 133
    lastkeyframetimestamp: 133
    lastkeyframelocation: 8574374
  Duration: 00:02:13.44, start: 0.000000, bitrate: 506 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x240, 410 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 96 kb/s
At least one output file must be specified


The conversion with ffmpeg works for both of them. Do you have any idea ? Thanks in advance.

Re: Can't read some files (especially flv)

PostPosted: Fri Nov 02, 2012 7:53 am
by Illico
Try to update your ffmpeg version. Source code here : http://www.serviio.org/download, take care of config compile options.

Re: Can't read some files (especially flv)

PostPosted: Fri Nov 02, 2012 6:43 pm
by Ned Flanders
Problem solved. Everything seems to work now. I followed this tutorial step by step :
http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

But now Ubuntu suggests me to update ffmpeg, libav-tools, libavdevice53 and libavfilter2. Should I simply ignore this ?

Re: Can't read some files (especially flv)

PostPosted: Sat Nov 03, 2012 4:00 pm
by zip
I think Ubuntu uses the forked FFmpeg branch (AVConv), so yes, ignore it :-)