[Ffmpeg-devel] Help with asf decoder and ATSC dvr-ms

Jon Elwood JElwood
Sat Oct 14 15:57:03 CEST 2006

It looks like the asf decoder has been enhanced to work with dvr-ms
files.  I tested it with standard definition files (they are encoded
with mp2 audio and MPEG2 video) and it works great.  However, it doesn't
detect the audio stream correctly for ATSC recordings in dvr-ms files.
The ATSC recordings are AC3 audio and MPEG2 video.  


Below is the command line I'm using:

ffmpeg -benchmark -deinterlace -y -i "\\Mediacenter\recorded tv\Ugly
Betty_WPTA-DT_12_10_2006_19_56_08.dvr-ms " -vcodec xvid -s 320x240 -r
29.97 -b 900 -acodec mp3 -ac 2 -ar 44100 -ab 128 -f avi test.avi


This is the output I get...


FFmpeg version SVN-r6586, Copyright (c) 2000-2006 Fabrice Bellard, et

  configuration:  --enable-mp3lame --enable-libogg --enable-vorbis

 --enable-faac --enable-xvid --enable-x264 --enable-mingw32 --enable-a52

e-dts --enable-pp --enable-gpl --enable-memalign-hack --enable-amr_nb

mr_wb --enable-swscaler --enable-avisynth

  libavutil version: 49.0.1

  libavcodec version: 51.16.0

  libavformat version: 50.5.0

  built on Oct  8 2006 22:37:43, gcc: 4.0.3

Input #0, asf, from '\\Mediacenter\recorded tv\Ugly


  Duration: 01:07:51.3, start: 0.000000, bitrate: 14852 kb/s

  Stream #0.0: Invalid Codec type -1

  Stream #0.1: Audio: 0x0000, 48000 Hz, stereo

  Stream #0.2: Video: mpeg2video, yuv420p, 1280x720, 13430 kb/s, 59.94

Output #0, avi, to 'test.avi':

  Stream #0.0: Video: xvid, yuv420p, 320x240, q=2-31, 0 kb/s, 29.97

  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s

Stream mapping:

  Stream #0.2 -> #0.0

  Stream #0.1 -> #0.1

Unsupported codec (id=0) for input stream #0.1


If I encode the file without sound the video will encode just fine.
Would anyone be willing to work on this?  I'll be happy to supply any
information you may need (just tell me what you need).  I can also
supply a short ATSC dvr-ms video file if that will help.


The background on this (just incase anyone is interested) is...  I'm
working on another open source project called DVRMSToolBox (our forum is
at http://babgvant.com/).  This application is used by Microsoft Media
Center users to manipulate dvr-ms files (most people just use it to
automatically skip commercials in dvr-ms files).  The team decided to
add new functionality where we would convert a dvr-ms file (with
commercials) to an Xvid, MP3 file without commercials.  The goal is to
convert, and cutout the commercials, in one pass.  We would rather not
use Directshow filters if we can avoid it, which lead us to you...  Any
help you can provide would be greatly appreciated. 


More information about the ffmpeg-devel mailing list