[FFmpeg-user] trying to work out ffmpeg and avi conversion

mroper mroper at kinect.co.nz
Mon May 16 12:25:04 CEST 2011


thanks for the reply.  yes, i've tried that and it does work, however it doesn't play on my 
panasonic tv, i have tried going through and trying to match settings which do not work but there 
must be something I am missing.

any clues you can give me based on the differences below (I have tried changing the 1280x720 to a 
lower size, with no joy, however would like to keep in HD which the TV supports)


Not Working

   Duration: 00:00:02.02, start: 0.000000, bitrate: 12358 kb/s
     Stream #0.0: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 104857 kb/s, 30 fps, 30 
tbr, 30 tbn, 60 tbc
     Metadata:
       strn            : FUJIFILM AVI STREAM 0100
     Stream #0.1: Audio: ac3, 44100 Hz, stereo, s16, 64 kb/s

Working

   Duration: 00:00:09.00, start: 0.500000, bitrate: 9624 kb/s
     Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 1:1 DAR 5:4], 9000 kb/s, 25 fps, 
25 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x80]: Audio: ac3, 48000 Hz, mono, s16, 448 kb/s

Both recorded on same camera, one at HD, one at SD.

On 12/05/11 22:58, belcampo wrote:
> On 05/12/11 10:25, mroper wrote:
>> hi,
>>
>>
>>
>> hoping someone can help, i'm fairly new to ffmpeg, trying to
>> work out how to convert an HD 1280x720 AVI file to mpeg2 so my
>> tv via linux media tomb can play it.
>>
>>
>>
>> When i try doing....
>>
>>
>>
>> ffmpeg -i "$filename" -target pal-dvd -b 25000k
>> /destpath/$filename
>>
>>
>>
>> i get .....Error while opening encoder for output stream #0.0- maybe
>> incorrect parameters such
>> as bit_rate, rate, width or height
>>
>>
>> i've tried searching on the error and drawn a blank, lots of information
>> but nothing I can relate to it. likewise the man pages don't give me a
>> clue. reason why I have the -b 25000k is I'm trying to maintain the
>> quality of the orginal avi, if I don't set this it works fine. likewise
>> if I set a lower rate it also works fine (but at lower quality). The
>> orginal avi when doing a ffmpeg -i filename shows up
>>
>> Stream #0.0: Video: mjpeg, yuvj422p, 1280x720, 30 tbr, 30 tbn, 30 tbc
>> Metadata:
>> strn : FUJIFILM AVI STREAM 0100
>> Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
>>
>> Where as the best I can get is via
>>
>> ffmpeg -i "$filename" -target pal-dvd -s hd720 /destpath/$filename
>>
>> and produces
>>
>> Duration: 00:00:02.00, start: 0.500000, bitrate: 7176 kb/s
>> Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR
>> 16:9], 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
>> Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
>>
>> Which has a much lower quality/bitrate (you can see the difference on
>> screen).
> target pal-dvd is limited to 9000 kb/s AFAIK, the dvd-spec doesn't allow more.
> You'll have to remove 'target pal-dvd' and specify the parameters your-self like vcodec mpeg2 -b 
> 25000k and then it should work. You also have to specify -acodec to something your TV 'understands'.
>>
>> Any ideas?
>>
>> Thanks
>>
>> Miles
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



More information about the ffmpeg-user mailing list