Questions tagged [media]

Media are the storage and transmission channels or tools used to store and deliver information or data.

Media (singular medium) are the storage and transmission channels or tools used to store and deliver information or data.

Source: http://en.wikipedia.org/wiki/Media_(communication)

3363 questions
308
votes
15 answers

Convert audio files to mp3 using ffmpeg

I need to convert audio files to mp3 using ffmpeg. When I write the command as ffmpeg -i audio.ogg -acodec mp3 newfile.mp3, I get the error: FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: libavutil …
Hrishikesh Choudhari
  • 11,617
  • 18
  • 61
  • 74
293
votes
18 answers

Django MEDIA_URL and MEDIA_ROOT

I'm trying to upload an image via the Django admin and then view that image either in a page on the frontend or just via a URL. Note this is all on my local machine. My settings are as follows: MEDIA_ROOT = '/home/dan/mysite/media/' MEDIA_URL =…
Dan
  • 3,041
  • 2
  • 17
  • 9
105
votes
7 answers

Retrieving and Saving media metadata using FFmpeg

I want to read the metadata in media files and then save that metadata in a text/xml file, so that I can later insert that data in my database. I would prefer to use ffmpeg. Also is the same thing possible with MediaInfo?? I know I can get the…
Rahul Patwa
  • 2,319
  • 4
  • 18
  • 17
85
votes
2 answers

What exactly is Fragmented mp4(fMP4)? How is it different from normal mp4?

Media Source Extension (MSE) needs fragmented mp4 for playback in the browser.
Aditya Gupta
  • 896
  • 1
  • 7
  • 9
67
votes
11 answers

Using cache in ExoPlayer

I'm looking for any example of implementing cache in ExoPlayer. ExoPlayer has in its library different classes concerning cache and Google explain in this video that we can implement it with the CacheDataSource class, but Google doesn't provide any…
ilansas
  • 5,899
  • 6
  • 21
  • 27
65
votes
4 answers

Media queries in Sass

I am wondering if there is a way to write media queries in sass, so I can give a certain style between let's say: 300px to 900px in css it looks like this @media only screen and (min-width: 300px) and (max-width: 900px){ } I know I can write…
Maciej S.
  • 1,773
  • 3
  • 12
  • 12
64
votes
10 answers

Embedding Windows Media Player for all browsers

Edit: This question was written in 2008, which was like 3 internet ages ago. If this question is still relevant to your environment, please accept my condolences. Everyone else should convert into a format supported by your browsers (That would be…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
64
votes
2 answers

How to record video from background of application : Android

I am developing an application which will be able to record video from background of application by using Service. Problem description : In my application recording will be scheduled. If user want to record video from 1 PM to 3 PM, he will schedule…
Android Learner
  • 2,559
  • 6
  • 34
  • 43
55
votes
5 answers

Play sound using soundpool example

I would like to learn how to use soundpool method. I would like you to show me a very simple example that run 2 sounds.
Sally Gomez
  • 554
  • 1
  • 4
  • 9
53
votes
8 answers

How do you get/set media volume (not ringtone volume) in Android?

Is there a way to get/set media volume? I have tried the following: AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int currentVolume = audio.getStreamVolume(AudioManager.STREAM_RING); but it returns the ringtone…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
49
votes
3 answers

Div show/hide media query

What code can I use to make a particular div show only if on a mobile width? I have a 100% width full div at the top of my screen, would like it to only show when the device is specified as a mobile width.
Francesca
  • 26,842
  • 28
  • 90
  • 153
48
votes
5 answers

Do iPhone / Android browsers support CSS @media handheld?

I want to change my web page CSS for web browsers running on cell phones, like the iPhone and Android. I've tried something like this in the CSS file: @media handheld { body { color: red; } } But it doesn't seem to have any effect, at…
Colen
  • 13,428
  • 21
  • 78
  • 107
46
votes
3 answers

android.os.FileUriExposedException: file.jpg exposed beyond app through ClipData.Item.getUri()

I try to do a button that open the camera and take picture. my code is here //for imports check on bottom of this code block public class HomeProfileActivity extends AppCompatActivity { //Button camera public static final String TAG =…
Omer
  • 832
  • 1
  • 9
  • 10
45
votes
7 answers

Django: how do you serve media / stylesheets and link to them within templates

Variations of this question have been asked, but I'm still unable to get my stylesheets to load correctly when my templates are rendered. I'm attempting to serve static media from the Django process during development - which is strongly discouraged…
Josh Smeaton
  • 47,939
  • 24
  • 129
  • 164
41
votes
1 answer

Access ordered images and video in same Cursor

I'm using the android.content.CursorLoader class to create two Cursor objects to access media stored on the user of my app's device. I'd like to give the user a grid view of their stored images and video which preserves order from the Android…
Cam
  • 1,706
  • 2
  • 13
  • 15
1
2 3
99 100