Programming :: Need To Determine Bitrate Of Stream?

Dec 3, 2009

I'm new to gStreamer and need to determine the bitrate of a stream. Has anyone here worked with this before and does anyone know how to do it?

View 1 Replies


ADVERTISEMENT

Debian Multimedia :: Rhythmbox Could Not Determine Stream Type

Apr 17, 2011

I was using Rhythmbox to listen to internet fine in Squeeze.After updating to Wheezy, some stations give me error "Could not determine stream type" - I think I have installed all the gstreamer packages - so how can I tell what is missing?

View 3 Replies View Related

Programming :: Socket Programming: Insertion Of 0x00 Into The Stream?

Dec 5, 2010

When sending data over the socket, the sending socket includes 0x00 after each sent byte. I wonder how this can be avoided -- I just want to transfer the data in the tx_buffer as it is.

# ./serv &
[1] 6895
# ./EUG 127.0.0.1
EUG: Data to be transmitted: 0x35 0x32 0x30 0xff 0x03 0x31
EUG: Data - #Bytes transmitted: 6
./serv: Here is the message: '5'

[Code]...

View 3 Replies View Related

Programming :: Determine Which Device The Web Cam Is Using?

Aug 31, 2010

When I run apps like mplayer to use my web cam it uses /dev/video#. For reason unknown to me this number changes and is usually either 1 or 0. I have looked on the Internet after struggling to find how to know which /dev/video device is used. So far I can only presume I have used the wrong terms to find how to determine which device the web cam is using.

View 5 Replies View Related

Programming :: Determine What CPU Thread Is On?

Jul 2, 2010

Is there a library/system call that will return to me what CPU core a thread of execution is running on? I've looked for a bit on the net already and also in /usr/include and couldn't find one.

getcpu() and sched_getcpu() are two that I found, but when I include the appropriate header files (linux/getcpu.h, and sys/sched.h respectively), gcc says getcpu.h doesn't exist and the linker complains it cannot find the implementation in sched.h.

I'm sure I'm doing something really stupid or overthinking...

What I am doing is running an OpenMP application and specifying a list of cpu cores to run on with GOMP_CPU_AFFINITY. I want to make sure that each core is getting the same number of threads.

**UPDATE**

It seems that this code works, but only with glibc >= 2.6, and my machine has 2.5:

Code:
#define _GNU_SOURCE
#include <stdio.h>
#include <utmpx.h>
int main( void )

[Code].....

View 3 Replies View Related

Programming :: Determine Files And Directories?

Mar 9, 2010

i made a program to list all the files in a directory,is there a way to determine what are directories and what are files ?

View 5 Replies View Related

Programming :: Determine Sender PID Of A Connection

Mar 4, 2011

I have observed in a process's log file that it is receiving a number of connections from other processes running on the same box.

For example, I see lines of the following:

While I can use "netstat -tlp | egrep '5870|5871'" to see the PID of the listening process. How is it can I find out what PIDs are sending from 23870 and 23548?

View 2 Replies View Related

Programming :: How To Determine If VGA Monitor Plugged In

Sep 2, 2010

Does anyone know a way (hopefully a standard/generic way, e.g. through sysfs the interface) to determine if a VGA monitor is plugged in on Linux?

View 2 Replies View Related

Programming :: How To Stream Webpage

Sep 30, 2010

I need to stream a webpage to my application and i tried something like this but i get segmentation faults. Is there any example in c and/or gtk that i can peek on.

View 2 Replies View Related

Programming :: Determine The Size Of File In A Script?

Jun 24, 2010

I have the following which works but think there must be a easier one-liner way of doing this which involves not writing to a file but have failed to find something that works This is what I have:

Code:

du -m $i > filesize.txt
FILESIZE=$`cat "filesize.txt" | cut -f1
rm filesize.txt

I then use the FILESIZE to compare to a number.

View 3 Replies View Related

Programming :: Use Quotation Marks In C++ Stream?

Jul 27, 2011

I'm writing some code to speed up some code writing, basically it produces some code I use in every project. I produce the outputs with fstream filestr;, open a file and write to some data to it. However some code has quote marks that I need to output, however I can't use quote marks.
EG: filestr<<"#include "Header.h""<<endl;I get round this with some awful filestr.put ('"');However I'm sure there must be a straight forward way to do this. Can anyone advise?

View 3 Replies View Related

Programming :: Non-root User Determine Which Days The Computer Ran?

Mar 22, 2010

Is there any way a non-root user can programmatically determine which days the computer ran during, say, the last month?

The information is in /var/log/messages.* but those files are root:root 640.

Non of the world-readable /var/log files on the Slackware 13.0 development system can be used:boot Not present if boot logging not enabled (default). dmesg No timestamps. lastlog Not enough info. wtmp Rewritten on each boot so not enough info. EDIT: not correct: by default wtmp is rotated weekly and kept for one month as configured in /etc/logrotate.conf xdm.log Not present if xdm not used. Xorg.0.log Not present if X not run.

View 5 Replies View Related

Programming :: Python: Determine If Running In 32 Or 64bit Mode?

Jun 23, 2011

How can I programmatically determine if my python script is being run with a 32 or 64 bit interpreter? Better yet, is there a one-liner I can run that will print out the word size of the current python session?

View 6 Replies View Related

Programming :: Display Live Stream From One Of IP Cameras?

Sep 11, 2010

I've written a simple web page and I want it to display live stream from one of my IP cameras. I admit I've never been interested in HTML ... How should I go about this? I can see the stream in browser using following link [URL]

View 4 Replies View Related

Programming :: Checking If A Icecast Stream Is Active

Apr 20, 2010

I run my own icecast2 server. In the near future it looks like, I will be doing some shows. I would like to beable to change my link, so if I am broadcasting, to go to the stream if not pop a box for my schedule.Now from when I was checking to see if my webcam was up or not, i used this.does anyone know haw to change my code for this? I know when I'm not stream it generates a 404 error, in winamp (on windows)

View 3 Replies View Related

Programming :: How Do You List Processes - Get A Process's Std - In|out|err - Stream

Jun 3, 2011

How do you list processes, get a process's std(in|out|err) stream, or wait until a process is finished in C?

View 3 Replies View Related

Programming :: Stream Editing Inside The While Loop?

Mar 10, 2010

I have a fallowing ASCII text file:

Code:
Fa0/2 - server1 / testing
Fa0/4 - server2 / production

[code]....

View 7 Replies View Related

Programming :: C++ Determine If Current User Is Member Of A Specific Group?

Jan 12, 2011

What functions are available on linux for a c++ program to determine if the current user is a member of a specific user group?

View 3 Replies View Related

Programming :: Write A Stream Inserter For A Template Class?

Mar 28, 2011

I had some trouble doing this but finally figured it out. Here is a general solution:

Code:
#include <iostream>
using namespace std;

[code]....

View 1 Replies View Related

Programming :: Low Level Program To Save Mjpeg Stream

Jun 26, 2009

I'll just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I'm not a complete beginner to programming.However I've been trying to learn C and python but it's not making a huge amount of sense.I am wanting to make a simple low level program that copies an image from a mjpeg stream on 192.168.0.1/videostream.cgi for example to a variable then save that variable to a file on my system.I am aware that there are programs out there that would do this but I still want to make my own.

View 1 Replies View Related

Programming :: Perl: Determine Error Origin / Meaning In Code Call

Jan 20, 2010

I've been requested to modify a perl backup script we use which mounts a networked NAS machine. The actual mount command is called inside a system() command. In testing, I can do a test of the return value, so I'm able to tell whether or not I've mounted properly, but I can't make heads or tails out of the return on deliberate errors. (Such as mounting a non-existent box.) I'm displaying the returned value, which is 256 in my tests. The man page for mount listed error messages with values from 1 to 64, but no higher. Am I drawing this error value from the system command somehow? And what would be the best way to determine what this error means?

View 6 Replies View Related

Programming :: Embedding Flash To Html Pages For An Rtmp Stream

Aug 2, 2010

I am having a streaming server Red5 running on localhost. I have a few HTML pages which should be serving those streams.

I read documentation given here [url] and [url]and the swfobject.js and player.swf are on same directory where the test.html page I created is present.

Following is the HTML code
Red5 is working on localhost.

Code:

View 9 Replies View Related

Programming :: Sending Video Stream From Webcam To Online Computer

Mar 16, 2009

How could I (using c++ language on linux machine) put media stream (like mpeg4 movie) into the udp packets and send it to other computer in the network?

View 1 Replies View Related

Programming :: Obtain The Audio Stream That Hear In Speaker System Or In Earphones?

Sep 26, 2010

Let assume that we have the following situation: we have a sound in the speaker systems or in earphones, maybe we play an audio CD, some mp3's or maybe a movie, etc.

All I know is that the sound goes through sound card to speaker system or in earphones, no matter the source.

How can I obtain the audio stream that I hear in speaker system or in earphones?

I would like to write an application that record and analyze the audio stream that I hear in my speaker system or in earphones. My OS is Ubuntu 10.04.

If you have a recommendation like "try to use ALSA", please provide more details like "in alsa-utils you have a class Class_Name, with the following function Funcation1, etc. Try to use the Function5 as in the following example".

View 1 Replies View Related

Programming :: Php Pear Installation / Failed To Open Stream: No Such File Or Directory?

Jan 15, 2010

I was attempting the pear installation as per the instructions given here:url

I think i got the installation correct.

Then i tried this program

<?php
require_once 'System/Folders.php';
$sf = new System_Folders();
$home = $sf->getHome();
echo "$home
";
?>

and compiled it as follows:-

php spear.php

to get the results as

Warning: require_once(System/Folders.php): failed to open stream: No such file or directory in /var/www/spear.php on line 3
Fatal error: require_once(): Failed opening required 'System/Folders.php' (include_path='.:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear') in /var/www/spear.php on line 3

how should i correctly set the path in /etc/php5/apache2/php.ini

or how correct is my path statement

include_path = ".:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear"

in /etc/php5/apache2/php.ini

View 1 Replies View Related

Software :: Not Able To Stream / Connect To Stream Using Vlc

Dec 26, 2010

It seems I might be having an issue that's a non-issue. I am not able to stream/ connect to a stream using vlc.I've looked at a few walk-throughs; I follow the steps and as often as not I get no error messages but cannot connect to a stream.

View 1 Replies View Related

Software :: How To Set Bitrate For MPlayer

May 8, 2010

Trying to play a *.mp4 video using mplayer and the picture is jumpy and the sound completely screwed. It say it is guessing the bitrate thus:

Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)

In fact the bitrate should be 139 or possibly 132. So assume that is what is wrong. Have assiduously coated myself with nourishing smegma and the like but am unable to work out how to set the bitrate in this case.

View 14 Replies View Related

Software :: Same MP3 But Bitrate Changes On Different Distros

Jan 29, 2011

I have the same mp3 on two different distros, Fedora 14 and Ubuntu 10.10, both using gnome. The md5sum of the mp3 is identical on both distros, but on Ubuntu the bitrate is 96kbps and on Fedora it is apparently 257kbps. Discovered this using RhythmBox but also appears in Nautilus browser, under the properties tag.

View 1 Replies View Related

Slackware :: Finding Out The Bitrate In A MP3 With ID3 Tag?

Dec 16, 2010

Kernel 2.6.21.5, Slakware 12.0 I have plenty of files like this:

Code:

$ file 23-1.mp3
23-1.mp3: Audio file with ID3 version 23.0 tag, MP3 encoding
$

All I want to know about a file like this is the bitrate is has been created with. Can this data be inside the tag? What's a cli program that lets me know that information?

View 5 Replies View Related

Ubuntu :: Reduce MP3 Bitrate Using Lame?

Jun 17, 2011

I am wanting to reduce around 9.9gigs of music to 8gigs to fit on my phone. I have done some snooping and noticed a program called Lame. I also noticed a code:

for x in [ `ls -1 *.mp3` ]; do lame --preset 32 $x new32-${x}; done

I was wondering if someone would be able to explain the code and how I go about converting the bitrate to 96?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved