Florin Andrei | 1 Apr 09:45
Gravatar

create MPEG2 compatible with PS3 ?

With MythTV, I capture HD programs as MPEG2 TS. Then, using the UPnP 
server built into MythTV, I try to stream the video files to the PS3.

The problem is, the PS3 does not accept the AC3 audio codec under these 
conditions (streaming MPEG2 from a network server), and many HD programs 
are transmitted with AC3. So I try to convert the audio track to MP2 
using ffmpeg. First, I tried this:

ffmpeg -i in.mpg -vcodec copy -ab 256kb -acodec mp2 out.mpg

But that generated a lot of "buffer underflow" and "packet too large" 
messages, so I stopped it. Then I tried this:

ffmpeg -i in.mpg -vcodec copy -ab 256kb -acodec mp2 -f mpegts out.mpg

That didn't generate any apparent errors. I rebuilt the mythtv seektable 
using mythcommflag, then tried to stream the new file to the PS3.

This time the audio track works. However, once every 1...2 seconds 
there's a loud "squeak". Eventually, the PS3 quits playing with an error.
I tried to further process the mpegts file using mythtranscode, just do 
a demux/remux like this:

mythtranscode -m -e dvd -p autodetect

First off, mythtranscode doesn't like the ffmpeg-generated mpegts very 
much. It gives many messages like this:

2008-04-01 00:24:29.746 Frame 15 > 14. Corruption likely at pos: 12544121400
2008-04-01 00:24:31.109 Frame 17 > 16. Corruption likely at pos: 12562632256
(Continue reading)

Florin Andrei | 1 Apr 09:53
Gravatar

Re: create MPEG2 compatible with PS3 ?

Florin Andrei wrote:
> 
> The original capture file plays just fine in MythTV.

On the PS3, the original file has no sound, of course, but the video is 
smooth, there is no "shuddering" - that's introduced, apparently, after 
running ffmpeg.

--

-- 
Florin Andrei

http://florin.myip.org/
Gonçalo Gomes | 1 Apr 11:34
Picon

Subtitle Stream

Hi,

if i use the command "ffmpeg.exe -i VTS_01_2.VOB -map 0:5 -an -vn -scodec
copy -f vob test.sub" i can get the subtitles stream from a Vob file but is
there anyway to convert this to a ASCII file like .srt?

Best Regards
--

-- 
Gonçalo
Godwin Stewart | 1 Apr 11:43
Picon

Re: Subtitle Stream

On Tue, 1 Apr 2008 10:34:04 +0100, "Gonçalo Gomes" <goncalomg <at> gmail.com>
wrote:

> if i use the command "ffmpeg.exe -i VTS_01_2.VOB -map 0:5 -an -vn -scodec
> copy -f vob test.sub" i can get the subtitles stream from a Vob file but
> is there anyway to convert this to a ASCII file like .srt?

You'd probably be better off using spuunmux (part of DVDauthor), which will
extract a bunch of bitmap files for you (subtitles *are* rendered into
bitmap format before injection into the SPU stream) and then feeding them
through an OCR application.

--

-- 
G. Stewart - gstewart <at> lamproie.eu
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Gonçalo Gomes | 1 Apr 12:08
Picon

Re: Subtitle Stream

>
>
> You'd probably be better off using spuunmux (part of DVDauthor), which
> will
> extract a bunch of bitmap files for you (subtitles *are* rendered into
> bitmap format before injection into the SPU stream) and then feeding them
> through an OCR application.
>
> --
> G. Stewart - gstewart <at> lamproie.eu
>

Is there no other way? like only using ffmpeg?

Cheers
--

-- 
Gonçalo
Godwin Stewart | 1 Apr 12:12
Picon

Re: Subtitle Stream

On Tue, 1 Apr 2008 11:08:08 +0100, "Gonçalo Gomes" <goncalomg <at> gmail.com>
wrote:

> > You'd probably be better off using spuunmux (part of DVDauthor)...
> 
> Is there no other way? like only using ffmpeg?

If there is, I'd like to know it!

--

-- 
G. Stewart - gstewart <at> lamproie.eu
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Stefano Sabatini | 1 Apr 12:54
X-Face
Picon
Favicon

