Mediainfo bulk show audio sample frequency - audio

Want to see audio sample frequencies (44100 48000 etc.) of all video files in folder with Mediainfo GUI for Windows. No problem to see all columns with bitrates, codecs using "sheets". But i can't find an option for frequencies column. There are tons of options to add, but no what i need. Nothing in Google.

This is same as for "BitRate", just select "SamplingRate" (the name in MediaInfo for your "sample frequency") in the (long) list.

Related

Building m3u8 playlist with mp4 files

I own a digital receiver which could also play IPTV channels (m3u8). I want to build my own local IPTV station to be able to watch a video playlist on TV. I configured a computer as a web server. Now, I am trying to build the m3u8 playlist. I tried to add the video files (mp4) to a blank m3u8 file.
#EXTM3U
file1.mp4
file2.mp4
The problem is that my IPTV player only plays file1.mp4 then stops. I am new to hls, however I would like to avoid to convert all my videos to hls with ts segments.
Are there any ways to make it working? Thank you!
While the first mp4 is recognized and played correctly, it isn't the 'correct' type of mp4 file to be played in this type of playlist. They need to be encoded as 'Fragmented MPEG-4' files. I'm suspecting that each file needs to contain a bit of information about the next segment.
From RFC 8216:
3.3. Fragmented MPEG-4
MPEG-4 Fragments are specified by the ISO Base Media File Format
[ISOBMFF]. Unlike regular MPEG-4 files that have a Movie Box
('moov') that contains sample tables and a Media Data Box ('mdat')
containing the corresponding samples, an MPEG-4 Fragment consists of
a Movie Fragment Box ('moof') containing a subset of the sample table
and a Media Data Box containing those samples. Use of MPEG-4
Fragments does require a Movie Box for initialization, but that Movie
Box contains only non-sample-specific information such as track and
sample descriptions.
A Fragmented MPEG-4 (fMP4) Segment is a "segment" as defined by
Section 3 of [ISOBMFF], including the constraints on Media Data Boxes
in Section 8.16 of [ISOBMFF].
The Media Initialization Section for an fMP4 Segment is an ISO Base
Media File that can initialize a parser for that Segment.
Broadly speaking, fMP4 Segments and Media Initialization Sections
are [ISOBMFF] files that also satisfy the constraints described in
this section.
The Media Initialization Section for an fMP4 Segment MUST contain a
File Type Box ('ftyp') containing a brand that is compatible with
'iso6' or higher. The File Type Box MUST be followed by a Movie Box.
The Movie Box MUST contain a Track Box ('trak') for every Track
Fragment Box ('traf') in the fMP4 Segment, with matching track_ID.
Each Track Box SHOULD contain a sample table, but its sample count
MUST be zero. Movie Header Boxes ('mvhd') and Track Header Boxes
('tkhd') MUST have durations of zero. A Movie Extends Box ('mvex')
MUST follow the last Track Box. Note that a Common Media Application
Format (CMAF) Header [CMAF] meets all these requirements.

Play MultipleAudioTrack in Roku

