Hi Jim,
It'd be cool if you could put this info up on the wiki.
John
Jim Duda wrote:
> I'm reporting what I've learned, hoping to share what I have with
> others, hoping to get similiar experiences.
>
> I'm recording ATSC streams using a pcHDTV HD5500 card. The script I use
> for recording is at the bottom of this thread. This card dumps out
> MPEG2 transport streams.
>
> I have an NVIDIA FX 5200 AGP 8X card for playback. I'm using the NVIDIA
> binary drivers on linux. I'm trying to play back using a 2.4Ghz P4 with
> a 400 Mhz FSB, no hyper threading. The NVIDIA drivers support the xvmc
> MPEG2 acceleration features.
>
> When I attempt to play these MPEG Transport Streams using mplayer, both
> mplayer and Xorg consume 100% of the processor. The result is not at
> all acceptable.
>
> When I attempt to play these MPEG Transport Streams using xine, the
> video plays fine, the CPU usage is very low (<20%), however, I don't get
> any audio.
>
> I then used the dvb-mpegtools ts2ps program to convert the transport
> streams to program streams.
>
> When I play the program stream with mplayer, I get the same results, the
> entire CPU is consumed.
>
> When I play the program stream with xine, I get audio and the CPU usage
> is still < 20%. It's a workable solution.
>
> I don't know why mplayer has trouble with these streams while xine seems
> to be able to play the program stream properly.
> #!/bin/bash
> # 1: video device
> # 2: channel
> # 3: time in seconds
> # 4: recording file
>
> kill_it()
> {
> echo "Caught SIGINT ..."
> echo "PID $SLEEP_PID"
> kill $SLEEP_PID
> kill $CAT_PID
> kill $AZAP_PID
> exit
> }
>
> trap 'kill_it' INT TERM
>
> sleep 2
>
> azap -r $2 > /dev/null 2>&1 &
> AZAP_PID=$!
>
> cat $1 > $4 &
> CAT_PID=$!
> # $! is PID of last job running in background.
>
> sleep $3 &
> SLEEP_PID=$!
>
> wait $SLEEP_PID
>
> # You should add some check here to make sure cat is still running,
> # otherwise you might accidentally kill some other process.
> kill $CAT_PID
> kill $AZAP_PID
>
> Jim
>
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users