Re: Subtitle Stream

On date Tuesday 2008-04-01 11:12:32 +0100, Godwin Stewart encoded:
> On Tue, 1 Apr 2008 11:08:08 +0100, "Gonçalo Gomes" <goncalomg <at> gmail.com>
> wrote:
> 
> > > You'd probably be better off using spuunmux (part of DVDauthor)...
> > 
> > Is there no other way? like only using ffmpeg?
> 
> If there is, I'd like to know it!

New libavfilter API (whose inclusion in ffmpeg SVN isn't yet complete)
should permit to write a filter to output the content of the scodec
frames.

Also I think it should be possible to do it right now programmatically
using libavformat and accessing the data of each subtitle frame.

HTH, regards.
--

-- 
ffmpeg-user random tip #10
One minute of pure noise with ffmpeg:
ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/urandom  \
    -ab 64K -f mp2 -acodec mp2 -y noise.mp2
Picon

Re: Subtitle Stream

Gonçalo Gomes wrote:
>> You'd probably be better off using spuunmux (part of DVDauthor), which
>> will
>> extract a bunch of bitmap files for you (subtitles *are* rendered into
>> bitmap format before injection into the SPU stream) and then feeding them
>> through an OCR application
>
> Is there no other way? like only using ffmpeg?
>   

No, and I think it is unlikely that ffmpeg will be able to convert dvd 
subtitles (which are images put over the video) to text, since it's a 
video converting (and muxing/demuxing, etc) tool, not an OCR program.

--

-- 
Simulated picture.

Eduardo M KALINOWSKI
ekalin <at> gmail.com
http://move.to/hpkb
Michel Bardiaux | 1 Apr 17:33
Picon

Re: Converting avi files to animated gifs [PATCH]

Michel Bardiaux wrote:
> Baptiste Coudurier wrote:
>> Michel Bardiaux wrote:
>>> Baptiste Coudurier wrote:
>>> [...]
>>>
>>>>> (This is a general problem in lavf, it is very weak on knowledge of 
>>>>> which codec is acceptable or recommended for what muxer).
>>>> Lavf is premissive in many regards, this was the way things were used to
>>>> be, and IMHO this is one of its advantages, since it let 'aware' people
>>>> using it in many ways.
>>>>
>>>> I personally wouldn't like lavf being aggressive.
>>> And everyone could have what he wishes, that's why there is -strict 
>>> strictness  how strictly to follow the standards, no? You like to run 
>>> permissive, I prefer aggressive, ffmpeg should be able to do both.
>> Again feel free to submit patch which add strictness when -strict is
>> actually used, but this would not change the default.
> 
> General case: I agree. But here: the muxer wont work at all with the 
> wrong codec and/or pix_fmt, so the check must always be done.

And here is the patch. OK?

> 
>>>> See the agsm problem lately, this is again IMHO a bit useless wasted time.
>>> And I explained there that my desire to produce some message is 
>>> basically a defense against users attempting to change the bitrate then 
>>> pestering the list because it doesnt work.
>> Yes, and now I'd like your check being done when stricness is explicitly
(Continue reading)

Gahide, Jerome (J. | 1 Apr 17:47
Favicon

Problem when encoding mjpeg video with rgb555 pixel format

Hello all,

I'm trying to convert mpeg video to mjpeg with rbg555 . ( Sorry if it is an
often asked question )

Ffmpeg version : "SVN-r11553" , 2008-01-18-win32

I exec the command line :
./ffmpeg -i entryVideo.avi -vcodec mjpeg -pix_fmt rgb555 -s 640x480
jlr_640x480_mjpeg.avi
While converting, I have a trace telling that the format used for the output
will be yuv...

When I try to read the output_1280x480.avi video with mplayer , I get in the
debug console :

Playing
D:\mplayer\ffmpeg\ffmpeg-export-2008-01-18-win32\jlr_640x480_mjpeg.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO:  [MJPG]  640x480  24bpp  25.000 fps  3471.9 kbps (423.8 kbyte/s)
Clip info:
 Software: Lavf52.4.0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound
Starting playback...
(Continue reading)


Gmane