I know about Roku doesn't support multiple videos at a time. But, Some Developers are mix up two things multiple playbacks and multiple audio tracks. Roku Does Support Multiple Audio Track?
I tried to Play MultipleAudioTrack in Roku. I used the below code to find a multiple audio track Here ?"m.video.availableAudioTracks :"m.video.availableAudioTracks but here not available any track. my stream check-in VLC MediaPlayer. Here two-track available. But, I not found in Roku. My Audio Format is AAC. I also Set Here m.video.audioFormat = "aac". Any other Configuration required to Playing a multiple Audio.
My m3u8 file is below.
#EXTM3U
#EXT-X-TARGETDURATION:9
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-VERSION:3
#EXTINF:8,
RokuMedia00000001.ts
#EXTINF:8,
RokuMedia00000002.ts
#EXTINF:8,
RokuMedia00000003.ts
Is there any configuration required for the m3u8 file.
I read the HLS Documentation which is provided by Roku. But, I have still some doubts regarding HLS Stream. I used the Roku Premiere plus device. 
For CC, I enable Closed Captions options using coding it's below.
m.videoContent.streamformat = "hls"
m.videoContent.subtitleTracks = [{ language: "EN", description: "EN", trackName: "eia608/1" }]
m.videoContent.subtitleConfig = { trackName: "eia608/1" }
It's not available in M3u8 file content. It's available on my ts File. I mention my M3u8 Content in the above.
Same way, I tried to enable Multiple Audio Track using Coding.
I used Following Field For fetching a multiple Audio Track.
?"m.video.availableAudioTracks :"m.video.availableAudioTracks
m.video.audioFormat = "aac"
I refer to this example of playing a Multiple Audio Track.
I used the aac audio format for playing audio in the Roku video player.
I check the same M3u8 File in other Video Player(VLC, IOS inbuilt player, EXO Player) It takes automatically shows two audio track. 
I'm not sure. But, I think Roku Video player Compalsary required multiple Audio tracks in M3u8 File. Like below. Is it Correct?
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",LANGUAGE="en",AUTOSELECT=YES,\
DEFAULT=YES,URI="RokuMedia00000001.ts"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Spanish",LANGUAGE="es-ES",AUTOSELECT=NO,\
DEFAULT=NO,URI="RokuMedia00000001.ts"
But, Here It possible to Put the EXT-X-MEDIA tag in Two Times?
or I don't know which specific field will add I required.
I found one article in the Roku  Knowledge Center article Does Roku support multiple audio tracks?
But, I'm not required to enable multiple audio tracks at the same time. or also not required to playing simultaneously. I required to at a time only a single audio track. Because, I know any media player not support multiple audio track and video track the same time.
I required to change the audio track at run time. If my default track in English and using this option, I  change to It Spanish or any else.
My Actual question is a how-to enable audio track option which provide by Roku and which fields are required in m3u8 files. To enable these options. or Roku has stopped supporting audiotrack options?
I'm not certain about Audio files, but I know that Rokus don't allow you to buffer more than one Video at a time. This effectively means that a Roku cannot play more than one Video at a time.
The same could be true for audio files but I am not certain.
Roku does not support 2 or more parallel audios.
You have to stop one audio to play some another audio.
you can do it like
m.firstAudio.contorl = "stop"
m.secondAudio.contorl = "play"
note that you have to stop it not mute.

How to include same segment into m3u8 playlist multiple times?

I have several .ts files, generated by ffmpeg from live stream. All of them have the same length (well, approximately). Ideally, they are being generated constantly, with names representing the datetime when they have been recorded (for example, "2019-04-11_10-51-40.ts"). But it may happen so, that for any technical reasons recording was being stopped for a while and files have not been generated.
Now, I have a task to create a playlist of these files for a certain datetime range - and if there are no files for part of this range, I need to show just a black screen. I have a black video for this purpose with the same length as other files. So, I'm trying to manually create an .m3u8 file and insert this black video in all gaps between normal videos that I have. For example:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:34
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:30.07,
http://example.com/black_video.ts
#EXTINF:30.07,
http://example.com/black_video.ts
#EXTINF:33.33,
http://example.com/2019-04-11_10-51-40.ts
#EXTINF:33.33,
http://example.com/2019-04-11_10-52-15.ts
#EXTINF:25.00,
http://example.com/2019-04-11_10-52-48.ts
#EXT-X-ENDLIST
The problem is that when I'm trying to play this playlist, it does not play correctly: depending on player either only one black part is being played no matter how much of them there are in a sequence (VLC), or player is getting stuck after first black video ("Play HLS M3u8" extension for Chrome or player on our own service, based on hls.js).
I also tried to use #EXT-X-DISCONTINUITY; in this case all videos are being played, but progress bar drops to the very beginning after each #EXT-X-DISCONTINUITY appearance, which is also an undesired behaviour. Example:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:34
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:30.07,
http://example.com/black_video.ts
#EXT-X-DISCONTINUITY
#EXTINF:30.07,
http://example.com/black_video.ts
#EXTINF:33.33,
http://example.com/2019-04-11_10-51-40.ts
#EXTINF:33.33,
http://example.com/2019-04-11_10-52-15.ts
#EXTINF:25.00,
http://example.com/2019-04-11_10-52-48.ts
#EXT-X-ENDLIST
As for black videos themselves, I tried several options: each link was to the same file; each link was to a different symlink to the same file; each link was to a separately generated black video - none of them worked.
As of now the only way I found is to collect all normal videos for the time range, fill the gaps with black video files and then combine them into one file with ffmpeg -f concat and split the concatenated file back to parts. But this approach works way longer than manual m3u8 file creation, so I would like to avoid it.
So, what could be the reason of manually formed playlist not working correctly and how could I fix that? May it be the problem with playlist itself, or playlist is technically fine but players I used possibly don't fully implement the specification?
TLDR: I am creating m3u8 playlist manually and I want to insert the same video multiple times into this playlist. Unfortunately, such playlist is not being played correctly: depending on player either this inserted video is being played only once no matter how many times has it been included, or playing is getting stuck after the first inserted video part. May it be that there is something wrong with playlist and how can this be fixed?
Add a #EXT-X-DISCONTINUITY tag before and after black_video.ts file and change the #EXT-X-VERSION tag to 5. That should fix the issue. This solution worked for me on VLC player.

How to download subtitles from pluzz.fr

Is there a way to download subtitles/closed captions from pluzz fr or the beta version, http://pluzz.francetv.fr, please?
Here's an example video that comes with closed captioning (Tout le monde veut prendre sa place): http://pluzz.francetv.fr/videos/tout_le_monde_veut_prendre_sa_place_,69573658.html
By the way, you'll need a French IP to watch the video.
Regards.
I've been looking into this as well and have made some progress. To update your example, (to a video that is available for the next 6 days) I've used http://pluzz.francetv.fr/videos/tout_le_monde_veut_prendre_sa_place_,70697467.html
Using the ID number at the end of that URL, go to this URL to get the XML-like info file about that program i.e. www.pluzz.fr/appftv/webservices/video/getInfosOeuvre.php?mode=zeri&id-diffusion=70697467
If you look in that resulting file, you will see various into about the program including at the end: incrust type="accessibilite". If subtitles are available, this is followed by a relative URL pointing to the subtitle file. For this example, you can see:
<incrust type="accessibilite">/appftv/webservices/video/getFichierSmi.php?smi=france2/70697467.smi&source=azad</incrust>
Prefix that relative link with the pluzz website, and the result is: http://www.pluzz.fr/appftv/webservices/video/getFichierSmi.php?smi=france2/70697467.smi&source=azad
which which provides you with the subtitles in SAMI format (file extension .smi). This is an XML like subtitle format, but I haven't (yet!) found any player that can correctly display them nor found an easy way to convert them into a clean SRT format. However, I do think it would be a relatively simple task (for someone with some programming skills) to convert it into SRT format, but that isn't me... Perhaps the OP has those skills and can take it from here??
PS. Also of interest is the fact that you don't need a French IP to access the info file or the subtitles file, just the video file.

how to write mpeg4 file in vc++ directshow

hai..
Am writing application for capture video from camera in vc++ using directshow and write that
file in WMV format.and how to write MPEG4 file format.can i install any sdk for mpeg4.can you provide details about mpeg file writing in vc++
kindly help me
thanks
I'm not entirely clear if you want to change the video format or just the container format. If you just want to write the existing camera output into a different container file, then you need a multiplexor filter. There's an MP4 multiplexor filter available in source form at www.gdcl.co.uk/mpeg4. If you connect your camera's output to this filter and then the file writer, you should be ok.
If, on the other hand, you need to encode the camera output to mpeg-4 video as well, then I think you will need to licence a third-party encoder filter.
G

Resources